Toki Tori 2+

Toki Tori 2+

View Stats:
Splizard 14 Jan, 2014 @ 7:14pm
Linux: Game segfaults on startup.
As the title says, the game crashes upon startup with a segfault.
This occurs during the loading screen.
Setting breakpad minidump AppID = 201420 Steam_SetMinidumpSteamID: Caching Steam ID: 76561198074464322 [API loaded no] Segmentation fault (core dumped)
gdb output after crash:
#0 0x00000000 in ?? () #1 0x083c31ef in toki::game::script::EntityScriptMgr::getParentClass(tagSQObject const&) const () #2 0x083ce967 in toki::game::script::EntityScriptClass::create(std::string const&, std::string const&) () #3 0x083c4ed9 in toki::game::script::EntityScriptMgr::createScriptClass(std::string const&, std::string const&) () #4 0x083c5741 in toki::game::script::EntityScriptMgr::include_entity(std::string const&) () #5 0x083c7975 in int _sqbind_sqfunction_1<SQVM*, std::string const&>(SQVM*) () #6 0x087600e0 in SQVM::CallNative(SQNativeClosure*, int, int, SQObjectPtr&, bool&) () #7 0x0876299a in SQVM::Execute(SQObjectPtr&, int, int, SQObjectPtr&, unsigned int, SQVM::ExecutionType) () #8 0x08762fd8 in SQVM::Call(SQObjectPtr&, int, int, SQObjectPtr&, unsigned int) () #9 0x0874d642 in sq_call () #10 0x085bee2c in tt::script::VirtualMachine::loadAndRunScriptImpl(std::string const&, bool) () #11 0x083ce754 in toki::game::script::EntityScriptClass::create(std::string const&, std::string const&) () #12 0x083c4ed9 in toki::game::script::EntityScriptMgr::createScriptClass(std::string const&, std::string const&) ()
Last edited by Splizard; 15 Jan, 2014 @ 1:50pm
< >
Showing 1-15 of 108 comments
TheLimeyDragon 15 Jan, 2014 @ 10:07am 
I'm having a similar issue.. I'm getting this on my terminal:

Setting breakpad minidump AppID = 201420
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198074530183 [API loaded no]
pure virtual method called
terminate called without an active exception
Aborted
TheLimeyDragon 15 Jan, 2014 @ 11:14am 
I ran gdb and did a backtrace and this was the output:


Starting program: /home/daniel/.local/share/Steam/SteamApps/common/Toki Tori 2/TokiTori2.bin.x86_64
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Setting breakpad minidump AppID = 201420
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198074530183 [API loaded no]
[New Thread 0x7fffef36e700 (LWP 9049)]
[New Thread 0x7fffed161700 (LWP 9050)]
pure virtual method called
terminate called without an active exception

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffed161700 (LWP 9050)]
0x00007ffff657add9 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x00007ffff657add9 in raise () from /lib64/libc.so.6
#1 0x00007ffff657c4e8 in abort () from /lib64/libc.so.6
#2 0x00007ffff6e846a5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6
#3 0x00007ffff6e82816 in ?? () from /usr/lib64/libstdc++.so.6
#4 0x00007ffff6e82843 in std::terminate() () from /usr/lib64/libstdc++.so.6
#5 0x00007ffff6e8331f in __cxa_pure_virtual () from /usr/lib64/libstdc++.so.6
#6 0x00000000007b6130 in toki::game::script::EntityScriptMgr::getParentClass(tagSQObject const&) const ()
#7 0x00000000007c16d3 in toki::game::script::EntityScriptClass::create(std::string const&, std::string const&) ()
#8 0x00000000007b808b in toki::game::script::EntityScriptMgr::createScriptClass(std::string const&, std::string const&) ()
#9 0x00000000007b8600 in toki::game::script::EntityScriptMgr::processNutFilesInDirectory(std::string const&) ()
#10 0x00000000007b862f in toki::game::script::EntityScriptMgr::processNutFilesInDirectory(std::string const&) ()
#11 0x00000000007b895a in toki::game::script::EntityScriptMgr::init(std::string const&) ()
#12 0x0000000000853aef in toki::script::ScriptMgr::init() ()
#13 0x0000000000848239 in toki::main::loadstate::LoadStateScriptMgr::doLoadStep() ()
#14 0x0000000000840071 in toki::main::StateLoadApp::loadThread() ()
#15 0x00007ffff763dce2 in start_thread () from /lib64/libpthread.so.0
#16 0x00007ffff663dabd in clone () from /lib64/libc.so.6
(gdb)
joinTee 15 Jan, 2014 @ 11:55am 
I'm most probably having the same problem on a SteamOS installation, game vanishes during loading screen. However on a Debian/testing x86_64 desktop system the game runs just fine.
Heiji Hattori 15 Jan, 2014 @ 12:03pm 
Same here, crash at startup. But even if I open stem with the terminal I can't see any error or log messages of the crash.
TheLimeyDragon 15 Jan, 2014 @ 1:40pm 
use gdb to get a backtrace..


Install gdb if you do not have it.

In the terminal type:

gdb (location of the binary) e.g

gdb TokiTori2.bin.x86_64

type:

run

when it crashes type:

bt

you'll get a backtrace which you can show here/report to the developer
Splizard 15 Jan, 2014 @ 1:51pm 
Originally posted by TheLimeyDragon:
use gdb to get a backtrace..


Install gdb if you do not have it.

In the terminal type:

gdb (location of the binary) e.g

gdb TokiTori2.bin.x86_64

type:

run

when it crashes type:

bt

you'll get a backtrace which you can show here/report to the developer
Thanks I have added gdb output to the OP.
Uytko 15 Jan, 2014 @ 1:55pm 
Hope it helps. On my system, the 64-build crashes but the 32-build works fine.
Last edited by Uytko; 15 Jan, 2014 @ 1:55pm
TheLimeyDragon 15 Jan, 2014 @ 2:20pm 
On mine both 32 bit and 64 bit versions crash.
Splizard 15 Jan, 2014 @ 2:26pm 
both the 64bit and 32bit versions has started working and I was able to play the first level without a crash... not sure whether I did anything to fix it.
Heiji Hattori 16 Jan, 2014 @ 3:39am 
This is my gdb for the 64bit version:


Starting program: /run/media/ryuzaki/hdd/SteamHDD/SteamApps/common/Toki Tori 2/TokiTori2.bin.x86_64
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Setting breakpad minidump AppID = 201420
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198064558083 [API loaded no]
[New Thread 0x7fffed84c700 (LWP 2603)]
[Thread 0x7fffed84c700 (LWP 2603) exited]
[New Thread 0x7fffed84c700 (LWP 2604)]
[New Thread 0x7fffe904a700 (LWP 2605)]
[New Thread 0x7fffe3fff700 (LWP 2606)]
pure virtual method called
terminate called without an active exception


Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe3fff700 (LWP 2606)]
0x00007ffff66e8369 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff66e8369 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff66e9768 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff6fd6635 in __gnu_cxx::__verbose_terminate_handler() ()
from /usr/lib/libstdc++.so.6
#3 0x00007ffff6fd47a6 in ?? () from /usr/lib/libstdc++.so.6
#4 0x00007ffff6fd47d3 in std::terminate() () from /usr/lib/libstdc++.so.6
#5 0x00007ffff6fd52af in __cxa_pure_virtual () from /usr/lib/libstdc++.so.6
#6 0x00000000007b6130 in toki::game::script::EntityScriptMgr::getParentClass(tagSQObject const&) const ()
#7 0x00000000007c16d3 in toki::game::script::EntityScriptClass::create(std::string const&, std::string const&) ()
#8 0x00000000007b808b in toki::game::script::EntityScriptMgr::createScriptClass(std::string const&, std::string const&) ()
#9 0x00000000007b8600 in toki::game::script::EntityScriptMgr::processNutFilesInDirectory(std::string const&) ()
#10 0x00000000007b895a in toki::game::script::EntityScriptMgr::init(std::string const&) ()
#11 0x0000000000853aef in toki::script::ScriptMgr::init() ()
#12 0x0000000000848239 in toki::main::loadstate::LoadStateScriptMgr::doLoadStep() ()
#13 0x0000000000840071 in toki::main::StateLoadApp::loadThread() ()
#14 0x00007ffff77910a2 in start_thread () from /usr/lib/libpthread.so.0
#15 0x00007ffff679832d in clone () from /usr/lib/libc.so.6
Heiji Hattori 16 Jan, 2014 @ 3:40am 
gdb for the 32bit version:

Starting program: /run/media/ryuzaki/hdd/SteamHDD/SteamApps/common/Toki Tori 2/TokiTori2.bin.x86
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Setting breakpad minidump AppID = 201420
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198064558083 [API loaded no]
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
AL lib: (EE) alsa_open_playback: Could not open playback device 'default': No such device or address
[New Thread 0xf19aab40 (LWP 2627)]
[New Thread 0xf554fb40 (LWP 2628)]
[New Thread 0xf0d1ab40 (LWP 2629)]
[New Thread 0xf0b19b40 (LWP 2630)]
[New Thread 0xf05ffb40 (LWP 2631)]
[Thread 0xf19aab40 (LWP 2627) exited]
[New Thread 0xf19aab40 (LWP 2634)]
[New Thread 0xe15ffb40 (LWP 2635)]
[New Thread 0xde5ffb40 (LWP 2636)]
[Thread 0xde5ffb40 (LWP 2636) exited]
[Thread 0xf19aab40 (LWP 2634) exited]

Program received signal SIGSEGV, Segmentation fault.
0x0861edb5 in tt::audio::xact::PlayWaveEventInstance::play() ()


#0 0x0861edb5 in tt::audio::xact::PlayWaveEventInstance::play() ()
#1 0x0861971a in tt::audio::xact::TrackInstance::play() ()
#2 0x085f7554 in tt::audio::xact::SoundInstance::play() ()
#3 0x085ef0eb in tt::audio::player::TTXactCue::play() ()
#4 0x08526605 in tt::audio::player::TTXactPlayer::playCue(std::string const&, bool) ()
#5 0x0824359e in toki::audio::AudioPlayer::playEffectCue(std::string const&)
()
#6 0x0824ca53 in toki::audio::SoundCue::play() ()
#7 0x0824cc2f in toki::audio::SoundCue::SoundCue(toki::audio::SoundCue::PlayInfo const&) ()
#8 0x0824ef29 in toki::audio::SoundCue::create(toki::audio::SoundCue::PlayInfo const&) ()
#9 0x084bce99 in toki::game::script::Bindings::playGlobalSoundEffect(std::string const&) ()
#10 0x084c4fb1 in int _sqbind_sqfunction_1r<SQVM*, std::string const&, toki::game::script::wrappers::SoundCueWrapper>(SQVM*) ()
#11 0x087600e0 in SQVM::CallNative(SQNativeClosure*, int, int, SQObjectPtr&, bool&) ()
#12 0x0876299a in SQVM::Execute(SQObjectPtr&, int, int, SQObjectPtr&, unsigned int, SQVM::ExecutionType) ()
#13 0x08762fd8 in SQVM::Call(SQObjectPtr&, int, int, SQObjectPtr&, unsigned int) ()
---Type <return> to continue, or q <return> to quit---
#14 0x0874d642 in sq_call ()
#15 0x083c2586 in toki::game::script::Callback::execute(tagSQObject const&) const ()
#16 0x083c9dc1 in toki::game::script::EntityBase::updateCallbacks(int) ()
#17 0x083caecd in toki::game::script::EntityBase::updateState() ()
#18 0x083c4665 in toki::game::script::EntityScriptMgr::updateEntityState() ()
#19 0x083c4a2a in toki::game::script::EntityScriptMgr::update(float) ()
#20 0x08261401 in toki::game::Game::update(float) ()
#21 0x0849873c in toki::game::StateGame::update(float) ()
#22 0x08536bf8 in tt::code::StateMachine::update(float) ()
#23 0x08235da2 in toki::AppMain::update(float) ()
#24 0x086b5774 in tt::app::LinuxApp::update(float) ()
#25 0x086b5c0c in tt::app::LinuxApp::run() ()
#26 0x0822b8aa in main ()
a.fettouhi 16 Jan, 2014 @ 9:21am 
Same issue here on Arch Linux 64 bit with KDE 4.12.1.
joinTee 16 Jan, 2014 @ 10:47am 
The way backtraces were fetched does not necessarily reproduce the behavior when started from inside Steam because that latter at least sets LD_LIBRARY_PATH and friends to load most shared libraries from the steam-runtime subdirectory.

At least the BT from post #11 refers to system ALSA libs and that shouldn't be the case. A steam-runtime based app should most probably be using
$HOME/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
Last edited by joinTee; 16 Jan, 2014 @ 10:47am
Consume Tofu 16 Jan, 2014 @ 2:15pm 
Same here in ubuntu 13.10 64bit with nvidia 331 drivers.
a.fettouhi 17 Jan, 2014 @ 1:12am 
Has anyone tried to contact two tribes in order find out how to fix this issue?
< >
Showing 1-15 of 108 comments
Per page: 1530 50