StructLayout: Immediate VS crash on button press
In one (but not all) of my projects, the entire Studio immediately crashes half a second or so after I click the “show struct layout” Button. No error messages or anything.
When I run the studio with devenv /log, the last two log entries are:
<entry>
<record>728</record>
<time>2020/10/31 06:30:09.126</time>
<type>Warning</type>
<source>GlobalBrokeredServiceContainer</source>
<description>Request for "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest.</description>
</entry>
<entry>
<record>729</record>
<time>2020/10/31 06:30:09.126</time>
<type>Warning</type>
<source>GlobalBrokeredServiceContainer</source>
<description>Request for proxy to "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" is declined: ServiceAudienceMismatch.</description>
</entry>
</activity>
Any other kind of log I could post to help?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 18 (8 by maintainers)
ok. the cmake --build . still fails with compiler errors it wants me to send to google. The .inc files in clang\AST don’t get generated.
As a pure guess, maybe it’s b/c I’m using the latest VS 2019 compiler?
Update: Going to try building from the IDE, opening ALL_BUILD.vccproj
Thanks for the details, glad to help. I made sure I pulled the latest lvm-project source and made the mods to match yours. I deleted my build dir and recreated with your cmds. It’s now running the cmake --build . (I assume I need to run that to build the libs needed). I will try to build LayoutParser once that’s done.
I updated my comment with the results I see. As you see, I also hit the stack overflow exception.
We do use -std=c++17
So with the newest version, this still crashes - but different. VS doesn’t close itself immediately but rather hangs indefinitely while a windows problem reporting process hogs the task manager. But they never finish, even after a minute or so.
I got frustrated with the LLVM install instructions (They say to
cd ..\..but that throws me absolutely not “where I started” obviously) and gave up honestly. But if this can’t be solved otherwise I’ll dig into it.That worked!
LayoutParser.cs:
Which probably doesn’t tell much and I should really compile that layoutparser project properly myself.
After that, things end as expected:
So I duplicated the entire project and deleted every file and started with just a trivial source.cpp… that works. So that should rule anything specific about the vcxproj itself. Good news I guess? I’m gonna dig around more.