Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Crashes in Level Editor on Linux
Andross Offline
Junior Member

Posts: 38
Threads: 1
Joined: Oct 2010
Reputation: 0
#6
Solved: 8 Years, 9 Months ago RE: Random Crashes in Level Editor on Linux

So here is my output when I select Entityes/enemy. It's effectively the same as josephschwenker's, except for the sound errors:

*** glibc detected *** ./LevelEditor.bin: double free or corruption (out): 0xbf8b5a80 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6bed1)[0xb704bed1]
/lib/libc.so.6(+0x6d81b)[0xb704d81b]
/lib/libc.so.6(cfree+0x6d)[0xb70509bd]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb721b361]
./LevelEditor.bin(_ZNSt4listISbIwSt11char_traitsIwESaIwEESaIS3_EE5eraseESt14_List_iteratorIS3_E+0x32)[0x8181fd2]
./LevelEditor.bin(_ZN21iEditorObjectIndexDir7RefreshEPN3hpl11cXmlElementEb+0xc62)[0x818b2a2]
./LevelEditor.bin(_ZN21iEditorObjectIndexDir7RefreshEPN3hpl11cXmlElementEb+0x65a)[0x818ac9a]
./LevelEditor.bin(_ZN18iEditorObjectIndex7RefreshEv+0x3b3)[0x818bf43]
./LevelEditor.bin(_ZN26cEditorWindowObjectBrowser11CreateIndexERKSbIwSt11char_traitsIwESaIwEE+0x294)[0x81c9ee4]
./LevelEditor.bin(_ZN26cEditorWindowObjectBrowser15BuildObjectListEv+0x1f)[0x81ca1bf]
./LevelEditor.bin(_ZN26cEditorWindowObjectBrowser19ObjectSets_OnChangeEPN3hpl7iWidgetERKNS0_15cGuiMessageDataE+0x11)[0x81ca1f1]
./LevelEditor.bin(_ZN26cEditorWindowObjectBrowser30ObjectSets_OnChange_static_guiEPvPN3hpl7iWidgetERKNS1_15cGuiMessageDataE+0x1f)[0x81ca21f]
./LevelEditor.bin(_ZN3hpl7iWidget16ProcessCallbacksENS_11eGuiMessageERKNS_15cGuiMessageDataE+0x3c)[0x832223c]
./LevelEditor.bin(_ZN3hpl7iWidget14ProcessMessageENS_11eGuiMessageERKNS_15cGuiMessageDataEbb+0xa6)[0x8322306]
./LevelEditor.bin(_ZN3hpl15cWidgetComboBox15SetSelectedItemEibb+0x170)[0x82f58f0]
./LevelEditor.bin(_ZN3hpl15cWidgetComboBox9OnMouseUpERKNS_15cGuiMessageDataE+0x8b)[0x82f5a1b]
./LevelEditor.bin(_ZN3hpl7iWidget14ProcessMessageENS_11eGuiMessageERKNS_15cGuiMessageDataEbb+0x129)[0x8322389]
./LevelEditor.bin(_ZN3hpl7cGuiSet9OnMouseUpERKNS_15cGuiMessageDataE+0xc5)[0x832aba5]
./LevelEditor.bin(_ZN3hpl7cGuiSet11SendMessageENS_11eGuiMessageERKNS_15cGuiMessageDataE+0x96)[0x832b426]
./LevelEditor.bin(_ZN3hpl4cGui16SendMouseClickUpENS_15eGuiMouseButtonEi+0x35)[0x83103f5]
./LevelEditor.bin(_ZN11iEditorBase6UpdateEf+0x804)[0x81780b4]
./LevelEditor.bin(_ZN3hpl8cUpdater10RunMessageENS_18eUpdateableMessageEf+0x376)[0x83bf4f6]
./LevelEditor.bin(_ZN3hpl7cEngine3RunEv+0xe6)[0x83c0326]
./LevelEditor.bin(_Z7hplMainRKSs+0x51)[0x828b771]
./LevelEditor.bin(main+0x14d)[0x83ad37d]
/lib/libc.so.6(__libc_start_main+0xe6)[0xb6ff6c66]
./LevelEditor.bin(ftell+0x4d)[0x816e341]
======= Memory map: ========
08048000-08680000 r-xp 00000000 08:08 11954621   /home/tly/games/Amnesia/LevelEditor.bin
08680000-08686000 rw-p 00637000 08:08 11954621   /home/tly/games/Amnesia/LevelEditor.bin
08686000-08690000 rw-p 00000000 00:00 0
08a55000-0a09e000 rw-p 00000000 00:00 0          [heap]
aa94e000-ab400000 rw-p 00000000 00:00 0
ab400000-ab421000 rw-p 00000000 00:00 0
ab421000-ab500000 ---p 00000000 00:00 0
ab515000-ab516000 ---p 00000000 00:00 0
ab516000-abd16000 rw-p 00000000 00:00 0
abd16000-afd17000 rw-s 00000000 00:10 617270     /dev/shm/pulse-shm-64758840
afd17000-afd18000 ---p 00000000 00:00 0
afd18000-b0518000 rw-p 00000000 00:00 0
b0518000-b05d9000 r-xp 00000000 08:02 14164      /usr/lib/libasound.so.2.0.0
b05d9000-b05dd000 rw-p 000c1000 08:02 14164      /usr/lib/libasound.so.2.0.0
b05dd000-b05e1000 r-xp 00000000 08:02 1278       /lib/libattr.so.1.1.0
b05e1000-b05e2000 rw-p 00003000 08:02 1278       /lib/libattr.so.1.1.0
b05e2000-b05f3000 r-xp 00000000 08:02 317        /lib/libresolv-2.12.2.so
b05f3000-b05f4000 r--p 00010000 08:02 317        /lib/libresolv-2.12.2.so
b05f4000-b05f5000 rw-p 00011000 08:02 317        /lib/libresolv-2.12.2.so
b05f5000-b05f7000 rw-p 00000000 00:00 0
b05f7000-b075c000 r-xp 00000000 08:02 12172      /usr/lib/libvorbisenc.so.2.0.8
b075c000-b076d000 rw-p 00165000 08:02 12172      /usr/lib/libvorbisenc.so.2.0.8
b076d000-b07b9000 r-xp 00000000 08:02 29428      /usr/lib/libFLAC.so.8.2.0
b07b9000-b07ba000 rw-p 0004c000 08:02 29428      /usr/lib/libFLAC.so.8.2.0
b07ba000-b07cd000 r-xp 00000000 08:02 327        /lib/libnsl-2.12.2.so
b07cd000-b07ce000 r--p 00012000 08:02 327        /lib/libnsl-2.12.2.so
b07ce000-b07cf000 rw-p 00013000 08:02 327        /lib/libnsl-2.12.2.so
b07cf000-b07d1000 rw-p 00000000 00:00 0
b07d1000-b07d4000 r-xp 00000000 08:02 13680      /lib/libcap.so.2.19
b07d4000-b07d5000 rw-p 00002000 08:02 13680      /lib/libcap.so.2.19
b07d5000-b0810000 r-xp 00000000 08:02 2302       /usr/lib/libdbus-1.so.3.5.3
b0810000-b0811000 r--p 0003b000 08:02 2302       /usr/lib/libdbus-1.so.3.5.3
b0811000-b0812000 rw-p 0003c000 08:02 2302       /usr/lib/libdbus-1.so.3.5.3
b0812000-b0816000 r-xp 00000000 08:02 32824      /usr/lib/libasyncns.so.0.3.1
b0816000-b0817000 rw-p 00003000 08:02 32824      /usr/lib/libasyncns.so.0.3.1
b0817000-b0877000 r-xp 00000000 08:02 29437      /usr/lib/libsndfile.so.1.0.23
b0877000-b0879000 rw-p 0005f000 08:02 29437      /usr/lib/libsndfile.so.1.0.23
b0879000-b087d000 rw-p 00000000 00:00 0
b087d000-b0884000 r-xp 00000000 08:02 32800      /usr/lib/libwrap.so.0.7.6
b0884000-b0885000 rw-p 00006000 08:02 32800      /usr/lib/libwrap.so.0.7.6
b0885000-b0888000 r-xp 00000000 08:02 23635      /usr/lib/libxcb-atom.so.1.0.0
b0888000-b0889000 rw-p 00002000 08:02 23635      /usr/lib/libxcb-atom.so.1.0.0
b0889000-b088d000 r-xp 00000000 08:02 23135      /usr/lib/libXtst.so.6.1.0
b088d000-b088e000 rw-p 00003000 08:02 23135      /usr/lib/libXtst.so.6.1.0
b088e000-b088f000 r-xp 00000000 08:02 21103      /usr/lib/libX11-xcb.so.1.0.0
b088f000-b0890000 rw-p 00000000 08:02 21103      /usr/lib/libX11-xcb.so.1.0.0
b0890000-b08d9000 r-xp 00000000 08:02 16450      /usr/lib/libpulsecommon-0.9.22.so
b08d9000-b08da000 rw-p 00049000 08:02 16450      /usr/lib/libpulsecommon-0.9.22.so
b08da000-b0919000 r-xp 00000000 08:02 16677      /usr/lib/libpulse.so.0.12.3
b0919000-b091a000 rw-p 0003f000 08:02 16677      /usr/lib/libpulse.so.0.12.3
b093f000-b45ac000 rw-p 00000000 00:00 0
b45ac000-b45ae000 r-xs 00000000 08:07 15         /tmp/glSB1p5b (deleted)
b45ae000-b45b0000 rw-s 00000000 08:07 15         /tmp/glSB1p5b (deleted)
b45b0000-b47b0000 rw-s 0d521000 00:05 7529       /dev/nvidia0
b47b0000-b48b0000 rw-s 20169000 00:05 7529       /dev/nvidia0
b48b0000-b48b1000 rw-s f6c08000 00:05 7529       /dev/nvidia0
b48b1000-b48f1000 rw-s 1f336000 00:05 7529       /dev/nvidia0
b48f1000-b49ef000 rw-p 00000000 00:00 0
b49ef000-b49f0000 ---p 00000000 00:00 0
b49f0000-b522a000 rw-p 00000000 00:00 0
b522b000-b522f000 rw-s 2459d000 00:05 7529       /dev/nvidia0
b522f000-b5233000 rw-s 1e41a000 00:05 7529       /dev/nvidia0
b5233000-b5234000 rw-s e0005000 00:05 7529       /dev/nvidia0
b5234000-b527a000 rw-p 00000000 00:05 2940       /dev/zero
b527a000-b5282000 r-xp 00000000 08:02 23272      /usr/lib/libXcursor.so.1.0.2
b5282000-b5283000 rw-p 00007000 08:02 23272      /usr/lib/libXcursor.so.1.0.2
b5283000-b5284000 rw-s 2013b000 00:05 7529       /dev/nvidia0
b5284000-b5288000 rw-s 35f93000 00:05 7529       /dev/nvidia0
b52a8000-b5406000 r--p 001ee000 08:02 265        /usr/lib/locale/locale-archive
b5406000-b5606000 r--p 00000000 08:02 265        /usr/lib/locale/locale-archive
b5606000-b5609000 rw-p 00000000 00:00 0
b5609000-b562f000 r-xp 00000000 08:02 2264       /usr/lib/libexpat.so.1.5.2
b562f000-b5631000 rw-p 00026000 08:02 2264       /usr/lib/libexpat.so.1.5.2
b5631000-b5634000 r-xp 00000000 08:02 1881       /lib/libuuid.so.1.3.0
b5634000-b5635000 rw-p 00002000 08:02 1881       /lib/libuuid.so.1.3.0
b5635000-b5636000 rw-p 00000000 00:00 0
b5636000-b563a000 r-xp 00000000 08:02 20968      /usr/lib/libXdmcp.so.6.0.0
b563a000-b563b000 rw-p 00003000 08:02 20968      /usr/lib/libXdmcp.so.6.0.0
b563b000-b563d000 r-xp 00000000 08:02 20982      /usr/lib/libXau.so.6.0.0
b563d000-b563e000 rw-p 00001000 08:02 20982      /usr/lib/libXau.so.6.0.0
b563e000-b5645000 r-xp 00000000 08:02 22705      /usr/lib/libXrender.so.1.3.0
b5645000-b5646000 rw-p 00007000 08:02 22705      /usr/lib/libXrender.so.1.3.0
b5646000-b5672000 r-xp 00000000 08:02 23002      /usr/lib/libfontconfig.so.1.4.4
b5672000-b5674000 rw-p 0002b000 08:02 23002      /usr/lib/libfontconfig.so.1.4.4
b5674000-b5688000 r-xp 00000000 08:02 21926      /usr/lib/libICE.so.6.3.0
b5688000-b5689000 rw-p 00013000 08:02 21926      /usr/lib/libICE.so.6.3.0
b5689000-b568c000 rw-p 00000000 00:00 0
b568c000-b5692000 r-xp 00000000 08:02 21934      /usr/lib/libSM.so.6.0.1
b5692000-b5693000 rw-p 00005000 08:02 21934      /usr/lib/libSM.so.6.0.1
b5693000-b56e0000 r-xp 00000000 08:02 22323      /usr/lib/libXt.so.6.0.0
b56e0000-b56e4000 rw-p 0004c000 08:02 22323      /usr/lib/libXt.so.6.0.0
b56e4000-b56fb000 r-xp 00000000 08:02 21003      /usr/lib/libxcb.so.1.1.0
b56fb000-b56fc000 rw-p 00016000 08:02 21003      /usr/lib/libxcb.so.1.1.0
b56fc000-b56fe000 r-xp 00000000 08:02 23141      /usr/lib/libXinerama.so.1.0.0
b56fe000-b56ff000 rw-p 00001000 08:02 23141      /usr/lib/libXinerama.so.1.0.0
b56ff000-b5710000 r-xp 00000000 08:02 23176      /usr/lib/libXft.so.2.2.0
b5710000-b5711000 rw-p 00011000 08:02 23176      /usr/lib/libXft.so.2.2.0
b5711000-b5712000 rw-p 00000000 00:00 0 Aborted

Running the Editor with Valgrind brings hundreds of error messages, most of which are like
Conditional jump or move depends on uninitialised value(s)
Pretty common, I think. IIRC, libGL produces some of those on a regular basis.

The interesting part is the crash itself (again, when I select Entities/enemy):

==8653== Invalid free() / delete / delete[]
==8653==    at 0x40238AC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==8653==    by 0x8181FD1: std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::erase(std::_List_iterator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x818B2A1: iEditorObjectIndexDir::Refresh(hpl::cXmlElement*, bool) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x818AC99: iEditorObjectIndexDir::Refresh(hpl::cXmlElement*, bool) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x818BF42: iEditorObjectIndex::Refresh() (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x81C9EE3: cEditorWindowObjectBrowser::CreateIndex(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x81CA1BE: cEditorWindowObjectBrowser::BuildObjectList() (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x81CA1F0: cEditorWindowObjectBrowser::ObjectSets_OnChange(hpl::iWidget*, hpl::cGuiMessageData const&) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x81CA21E: cEditorWindowObjectBrowser::ObjectSets_OnChange_static_gui(void*, hpl::iWidget*, hpl::cGuiMessageData const&) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x832223B: hpl::iWidget::ProcessCallbacks(hpl::eGuiMessage, hpl::cGuiMessageData const&) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x8322305: hpl::iWidget::ProcessMessage(hpl::eGuiMessage, hpl::cGuiMessageData const&, bool, bool) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==    by 0x82F58EF: hpl::cWidgetComboBox::SetSelectedItem(int, bool, bool) (in /home/tly/games/Amnesia/LevelEditor.bin)
==8653==  Address 0xbee5e170 is on thread 1's stack
==8653==
01-16-2011, 06:17 PM
Find


Messages In This Thread
RE: Random Crashes in Level Editor on Linux - by Andross - 01-16-2011, 06:17 PM



Users browsing this thread: 2 Guest(s)