supertuxkart-sourceforge-migration / stk-migration-test2

0 stars 0 forks source link

Invalid LOD causing crash #572

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: magned

The track I tried playing was Mystic island from the forums: http://forum.freegamedev.net/download/file.php?id=2595 I modified folder name to not contain spaces, and also the b3d file name and scene.xml reference to the b3d file. It currently gives this crash:

Program received signal SIGSEGV, Segmentation fault.
0x000000000074b592 in TrackObject::TrackObject (this=0x2213d4b0, 
    __vtt_parm=0xe4e908, xml_node=..., __in_chrg=<optimized out>)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/tracks/track_object.cpp:158
(gdb) thread apply all bt

Thread 5 (Thread 0x7fffe37fd700 (LWP 6016)):
#0  0x00007ffff6836768 in ?? () from /usr/lib/libopenal.so.1
#1  0x00007ffff685b551 in ?? () from /usr/lib/libopenal.so.1
#2  0x00007ffff683ae4a in ?? () from /usr/lib/libopenal.so.1
#3  0x00007ffff7bc6e7a in start_thread () from /lib/libpthread.so.0
#4  0x00007ffff572abad in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fffe7fff700 (LWP 6015)):
#0  0x00007ffff57228b3 in poll () from /lib/libc.so.6
#1  0x00007fffef9b05bf in ?? () from /usr/lib/libpulse.so.0
#2  0x00007fffef9a19dc in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007fffef9a2049 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007fffef9a2100 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007fffef9b056f in ?? () from /usr/lib/libpulse.so.0
#6  0x00007fffed51e8b8 in ?? () from /usr/lib/libpulsecommon-1.1.so
#7  0x00007ffff7bc6e7a in start_thread () from /lib/libpthread.so.0
#8  0x00007ffff572abad in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fffee145700 (LWP 6013)):
#0  0x00007ffff7bcabc4 in pthread_cond_wait@@GLIBC_2.3.2 ()
---Type <return> to continue, or q <return> to quit---
   from /lib/libpthread.so.0
#1  0x0000000000771218 in NetworkHttp::mainLoop (obj=0x1b97ed0)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/addons/network_http.cpp:154
#2  0x00007ffff7bc6e7a in start_thread () from /lib/libpthread.so.0
#3  0x00007ffff572abad in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fc47c0 (LWP 6010)):
#0  0x000000000074b592 in TrackObject::TrackObject (this=0x2213d4b0, 
    __vtt_parm=0xe4e908, xml_node=..., __in_chrg=<optimized out>)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/tracks/track_object.cpp:158
#1  0x00000000008aac11 in PhysicalObject::PhysicalObject (this=0x2213d4b0, 
    xml_node=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/physics/physical_object.cpp:40
#2  0x00000000007360a1 in TrackObjectManager::add (this=0x1b1fb670, 
    xml_node=...)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/tracks/track_object_manager.cpp:64
#3  0x000000000071a5a5 in Track::loadTrackModel (this=0x1c06810, parent=
    0x1a9ef8b0, mode_id=0)
---Type <return> to continue, or q <return> to quit---
    at /home/magne/SuperTuxKart/supertuxkart-work/src/tracks/track.cpp:1295
#4  0x00000000008201c5 in World::init (this=0x1a9ef8b0)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/modes/world.cpp:136
#5  0x000000000081da44 in WorldWithRank::init (this=0x1a9ef8b0)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/modes/world_with_rank.cpp:28
#6  0x000000000080f6a5 in LinearWorld::init (this=0x1a9ef8b0)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/modes/linear_world.cpp:54
#7  0x0000000000954932 in RaceManager::startNextRace (this=0x1aade20)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/race/race_manager.cpp:365
#8  0x00000000009545e0 in RaceManager::startNew (this=0x1aade20)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/race/race_manager.cpp:306
#9  0x00000000009556d6 in RaceManager::startSingleRace (this=0x1aade20, 
    trackIdent=..., num_laps=3)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/race/race_manager.cpp:632
#10 0x00000000007f4820 in TrackInfoDialog::processEvent (this=0x1d9e1f50, 
    eventSource=...)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/states_screens/dialogs/track_info_dialog.cpp:240
#11 0x000000000092eb3a in GUIEngine::EventHandler::onWidgetActivated (
    this=0x19b5700, w=0x1e2e81e0, playerID=0)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/guiengine/event_handler.cpp:598
---Type <return> to continue, or q <return> to quit---
#12 0x000000000092e154 in GUIEngine::EventHandler::processGUIAction (
    this=0x19b5700, action=PA_MENU_SELECT, deviceID=13, value=32768, 
    type=Input::IT_KEYBOARD, playerID=0)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/guiengine/event_handler.cpp:290
#13 0x000000000070a6c2 in InputManager::dispatchInput (this=0x1c04ea0, 
    type=Input::IT_KEYBOARD, deviceID=13, button=13, 
    axisDirection=Input::AD_POSITIVE, value=32768)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/input/input_manager.cpp:630
#14 0x000000000070ab74 in InputManager::input (this=0x1c04ea0, event=...)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/input/input_manager.cpp:786
#15 0x000000000092dcad in GUIEngine::EventHandler::OnEvent (this=0x19b5700, 
    event=...)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/guiengine/event_handler.cpp:151
#16 0x000000000099691b in irr::CIrrDeviceStub::postEventFromUser(irr::SEvent const&) ()
#17 0x000000000098d78b in irr::CIrrDeviceLinux::run() ()
#18 0x000000000082b6bc in IrrDriver::update (this=0x12aa190, dt=0.0280000009)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/graphics/irr_driver.cpp:1247
---Type <return> to continue, or q <return> to quit---
#19 0x00000000008ed1f4 in MainLoop::run (this=0x1c05b20)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/main_loop.cpp:160
#20 0x000000000077b7bd in main (argc=1, argv=0x7fffffffe748)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/main.cpp:1356

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/572

supertuxkart-sourceforge-migration commented 10 years ago

Author: magned Accidentally removed a line; top part should be this:

Program received signal SIGSEGV, Segmentation fault.
0x000000000074b592 in TrackObject::TrackObject (this=0x2213d4b0, 
    __vtt_parm=0xe4e908, xml_node=..., __in_chrg=<optimized out>)
    at /home/magne/SuperTuxKart/supertuxkart-work/src/tracks/track_object.cpp:158
158         m_mesh->grab();
supertuxkart-sourceforge-migration commented 10 years ago

Author: auria This actually seems unrelated to LOD : scene.xml refers to Box.b3d but this file is missing.

I get on terminal :

[Error](Irrlicht) Could not load mesh, file format seems to be unsupported: 
Warning: 'object' in 'Box.b3d' not found and is ignored.

but STK apparently still tries to refer to the mesh, which is not NULL for some reason

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Partially fixed as of r10840

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria More progress in r10841.

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Completely fixed in r10842. Thanks for the report!