GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Segfault when opening gtk dialog #2297

Open jmdejong opened 5 years ago

jmdejong commented 5 years ago

In ArchLinux 64bit Torque crashes whenever I try to open a gtk file dialog.

This is probably because the system-provided gtk is using the torque-provided libpng and those versions mismatch. This only happens on some linux machines, probably because for other machines the versions are compatible. To solve this it would be best to make sure that the system-provided gtk is using the system-provided libpng instead (by setting this in the cmake config/headers)

Workaround: don't use the gtk backend; use the zenity backend instead. Use the code from https://github.com/GarageGames/Torque3D/pull/2286 and add -TORQUE_USE_ZENITY=1 as argument to CMake.

jmdejong commented 5 years ago

This is the problem I was talking about earlier in IRC by the way.

I also have the gdb log. For this session I ran the executable from another directory which meant that it could not find the 'main.cs' file. Torque will then open a file dialog in order to search for main.cs. This is not the correct way to start the program, but it was the easiest way to demonstrate the crash. The same thing happens when starting the game properly, but trying to use 'save file as' in the map editor.

Since there is a workaround now and it only affects a few builds I suppose it's not very important, but still good to have it in the bug tracker.