-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault when starting race (SVN #339
Comments
Author: rjaguar3 |
Author: hikerstk Also interestingly you appear to have irrlicht compiled with debug information, but not STK. Could you try to configure with "--enable-debug --disable-optimization" ? Could you also post the output on the terminal? What kart do you use? Does it always crash with the same kart? Or with any kart? Do you have any addon karts installed? Thanks for the report! |
Author: auria The reason is probably that the original poster has animations disabled, then 'm_animated_node' is NULL. |
Author: rjaguar3 r9046 does seem to solve the problem. Thanks! |
Author: auria However I'm reopening the ticket, because while it no more crashes, you will not get the visual effect if animations are disabled. So I'll reopen this ticket so we remember to fix the visual effect even when animations are off |
Author: hikerstk There might still be one potential issue: since LOD nodes are used I am not sure what happens if the LOD node switches to use a different level (i.e. will the new model also be squashed)? Auria, can you check? Design question: wouldn't it be better if the LOD node would handle an array of meshes (instead of array of nodes)? |
Author: auria That being said, I'll try to find a way to test scaling with LOD nodes but I believe it should work fine |
Author: auria |
Author: rjaguar3
I'm currently working in gdb on this. (I believe this is r9016). The culprit function appears to be KartModel::scaleKart
Program received signal SIGSEGV, Segmentation fault.
0x08144e0c in KartModel::scaleKart(Vec3 const&) ()
(gdb) backtrace
#0 0x08144e0c in KartModel::scaleKart(Vec3 const&) ()
#1 0x08140a14 in Kart::reset() ()
#2 0x0814279b in Kart::Kart(std::basic_string<char, std::char_traits, std::allocator > const&, Track*, int, bool, btTransform const&, RaceManager::KartType) ()
#3 0x08159487 in World::createKart(std::basic_string<char, std::char_traits, std::allocator > const&, int, int, int) ()
#4 0x0815ac2a in World::init() ()
#5 0x0815c9c7 in WorldWithRank::init() ()
#6 0x081541c4 in LinearWorld::init() ()
#7 0x08181f4a in RaceManager::startNextRace() ()
#8 0x0818264a in RaceManager::startNew() ()
#9 0x0818298b in RaceManager::startSingleRace(std::basic_string<char, std::char_traits, std::allocator >, int) ()
#10 0x0819d440 in TrackInfoDialog::processEvent(std::basic_string<char, std::char_traits, std::allocator > const&) ()
#11 0x080c6667 in GUIEngine::EventHandler::onWidgetActivated(GUIEngine::Widget*, int) ()
#12 0x080c6da9 in GUIEngine::EventHandler::onGUIEvent(irr::SEvent const&) ()
#13 0x080c7027 in GUIEngine::EventHandler::OnEvent(irr::SEvent const&) ()
#14 0x082449a7 in irr::gui::CGUIEnvironment::OnEvent (this=0x8786810,
#15 0x0825e600 in irr::gui::CGUIModalScreen::OnEvent (this=0xe10fc48,
---Type to continue, or q to quit---
event=...) at CGUIModalScreen.cpp:134
#16 0x08278139 in irr::gui::CGUIWindow::OnEvent (this=0xe10f670, event=...)
#17 0x08353590 in irr::gui::CGUIButton::OnEvent (this=0xe111880, event=...)
#18 0x082453a2 in irr::gui::CGUIEnvironment::postEventFromUser (
#19 0x082410b4 in irr::CIrrDeviceStub::postEventFromUser (this=0x86af6f0,
#20 0x08235619 in irr::CIrrDeviceLinux::run (this=0x86af6f0)
#21 0x080a1e26 in IrrDriver::update(float) ()
#22 0x08055c3e in MainLoop::run() ()
#23 0x08053914 in main ()
The text was updated successfully, but these errors were encountered: