Grim Fandango crashes on startup screen

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
arjunkc
Posts: 4
Joined: Tue Aug 19, 2014 2:54 pm

Grim Fandango crashes on startup screen

Post by arjunkc »

Hi everyone,
I compiled residualvm 0.1.1 on my ARM linux laptop. But it crashes on the opening splash screen: it shows Manny riding the bike, and then freezes. The console shows the following:

Code: Select all

WARNING: Font treb13bs.laf, char 0xb8 exceeds font height by 1, increasing font height!
WARNING: Lua_V1::SetGamma, implement opcode, level: 0!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
<BR>
<BR>
<CENTER>(Introduction)</CENTER>
<BR>
<BR>
Illegal instruction
Then, I downloaded the github version 0.2.0git0bd0bf6-dirty and compiled it. Again, I get nearly the same output and it crashes. Except, the 'Illegal Instruction' does not show up on the console.

Can anyone help?
Botje
Posts: 207
Joined: Thu Feb 28, 2013 5:48 pm

Re: Grim Fandango crashes on startup screen

Post by Botje »

Can you run the program under gdb and provide a backtrace?
Also, did the game data validation run successfully?
arjunkc
Posts: 4
Joined: Tue Aug 19, 2014 2:54 pm

Re: Grim Fandango crashes on startup screen

Post by arjunkc »

The md5 check fail for two files:
  • * vox0001.lab
    * year1mus.lab
Otherwise it seems to be an audio issue.
gdb log in version 0.1.1:

Code: Select all

Starting program: /home/arjun/packages-local/residualvm-0.1.1/residualvm 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0x764aa450 (LWP 4421)]
[New Thread 0x7593c450 (LWP 4423)]

Program received signal SIGILL, Illegal instruction.
[Switching to Thread 0x7593c450 (LWP 4423)]
0x02189810 in ?? ()
#0  0x02189810 in ?? ()
Cannot access memory at address 0x3e8
#1  0x0013516c in Audio::CopyRateConverter<true, true>::~CopyRateConverter (
    this=0x5622, __in_chrg=<optimized out>) at audio/rate_arm.cpp:389
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
gdb log for 0.2.0

Code: Select all

Starting program: /home/arjun/packages-local/residualvm/residualvm 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0x761df450 (LWP 4476)]
[New Thread 0x759df450 (LWP 4477)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x761df450 (LWP 4476)]
0x00000000 in ?? ()
#0  0x00000000 in ?? ()
#1  0x003179d4 in Audio::AACDecoder::AACDecoder (this=0x40d9990, extraData=
    0x3fa0fc0, disposeExtraData=4782216) at audio/decoders/aac.cpp:79
#2  0x00000758 in ?? ()
#3  0x00000758 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Botje
Posts: 207
Joined: Thu Feb 28, 2013 5:48 pm

Re: Grim Fandango crashes on startup screen

Post by Botje »

This is very probably a case of bad data, then.
Try copying the files again from the CD.
arjunkc
Posts: 4
Joined: Tue Aug 19, 2014 2:54 pm

Re: Grim Fandango crashes on startup screen

Post by arjunkc »

I recopied files from the CD, and now it passes the md5check. I don't know why it failed the first two times, even with

Code: Select all

cp -a
Do you have any idea why lab files copy with errors sometimes?

In any case, the game fails with the same error. Either segmentation fault or Illegal operation. I checked AAC file playback since it seems to want to play AAC files, and it works perfectly in ffmpeg and vlc. Something in the aac.cpp file seems to be failing.
Botje
Posts: 207
Joined: Thu Feb 28, 2013 5:48 pm

Re: Grim Fandango crashes on startup screen

Post by Botje »

Could be dust on the CD or just bad luck.
Is your ARM laptop big-endian, by chance? We cannot test as much on big-endian machines.
arjunkc
Posts: 4
Joined: Tue Aug 19, 2014 2:54 pm

Re: Grim Fandango crashes on startup screen

Post by arjunkc »

No it's little endian. Here's my configure output if you need it.

Code: Select all

Running ResidualVM configure...
Looking for C++ compiler... g++
Checking for compiler version... 4.6, ok
Building as C++11... no
Checking for whether -Wglobal-constructors work... no
Checking endianness... little
Checking 64-bitness... no
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Type with 8 bytes... long long
Alignment required... yes
Checking host CPU architecture... ARM
Checking hosttype... linux-gnueabihf
Looking for sdl-config... /usr/bin/sdl-config
Checking if host is POSIX compliant... yes
Checking whether to have a verbose build... no
Checking whether building plugins was requested... no
Checking for Ogg Vorbis... yes
Checking for Tremor... no (Ogg Vorbis/Tremor support is mutually exclusive)
Checking for FLAC >= 1.0.1... yes
Checking for MAD... yes
Checking for ALSA >= 0.9... yes
Checking for libjpeg >= v6b... yes
Checking for PNG >= 1.2.8... yes
Checking for libtheoradec >= 1.0... yes
Checking for libfaad... yes
Checking for SEQ MIDI... no
Checking for sndio... no
Checking for TiMidity... yes
Checking for zlib... yes
Checking for libmpeg2 >= 0.4.0... yes
Checking for Sparkle... no
Checking for libfluidsynth... no
Checking for readline... skipping (text console disabled)
Checking for libunity... no
Looking for freetype-config... /usr/bin/freetype-config
Checking for FreeType2... yes
Checking for OpenGL... yes (shaders disabled)
Building translation support... no
Building taskbar integration support... no
Building Bink video support... yes
Building SafeDisc decryption support... no
Building updates support... no
Backend... sdl (1.2.14), savegame timestamp

Engines (builtin):
    Grim [all games]
    Myst 3 


Creating config.h
Creating config.mk
Creating engines/engines.mk
Creating engines/plugins_table.h
Botje
Posts: 207
Joined: Thu Feb 28, 2013 5:48 pm

Re: Grim Fandango crashes on startup screen

Post by Botje »

Hmm. Grab as much information as you can then (console output, git version, gdb backtrace, game version/language), and file a bug report on our GitHub issue tracker.
User avatar
Raziel
ScummVM Porter
Posts: 1581
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: Grim Fandango crashes on startup screen

Post by Raziel »

Botje wrote:Could be dust on the CD or just bad luck.
Is your ARM laptop big-endian, by chance? We cannot test as much on big-endian machines.
Throw everything you have at me ;-)

BE here
Botje
Posts: 207
Joined: Thu Feb 28, 2013 5:48 pm

Re: Grim Fandango crashes on startup screen

Post by Botje »

We found a workaround at https://github.com/residualvm/residualvm/issues/1073, and IRC discussions found the assembly code to be the cause.
Doesn't it crash for your machine? Or do you have sound disabled?
User avatar
Raziel
ScummVM Porter
Posts: 1581
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: Grim Fandango crashes on startup screen

Post by Raziel »

Botje wrote:We found a workaround at https://github.com/residualvm/residualvm/issues/1073, and IRC discussions found the assembly code to be the cause.
Doesn't it crash for your machine? Or do you have sound disabled?
Was this directed at me?

Anyway, yes it starts fine, but later in the game (when Manny finished packing the dwarf into the coffin) the video sequence just stops and never returns to the game...nothing on the console

On my BE machine i don't have the crash on start and i'm running with sound enabled
Post Reply