Chaosforge Forum

DoomRL => Bug Reports => Topic started by: Hircon on August 27, 2013, 14:30

Title: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: Hircon on August 27, 2013, 14:30
Whenever I try to start the game from the terminal it launches a window as if the game is going to start, but then it gives me this error message:

Quote
Abnormal program termination!

Reason : Access violation

If this reason doesn't seem your fault, please submit a bug report at
http://forum.chaosforge.org/, be sure to include the last entries in
your error.log that will get created once you hit Enter.

An unhandled exception occurred at $00000000004D8ABA :
EAccessViolation : Access violation
  $00000000004D8ABA line 520 of ../fpcvalkyrie/src/vnode.pas
  $00000000004D8CD6 line 569 of ../fpcvalkyrie/src/vnode.pas
  $000000000048D5BB line 51 of ../fpcvalkyrie/src/vsystem.pas
  $00000000005C5277 line 66 of ../fpcvalkyrie/src/vio.pas
  $00000000004836BE line 386 of src/doomio.pas
  $000000000046C101 line 226 of src/doombase.pas

Does anyone know how to resolve this?  I would really like to be able to play this without resorting to wine.
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: Kornel Kisielewicz on August 27, 2013, 15:53
Try opening a terminal yourself, and ensure it's at least 80x25, and see if it helps? Also, error.log?
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: Hircon on August 28, 2013, 14:29
I get 80x24 when I open a terminal, would that be a problem?

error.log just gives the same information:

Quote
----------------------------------------------------------------------
Timestamp   : 28-8-13 15:28:02
Error level : FATAL EXCEPTION
Message     : Fatal exception encountered

An unhandled exception occurred at $00000000004D8ABA :
EAccessViolation : Access violation
  $00000000004D8ABA line 520 of ../fpcvalkyrie/src/vnode.pas
  $00000000004D8CD6 line 569 of ../fpcvalkyrie/src/vnode.pas
  $000000000048D5BB line 51 of ../fpcvalkyrie/src/vsystem.pas
  $00000000005C5277 line 66 of ../fpcvalkyrie/src/vio.pas
  $00000000004836BE line 386 of src/doomio.pas
  $000000000046C101 line 226 of src/doombase.pas

----------------------------------------------------------------------
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: Hircon on August 28, 2013, 14:35
Just found out I can start the game up using xterm, which I couldn't do yesterday. Not sure what exactly changed.
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: Kornel Kisielewicz on August 28, 2013, 14:40
You need to manually resize the terminal to at least 80x25, because DoomRL can't do that and crashes :<
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: Hircon on August 28, 2013, 16:33
That fixed it for console mode thanks!

It still gives the same error if I try to run it without -console though, even with the window resized.
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: thelaptop on August 28, 2013, 18:58
That is probably related to config.lua.  Look for the line with
Graphics = "TILES"
and change it to
Graphics = "CONSOLE"
and that should make it default to running as a console program, even without the -console flag.
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: slave on August 28, 2013, 19:58
You really do need a more informative error message for this situation.
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: thelaptop on August 28, 2013, 20:01
Well, yes and no.  There are three shell scripts that run doomrl using the correct settings (window size 80x25, with the -console flag), but it seems that there are people who don't use those launch scripts to get their version of the game running.  Completely understandable.

Though I think I need to check if the tiles are actually stored in the Linux WADs.  That could be a reason why things are broken.
Title: Re: [0.9.9.7|console|Linux] Game won't start: Ubuntu 13.04
Post by: thelaptop on August 28, 2013, 20:07
You need to manually resize the terminal to at least 80x25, because DoomRL can't do that and crashes :<
That's also because Kornel doesn't like to code things to play nice on Linux.  Like that "double-escape" thing that can be fixed with careful choice of terminal control.  >.>