I have started profiling freeorion.exe but have run across a ran odd problem.
If I start profiling directly it compiles (or checks for a current compile) then tries to load freeorion.exe When it does the game crashes with an error about not being able to load the ogre rendering system. If I start freeorion normally I can attach the profiler without issue. Any clue as to why it doesn't want to profile correct from source? I didn't notice any clues in the logs but can provide them if need be.
VC10 Profiling crash
Moderator: Oberlus
- adrian_broher
- Programmer
- Posts: 1156
- Joined: Fri Mar 01, 2013 9:52 am
- Location: Germany
Re: VC10 Profiling crash
Guess 1: The working directory is not set properly by the profiler.
Guess 2: The profiler compiles with with debug symbols and the OGRE plugin loader tries to find the non-existing debug variants of the plugins.
Also it's not a crash if it is handled gracefully ("with an error").
Guess 2: The profiler compiles with with debug symbols and the OGRE plugin loader tries to find the non-existing debug variants of the plugins.
Also it's not a crash if it is handled gracefully ("with an error").
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: VC10 Profiling crash
You probably need to edit the FreeOrion project Configuration Properties / Debugging / Working Directory and set it to $(TargetDir)