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
Crashes upon entering specifically the Archives
Oblidor Offline
Junior Member

Posts: 23
Threads: 2
Joined: Sep 2010
Reputation: 0
#21
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

(09-14-2010, 01:03 PM)Urkle Wrote: You'd need to do a chmod 777 Amnesia and then run the game.. it'll generate a core file.. It's been a LONG time since a core file was generated as "core" they are now generated as "core.####" where the # is the process ID.

Actually not in Ubuntu. In Ubuntu you need to do:

echo "1" > /proc/sys/kernel/core_uses_pid

as root first.

When I look at my core dump I see:

warning: Can't read pathname for load map: Input/output error.
[...]
Program terminated with signal 11, Segmentation fault.
#0  0x000000000096c2f4 in hpl::cWidgetListBox::DrawItems(float, hpl::cGuiClipRegion*) ()

Second run of the progam I got this:
warning: Can't read pathname for load map: Input/output error.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f576a9893c4 in pthread_mutex_lock () from /lib/libpthread.so.0
09-15-2010, 04:55 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#22
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

can you provide a "thread apply all bt" output of those two core dumps? (there are multiple threads going on).

And that's useful to know about Ubuntu (and about the settting:-D)

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-15-2010, 05:24 PM
Website Find
Oblidor Offline
Junior Member

Posts: 23
Threads: 2
Joined: Sep 2010
Reputation: 0
#23
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

(09-15-2010, 05:24 PM)Urkle Wrote: can you provide a "thread apply all bt" output of those two core dumps? (there are multiple threads going on).

And that's useful to know about Ubuntu (and about the settting:-D)

I think I might have found the problem!!! It seems like it our dear crappoware pulseaudio that is causing crashes. After I choose "Alsa on default" I haven't had a crash. I'll test it more to verify.

here is the bt:

Thread 3 (Thread 1788):
#0  0x00007f26d7dda11d in nanosleep () from /lib/libpthread.so.0
#1  0x00007f26d8246784 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#2  0x000000000093d64f in UpdaterThread(void*) ()
#3  0x00007f26d81fe825 in ?? () from /usr/lib/libSDL-1.2.so.0
#4  0x00007f26d82443f9 in ?? () from /usr/lib/libSDL-1.2.so.0
#5  0x00007f26d7dd19ca in start_thread () from /lib/libpthread.so.0
#6  0x00007f26d70cd6fd in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 1787):
#0  0x00007f26d70c0f83 in poll () from /lib/libc.so.6
#1  0x00007f26cfdaa41f in ?? () from /usr/lib/libpulse.so.0
#2  0x00007f26cfd99d86 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007f26cfd9b809 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007f26cfd9b8c0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007f26cfdaa21b in ?? () from /usr/lib/libpulse.so.0
#6  0x00007f26cf9620e8 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#7  0x00007f26d7dd19ca in start_thread () from /lib/libpthread.so.0
#8  0x00007f26d70cd6fd in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 1785):
#0  0x00007f26d7dd43c4 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x0000000000aa6eed in asCThreadCriticalSection::Enter() ()
#2  0x0000000000aab783 in asCAtomic::atomicInc() ()
#3  0x0000000000a868be in asCObjectType::AddRef() ()
#4  0x0000000000aa2093 in asCScriptFunction::AddReferences() ()
#5  0x0000000000ae6933 in asCCompiler::CompileTemplateFactoryStub(asCBuilder*, int, asCObjectType*, asCScriptFunction*) ()
#6  0x0000000000a9220c in asCScriptEngine::GetTemplateInstanceType(asCObjectType*, asCDataType&) ()
#7  0x0000000000a7ac5e in asCDataType::MakeArray(asCScriptEngine*) ()
#8  0x0000000000aacae9 in asCBuilder::CreateDataTypeFromNode(asCScriptNode*, asCScriptCode*, bool, asCObjectType*) ()
#9  0x0000000000ae05ce in asCCompiler::CompileDeclaration(asCScriptNode*, asCByteCode*) ()
#10 0x0000000000ae1a8f in asCCompiler::CompileStatementBlock(asCScriptNode*, bool, bool*, asCByteCode*) ()
#11 0x0000000000ae6081 in asCCompiler::CompileFunction(asCBuilder*, asCScriptCode*, asCScriptNode*, asCScriptFunction*) ()
#12 0x0000000000ab6286 in asCBuilder::CompileFunctions() ()
#13 0x0000000000ab6bf5 in asCBuilder::Build() ()
#14 0x0000000000a80cea in asCModule::Build() ()
#15 0x000000000091ca38 in hpl::cSqScript::CreateFromFile(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::string*) ()
#16 0x00000000008b31a1 in hpl::cScriptManager::CreateScript(std::string const&, std::string*) ()
#17 0x00000000005e4320 in cLuxInventory::LoadScript() ()
#18 0x0000000000621098 in cLuxSaveHandler::LoadSaveGameData(cLuxSaveGame_SaveData*) ()
#19 0x00000000006229ec in cLuxSaveHandler::LoadGameFromFile(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) ()
#20 0x0000000000622f5e in cLuxSaveHandler::AutoLoad(bool) ()
#21 0x00000000007b343a in cLuxMainMenu::OnMenuExit() ()
#22 0x00000000007b3dc3 in cLuxMainMenu::Update(float) ()
#23 0x0000000000924737 in hpl::cUpdater::RunMessage(hpl::eUpdateableMessage, float) ()
#24 0x000000000092548b in hpl::cEngine::Run() ()
#25 0x00000000006880e0 in hplMain(std::string const&) ()
#26 0x0000000000910aa9 in main ()
09-15-2010, 06:33 PM
Find
Oblidor Offline
Junior Member

Posts: 23
Threads: 2
Joined: Sep 2010
Reputation: 0
#24
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

(09-15-2010, 06:33 PM)Oblidor Wrote: I think I might have found the problem!!! It seems like it our dear crappoware pulseaudio that is causing crashes. After I choose "Alsa on default" I haven't had a crash. I'll test it more to verify.

Actually, after rebooting the computer the crashes started again. But I managed to play further in the Archives now.

Man! This game is scaring the crap out of me...
09-15-2010, 11:30 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#25
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

From the backtrackes you sent, it looks like it's crashing in the system pthread library.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-15-2010, 11:54 PM
Website Find
Oblidor Offline
Junior Member

Posts: 23
Threads: 2
Joined: Sep 2010
Reputation: 0
#26
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

(09-15-2010, 11:54 PM)Urkle Wrote: From the backtrackes you sent, it looks like it's crashing in the system pthread library.

yes. The game only crashes when I want to continue a story. It hasn't crashed while playing again.

HMM! I noticed that I have both 64-bit and 32-bit version of libc6. I thought let's see what needs the 32-bit version. It turns out that: xorg-driver-fglrx, fglrx, and fglrx-amdcccle packages (and others) would be uninstalled if I uninstall the libc6-i386. Could this be a problem? I mean that the ATI driver uses 32 bit library?


I installed the 32 bit version of Amnesia and this works fine as others have said. I guess it has to do with that a different pthread library is used.
(This post was last modified: 09-16-2010, 01:55 AM by Oblidor.)
09-16-2010, 01:03 AM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#27
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

my guess is it's probably something with the 64bit build of angelscript and it's use of pthread that is causing the issue.. so I'm going to focus there.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-16-2010, 02:17 AM
Website Find
Gert Offline
Junior Member

Posts: 20
Threads: 0
Joined: Jul 2009
Reputation: 0
#28
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

(09-16-2010, 02:17 AM)Urkle Wrote: my guess is it's probably something with the 64bit build of angelscript and it's use of pthread that is causing the issue.. so I'm going to focus there.

After reading this I build a shared library of the latest version of angelscript (2.19.2), put it into lib64 and lo and behold, using
LD_PRELOAD=lib64/libangelscript-2.19.so ./Amnesia.bin64
I was able to load a save game that would otherwise crash the program. However, when I was doing "save and exit" I got another save game that would crash with this pre-load but not when pre-loading a shared build of angelscript-2.18.2. The save game resulting from the next save would then again load only with angelscript 2.19.2 pre-loaded. Crazy stuff.

Without preload Amnesia would always crash when loading one of these save games.
Hope that helps.
09-20-2010, 10:53 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#29
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

This crash is next on my hit list.. after fixing several others. Included in the game is angelscript 2.16.3 so I'll have to check through the diffs to see what magical fixes are in newer versions.

And due to Angelscript's lack of binary compatibility (it's designed to be statically included) you can't really just swap out new versions like that. Most likely why you had the odd issues.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-21-2010, 02:15 PM
Website Find
JSW Offline
Junior Member

Posts: 2
Threads: 0
Joined: Sep 2010
Reputation: 0
#30
Solved: 8 Years, 9 Months, 3 Weeks ago RE: Crashes upon entering specifically the Archives

I'm getting the same problem on Ubuntu 10.04 32-bit. I've tried both PulseAudio and ALSA and I'm getting the same problem. I'm using the built-in sound hardware of an Asus P5B motherboard (shows up in the options as an Intel HDA AD198x.)

I'm also running a Geforce 9800GT and have the game installed to /usr/local/games. I ran the installation program under sudo but I'm running the game itself as a regular user.

When I run it through a console, I get the following output:

bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Amnesia.bin: /builddir/core2/sources/impl/tinyXml/tinyxml.cpp:1102: virtual void TiXmlDocument::Print(FILE*, int) const: Assertion `cfile' failed.
Aborted
09-26-2010, 04:38 AM
Find




Users browsing this thread: 1 Guest(s)