In this thread I will document terminal crash logs from gamedevelop, while testing on the “example” scenes.
manjaro Linux-Game Develop 3.2.69.0, built 4/01/2014
First one:
Unloaded compiled code0x4a19400
StartGameDevelop.sh: line 7: 3884 Segmentation fault (core dumped) ./GDIDE
4ian
February 20, 2014, 1:42pm
2
If you want to help me with fatal crash, you can do the following:
-Go in GD folder with a terminal,
-Type export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ( do not forget the . at the end )
-Then type gdb GDIDE to launch the GNU debugger.
-Type r and press Enter to launch Game Develop
-When it crashs, type bt and press Enter in the terminal to show more information.
You can then send me the information shown after bt .
If you manage to reproduce a bug, you can also send me the .gdg file as well as an explanation on how to reproduce the bug
hi,
I tried this and it doesnt seem to start because my environment is not set for debugging.
Maybe it’s because I am on an arch based distro?
4ian
February 21, 2014, 10:45am
4
Sorry, I forgot a word in the process that I’ve explained in my message:
Now it works! You should sticky these debug instructions in this forum. Really helpful.
Now I managed to crash it and find out more about why it crashes.
This seems to be an instability of the UI toolkit of the editor. To trigger the crash I did the following:
Open the platformer example
Play the game (preview)- native platform
Open the debug window- when it’s opened it is a part of the editor layout
Drag out the debug window- so its not a part of the editor layout- and it is an individual window. And at that point everything freezes!
Here is the crash log:
(GDIDE:2968): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height -3
(GDIDE:2968): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height -3
b
ImageManager: Loading Block-Normal.png.
CodeCompilerProcess terminated with status 0.
CodeCompiler notified that the current process ended work.
Compilation succeeded.
[Thread 0x7fff750d0700 (LWP 3242) exited]
Launching post task
Preparing linking task for scene Nouvelle sc�ne 1…
New pending task added (Linking code for scene Nouvelle sc�ne 1)
Task ended.
Processing task Linking code for scene Nouvelle sc�ne 1…
Launching compiler process…
g++ -fPIC -o “/tmp/GDTemporaries/GD0x2a14e40Code.dll” -shared “/tmp/GDTemporaries/GD0x2a14e40ObjectFile.o” -L"/opt/game-develop/" -L"/opt/game-develop/CppPlatform/Extensions/" -lGDCpp -lstdc++ -lGDCore “/opt/game-develop/libsfml-audio.so.2” “/opt/game-develop/libsfml-network.so.2” “/opt/game-develop/libsfml-graphics.so.2” “/opt/game-develop/libsfml-window.so.2” “/opt/game-develop/libsfml-system.so.2”
CodeCompilerProcess created.
[New Thread 0x7fff750d0700 (LWP 3246)]
CodeCompilerProcess terminated with status 0.
CodeCompiler notified that the current process ended work.
Compilation succeeded.
Launching post task
Task ended.
No more task to be processed.
[Thread 0x7fff750d0700 (LWP 3246) exited]
Launching GD C++ Platform preview…
Scene Editor canvas reloading… ( Step 1/2 )
Switching to preview mode…
Scene canvas reloading… ( Step 2/2 )
Disabling tasks related to scene:Nouvelle sc�ne 1
Initializing RuntimeScene from layout…
Loading RuntimeScene from a scene… Done.
Loading compiled code…
Loaded compiled code0x279ff10
0x23e1e18<-
Switching to edition mode…
Stopping GD C++ preview…
Enabling tasks related to scene:Nouvelle sc�ne 1
Unloaded compiled code0x279ff10
(GDIDE:2968): Gtk-WARNING **: Unable to show ‘-’: Operation not supported
(GDIDE:2968): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height -3
b
ImageManager: Loading p1_stand.png.
ImageManager: Loading p1_jump.png.
ImageManager: Loading p1_walk03.png.
ImageManager: Loading p1_walk04.png.
ImageManager: Loading p1_walk05.png.
ImageManager: Loading p1_walk06.png.
ImageManager: Loading p1_walk07.png.
ImageManager: Loading brickWall.png.
ImageManager: Loading grass.png.
ImageManager: Loading bridgeLogs.png.
ImageManager: Loading grassHalfMid.png.
ImageManager: Loading castleCenter.png.
ImageManager: Loading bridge.png.
ImageManager: Loading Left.png.
ImageManager: Loading Right.png.
ImageManager: Loading ladder_mid.png.
ImageManager: Loading PlayerArea.png.
ImageManager: Loading slimeWalk1.png.
ImageManager: Loading slimeWalk2.png.
ImageManager: Loading slimeDead.png.
ImageManager: Loading flyFly1.png.
ImageManager: Loading flyFly2.png.
ImageManager: Loading flyDead.png.
ImageManager: Loading cloud1.png.
ImageManager: Loading cloud2.png.
ImageManager: Loading cloud3.png.
ImageManager: Loading bush.png.
ImageManager: Loading cactus.png.
ImageManager: Loading plant.png.
ImageManager: Loading coinGold.png.
[New Thread 0x7fff750d0700 (LWP 3251)]
[New Thread 0x7fff758d1700 (LWP 3252)]
[Thread 0x7fff758d1700 (LWP 3252) exited]
(GDIDE:2968): Gtk-WARNING **: Unable to show ‘Open examples’: Operation not supported
[New Thread 0x7fff758d1700 (LWP 3253)]
[Thread 0x7fff758d1700 (LWP 3253) exited]
New pending task added (Compilation of events of scene New scene)
Launching new compilation runProcessing task Compilation of events of scene New scene…
Launching pre work…
Generating C++ code…
Launching compiler process…
g++ -fPIC -o “/tmp/GDTemporaries/GD0x2749000ObjectFile.o” -include “/opt/game-develop/CppPlatform/include/GDCpp/GDCpp/EventsPrecompiledHeader.h” -c “/tmp/GDTemporaries/GD0x2749000EventsSource.cpp” -I"/opt/game-develop/CppPlatform/include/linux/usr/include/i686-linux-gnu/" -I"/opt/game-develop/CppPlatform/include/linux/usr/lib/gcc/i686-linux-gnu/4.7/include" -I"/opt/game-develop/CppPlatform/include/linux/usr/include" -I"/opt/game-develop/CppPlatform/include/linux/usr/include/c++/4.7/" -I"/opt/game-develop/CppPlatform/include/linux/usr/include/c++/4.7/i686-linux-gnu" -I"/opt/game-develop/CppPlatform/include/linux/usr/include/c++/4.7/backward" -I"/opt/game-develop/CppPlatform/include/GDCpp" -I"/opt/game-develop/CppPlatform/include/Core" -I"/opt/game-develop/CppPlatform/include/boost" -I"/opt/game-develop/CppPlatform/include/SFML/include" -I"/opt/game-develop/CppPlatform/include/wxwidgets/include" -I"/opt/game-develop/CppPlatform/include/wxwidgets/lib/gcc_dll/msw" -I"/opt/game-develop/CppPlatform/Extensions/include" -DGD_IDE_ONLY -DGD_CORE_API= -DGD_API= -DGD_EXTENSION_API= -DRELEASE -DNDEBUG -DBOOST_DISABLE_ASSERTS
CodeCompilerProcess created.
[New Thread 0x7fff758d1700 (LWP 3255)]
(GDIDE:2968): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height -3
(GDIDE:2968): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height -3
b
ImageManager: Loading p1_stand.png.
ImageManager: Loading p1_jump.png.
ImageManager: Loading p1_walk03.png.
ImageManager: Loading p1_walk04.png.
ImageManager: Loading p1_walk05.png.
ImageManager: Loading p1_walk06.png.
ImageManager: Loading p1_walk07.png.
ImageManager: Loading brickWall.png.
Failed to load image “grass.png”. Reason : Unable to open file
ImageManager: Loading grass.pngFailed to load a SFML texture: grass.png
.
ImageManager: Loading bridgeLogs.png.
ImageManager: Loading grassHalfMid.png.
ImageManager: Loading castleCenter.png.
ImageManager: Loading bridge.png.
ImageManager: Loading Left.png.
ImageManager: Loading Right.png.
ImageManager: Loading ladder_mid.png.
CodeCompilerProcess terminated with status 0.
CodeCompiler notified that the current process ended work.
Compilation succeeded.
Launching post task
Preparing linking task for scene New scene…
[Thread 0x7fff758d1700 (LWP 3255) exited]
New pending task added (Linking code for scene New scene)
Task ended.
Processing task Linking code for scene New scene…
Launching compiler process…
g++ -fPIC -o “/tmp/GDTemporaries/GD0x2749000Code.dll” -shared “/tmp/GDTemporaries/GD0x2749000ObjectFile.o” -L"/opt/game-develop/" -L"/opt/game-develop/CppPlatform/Extensions/" -lGDCpp -lstdc++ -lGDCore “/opt/game-develop/libsfml-audio.so.2” “/opt/game-develop/libsfml-network.so.2” “/opt/game-develop/libsfml-graphics.so.2” “/opt/game-develop/libsfml-window.so.2” “/opt/game-develop/libsfml-system.so.2”
CodeCompilerProcess created.
[New Thread 0x7fff758d1700 (LWP 3259)]
CodeCompilerProcess terminated with status 0.
CodeCompiler notified that the current process ended work.
Compilation succeeded.
Launching post task
Task ended.
No more task to be processed.
[Thread 0x7fff758d1700 (LWP 3259) exited]
Launching GD C++ Platform preview…
Scene Editor canvas reloading… ( Step 1/2 )
Switching to preview mode…
Scene canvas reloading… ( Step 2/2 )
Disabling tasks related to scene:New scene
Initializing RuntimeScene from layout…
Loading RuntimeScene from a scene…ERROR: Unable to create shared data for automatism “Platform”.ERROR: Unable to create shared data for automatism “PlatformerObject”… Done.
Loading compiled code…
Loaded compiled code0x2af3df0
0x23ec0f8<-
(GDIDE:2968): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height -3
[Thread 0x7fff750d0700 (LWP 3251) exited]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5ffcdf9 in wxFormatConverterBase<wchar_t>::Convert(wchar_t const*)
() from libwx_baseu-3.0.so.0
It’s not the whole thing, because I figure its too long. This forum doesnt have [code] tags. I assume that you are mostly interested in the last lines of the log. If you need the entire thing, here is a pastebin:
pastebin.com/2RYeqRhy
4ian
February 21, 2014, 12:06pm
6
Nice, just one more thing, it would be insanely helpful if you could type “bt” in the platform after the crash so that other information are displayed
(Because for now all the information are normal and do not show any problem)
4ian:
Nice, just one more thing, it would be insanely helpful if you could type “bt” in the platform after the crash so that other information are displayed
(Because for now all the information are normal and do not show any problem)
It does say segmentation fault at the end
Ok I repeated the steps for the bug and it didnt crash again for the platformer example. However I closed the platformer example and then opened the rain example. Then started it and when clicking on the “debugger” button to open the debugger, the same crash as before:
Here is the entire terminal log, with BT included:
pastebin.com/eLaHJM1s
Note- bt starts at line 444
4ian
February 21, 2014, 12:24pm
8
Thanks, the information show that the crash was provoked during the autosave.
You may consider disabling it to improve stability for now!
Thank you. I will disable it. Maybe the next linux release will have it disabled by default?