Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Crash report #1600  -  Game crashes when loading save or changing levels
Posted Jan 05, 2022 - updated Jun 03, 2022   Shortlink: http://arx.vg/1600
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Upstream" and resolution "Not determined".
Issue details
  • Type of issue
    Crash report
  • Status
     
    Upstream
  • Assigned to
    Not assigned to anyone
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Lalike
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    Not determined
  • Priority
    Not determined
  • Reproducability
    Always
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Linux Mint
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
Hi! I've build myself the latest version of Arx Libertatis 1.3 dev (4e28545) on Linux Mint 20.2 Cinnamon and used the Steam version of Arx Fatalis to get the data files and all works fine. I can start the game, the intro plays well, I can start a new game and even load individual levels on startup by adding the --loadlevel <id> param to the game's executable. All works fine.

But when I try to change the level, for example falling down the hole in the goblin prison, or change the level by clicking on the staircase icon at level transition locations, or when I use the teleport command in the command line the new level starts to load and at about 50% the game crashes - and I can't send a bugreport because of Bug report 1598 - "Could not create a new issue on the bug tracker".

In the console I see the following things:

  1. [E] ChangeLevel:186 Could not parse entity ID: :/8"6(|tdop<_a)a0�8'.)#+a&?,'("
  2. +#(z05
  3. [E] ChangeLevel:1693 Unable to read :/8"6(|tdop<_a)a0�8'.)#+a&?,'("
  4. +#(z05
  5. [E] ChangeLevel:186 Could not parse entity ID: r=cr<cs<dt<fv?gxaizcj\fl]hm_jn`knaloampbnpcoqcprdpo`lk]hgydcu?_q
  6. [E] ChangeLevel:1693 Unable to read r=cr<cs<dt<fv?gxaizcj\fl]hm_jn`knaloampbnpcoqcprdpo`lk]hgydcu?_q
  7. [E] ChangeLevel:186 Could not parse entity ID: g3[k7^o<br@evdewecuc`sa^p?\n=yl;wj8yk9zl;[n<]o=^q?_s@_sa^ra\q@[q
  8. [E] ChangeLevel:1693 Unable to read g3[k7^o<br@evdewecuc`sa^p?\n=yl;wj8yk9zl;[n<]o=^q?_s@_sa^ra\q@[q
  9. [E] ChangeLevel:186 Could not parse entity ID: :_n7\j4yh2vf0sd-qb+n@)k?'ia%jc'kc(md)ne+oe,pf-pe-od-nc,nb,m@+l?*
  10. [E] ChangeLevel:1693 Unable to read :_n7\j4yh2vf0sd-qb+n@)k?'ia%jc'kc(md)ne+oe,pf-pe-od-nc,nb,m@+l?*
  11. [E] ChangeLevel:186 Could not parse entity ID: tb-tb,sa,r@*q?*q?*uc/xg3\k8_o<br@evddudbsb_q@]o>[m<xj:wi8xj9zl:[
  12. [E] ChangeLevel:1693 Unable to read tb-tb,sa,r@*q?*q?*uc/xg3\k8_o<br@evddudbsb_q@]o>[m<xj:wi8xj9zl:[
  13. [E] ChangeLevel:186 Could not parse entity ID: v@hyaj[bj[bhx@fv>ds<aq:_n8\k5xh2ue/rc,oa*m?(i?%hb$jc&kd(le)ne+of
  14. [E] ChangeLevel:1693 Unable to read v@hyaj[bj[bhx@fv>ds<aq:_n8\k5xh2ue/rc,oa*m?(i?%hb$jc&kd(le)ne+of
  15. [E] ChangeLevel:186 Could not parse entity ID: m;]o<^p=_r?^q?]p>[o>zn>ym=wl=vk=ti:rf8oc5l?1i;-e7)b5&@4#=3 ;392
  16. [E] ChangeLevel:1693 Unable to read m;]o<^p=_r?^q?]p>[o>zn>ym=wl=vk=ti:rf8oc5l?1i;-e7)b5&@4#=3 ;392
  17. [E] ChangeLevel:186 Could not parse entity ID: (�/ ((
  18. #
  19. **"3 2 6%-


Steps to reproduce this issue
1) Compile the game using data from 6cc2226 commit on Linux Mint (probably the same on Ubuntu and Debian) using these steps: https://wiki.arx-libertatis.org/Downloading_and_Compiling_under_Linux 2) Start the game 3) Try to change the level in game


#3
icon_reply.pngReply
Comment posted by
 Lalike
Jan 06, 19:52
A file was uploaded. arx.logicon_open_new.png
#4
icon_reply.pngReply
Comment posted by
 Lalike
Jan 06, 19:52
A file was uploaded. cfg.iniicon_open_new.png
#5
icon_reply.pngReply
Comment posted by
 Lalike
Jan 06, 19:52
A file was uploaded. crash.txticon_open_new.png
#6
icon_reply.pngReply
Comment posted by
 Lalike
Jan 06, 19:52
A file was uploaded. maps.txticon_open_new.png
#9
icon_reply.pngReply
Comment posted by
 Lalike
Jan 07, 11:21
Updated affecting commit hash to the latest, since with a fresh new build on 4e28545 the issue remains to happen.
#10
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jan 09, 20:23
Hm, couldn't reproduce so far. Something is going wrong with saving and/or loading saves. The crash.txt you attached seems to be from loading a quicksave rather than changing levels, so I assume that is broken too? Changing levels and loading/saving are almost the same thing so it would make sense that both break at the same time.

Can /home/lali/.local/share/arx/save/save0000/gsave.sav be loaded with another arx build, e.g. a 1.2 Linux or Windows build from the website? You can use the --loadsave option to load it without copying the .sav file to the right place, or if AL is in windowed mode, drag and drop it onto the AL window. Do saves from other systems load with your AL build?

The bug reporter also works for me, although I'm not on a Debian-based distro. Will need to check this.
#11
icon_reply.pngReply
Comment posted by
 Lalike
icon_reply.pngJan 10, 08:58, in reply to comment #10
It might be something that I've missed installing.

Yes, the latest place where I've spotted it is when I try to load a savefile.

The package manager (mintinstall 8.0.9) offered to install version 1.2~rc1-0ppa1~focal and all is working fine there.

I'll attach another crash report from where the game tries loading a new level and after that I'll test out a different build of the game.
#12
icon_reply.pngReply
Comment posted by
 Lalike
Jan 10, 09:02
A file was uploaded. Crash report files from when I try to change levelicon_open_new.png
#13
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jan 12, 03:42
This is a compiler bug in GCC 9 / 10, I have filed an upstream bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103986

I'll wait for a response there before adding a workaround - until then it should work if you pass -DDEBUG=1 to the cmake configure command. If you plan to work on the code, I'd recommend adding -DDEVELOPER=1 to the cmake command, which also enables -DDEBUG=1.
#16
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jan 13, 01:27
The GCC bug was already fixed in GCC 11 and will also be fixed in GCC 9.5 and 10.4.

I have added a workaround to not use __builtin_unreachable() for the affected GCC versions so this should no longer be an issue even for those except for the game being minimally slower (probably not even noticeable).

The issue was updated with the following change(s):
  • The status has been updated, from New to Upstream.
  • This issue has been closed
#17
icon_reply.pngReply
Comment posted by
 Lalike
icon_reply.pngJan 13, 09:42, in reply to comment #16
Thank you! It works like a charm! I can now change levels and load savegames without an issue!
#19
icon_reply.pngReply
Comment posted by
 Guest user
icon_reply.pngJun 03, 11:13, in reply to comment #17


Lalike wrote:
Thank you! It works like a charm! I can now change levels and load
savegames without an issue!


Hi, i don't quite understand what you are doing. Do I have to do anything special to get my backups working again?

https://bugs.arx-libertatis.org/arx/issues/1629