Title crash while running next to the shoreline
Priority important Status resolved
Assigned To fluzz Keywords
Linked issues Watchers fluzz, jesusalva

Submitted on 2018-04-27 02h20 by flaviojs, last changed by fluzz.

Author: flaviojs Date: 2018-04-27   02h20
player's last position: X=-0.000002, Y=80.542435, Z=27.

FreedroidRPG 0.16-410-g7d8504e_mod encountered a problem in function:
A player's Tux was found outside the map.
This indicates either a bug in the FreedroidRPG code or
a bug in the currently used map system of FreedroidRPG.


FreedroidRPG will terminate now to draw attention to the problems it could
not resolve. We are sorry if that interrupts a major game of yours.
print_trace:  Obtained 7 stack frames.
print_trace:  Obtaining symbols now done.
src(print_trace+0x12) [0x454572]
src(error_message+0x15b) [0x46719b]
src(correct_tux_position_according_to_jump+0x164) [0x433c84]
src(Game+0x10b) [0x44abab]
src(main+0x14a) [0x41897a]
/lib/x86_64-linux-gnu/ [0x7fc7782fe830]
src(_start+0x29) [0x418a19]

Termination of freedroidRPG initiated... Thank you for playing freedroidRPG.

After uploading the firmware the bots died.
As I was sweeping the maps to pick up leftover drops I ventured into the area
after the Swap for the first time.
The crashed happened while I was running next to the shoreline.
Author: jesusalva Date: 2018-04-27   04h01
Thanks for the report
Will Try to take a look at it tomorrow
Author: fluzz Date: 2019-04-19   11h16
Given the player's position (X=-0.000002), I suspect a floating point arithmetic
error when the 'virtual player position' is resolved during the level boundary

A patch, which should prevent the reported crash, has been pushed in commit
Author: ahuillet Date: 2019-10-05   19h46
Reopening - dade2a74c70808f7b4bb86604e4ba11004946cbe introduces crashes when zooming out 9x and looking on the side of level 0.

#0  0x00005555555c7340 in insert_obstacles_into_blitting_list (mask=mask@entry=4076) at view.c:436
#1  0x00005555555c756c in set_up_ordered_blitting_list (mask=mask@entry=4076) at view.c:1246
#2  0x00005555555cb6a9 in AssembleCombatPicture (mask=<optimized out>) at view.c:1836
#3  0x00005555555d337a in leveleditor_display () at lvledit/lvledit_display.c:299
#4  0x00005555555cf79d in LevelEditor () at lvledit/lvledit.c:287
#5  0x00005555555714ad in main (argc=2, argv=0x7fffffffdb38) at main.c:189
#6  0x00007ffff7571ee3 in __libc_start_main () from /usr/lib/
#7  0x000055555557156e in _start () at main.c:174
Author: fluzz Date: 2019-10-08   07h20
Rework the first patch, with a better workaround, in commit 692a9db5b.
Date User Action Args
2019-10-08 07:20:33fluzzsetmessages: + msg3656
2019-10-05 19:46:50ahuilletsetmessages: + msg3655
2019-04-19 11:17:00fluzzsetstatus: open -> resolved
assignedto: fluzz
messages: + msg3612
nosy: + fluzz
2018-04-27 04:01:46jesusalvasetnosy: + jesusalva
messages: + msg3586
2018-04-27 02:20:53flaviojscreate