"EInvalidOp: Invalid floating point operation" in lua_number2int when starting a mission (but not for hotseat games)
I intended to put this on the bug tracker, but I'm getting a "Forbidden" message (own account, not the anonhog account).
This is on Fedora Asahi Remix (Linux on a Mac), with fresh hedgewars installation (version 1.0.3), via the package manager. Main menu opens without problems. Hotseat games and "Play a quick game" seem to work.
Campaign mode ("A Classic Fairy Tale" "Mission 1: First Blood") and singleplayer missions ("Basic Movement Training") don't.
When trying to start those, I receive:
> The game died unexpectedly! (exit code 217)
> (+ we are sorry stuff)
(a window with a loading screen is open for less than a second (only properly noticed it after I retried with gdb), before it closes and the error window appears)
game0.log is at the end.
The current line of code is:
lua_number2int(k, n)
(at /usr/src/debug/compat-lua-5.1.5-31.fc44.aarch64/src/ltable.c:476)
I don't know what to set Severity and Priority to.
0: [Con] Hedgewars engine 1.0.3-r16107 (a45c091b6ce0) with protocol #59
0: Prefix: "/usr/share/hedgewars/Data"
0: UserPrefix: "/home/[redacted]/.hedgewars"
0: 0: /usr/bin/hwengine
0: 1: --internal
0: 2: --port
0: 3: 37383
0: 4: --prefix
0: 5: /usr/share/hedgewars/Data
0: 6: --user-prefix
0: 7: /home/[redacted]/.hedgewars
0: 8: --locale
0: 9: en.txt
0: 10: --frame-interval
0: 11: 33
0: 12: --volume
0: 13: 128
0: 14: --fullscreen-width
0: 15: 2560
0: 16: --fullscreen-height
0: 17: 1440
0: 18: --width
0: 19: 1706
0: 20: --height
0: 21: 992
0: 22: --raw-quality
0: 23: 3070
0: 24: --stereo
0: 25: 0
0: 26: --altdmg
0: 27: --nick
0: 28: R3Vlc3QzNjQ5Mg==
0: [Con] Init SDL...
0: [Con] ok
0: [Con] Init SDL_ttf...
0: [Con] ok
0: [Cmd] fullscr 0
0: Preparing to change video parameters...
0: [Con] Init SDL_image...
0: [Con] ok
0: [Con] Loading /Graphics/hwengine.png [flags: 8] ok (32x32)
0: Setting up OpenGL (using driver: wayland)
0: OpenGL-- Renderer: Apple M2 (G14G B0)
0: |----- Vendor: Mesa
0: |----- Version: 4.6 (Compatibility Profile) Mesa 26.2.4
0: |----- Texture Size: 16384
0: |----- Number of auxiliary buffers: 0
0: \----- Extensions:
0: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra
0: GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract
0: GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object
0: GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture
0: GL_EXT_texture3D GL_IBM_ras
0:
0: [Con] Number of game controllers: 0
0: [Con] Not using any game controller
0: [BINDS] Loading binds from: /Config/settings.ini
0: [Con] Getting game config...
0: LoadFonts();
0: [Con] Loading /Fonts/DejaVuSans-Bold.ttf (12pt)...
0: [Con] ok
0: [Con] Loading /Fonts/DejaVuSans-Bold.ttf (24pt)...
0: [Con] ok
0: [Con] Loading /Fonts/DejaVuSans-Bold.ttf (10pt)...
0: [Con] ok
0: [Con] Loading /Fonts/wqy-zenhei.ttc (12pt)...
0: [Con] ok
0: [Con] Loading /Fonts/wqy-zenhei.ttc (24pt)...
0: [Con] ok
0: [Con] Loading /Fonts/wqy-zenhei.ttc (10pt)...
0: [Con] ok
0: [Con] Loading progress sprite:
0: [Con] Loading /Graphics/Progress.png [flags: 6] ok (324x972)
0: [Con] Loading default clan colors from: /Config/settings.ini
0: [Con] Init SDL_Net...
0: [Con] ok
0: [Con] Establishing IPC connection to tcp 127.0.0.1:37383
0: [Con] ok
0: [IPC out] C
0: [IPC out] ?
0: [Cmd] setmissteam dd580c1b0d06716a424ef339d1dad51b 16712196 Team 1
0: [BINDS] Loading binds from: /Config/Teams/Team 1.hwt
0: [Cmd] grave eyecross
0: [Cmd] fort Cake
0: [Cmd] voicepack Default
0: [Cmd] flag hedgewars
0: [Cmd] addmisshh 0 100 Hedgehog 1
0: [Cmd] hat NoHat
0: [Cmd] addmisshh 0 100 Hedgehog 2
0: [Cmd] hat NoHat
0: [Cmd] addmisshh 0 100 Hedgehog 3
0: [Cmd] hat NoHat
0: [Cmd] addmisshh 0 100 Hedgehog 4
0: [Cmd] hat NoHat
0: [Cmd] addmisshh 0 100 Hedgehog 5
0: [Cmd] hat NoHat
0: [Cmd] addmisshh 0 100 Hedgehog 6
0: [Cmd] hat NoHat
0: [Cmd] addmisshh 0 100 Hedgehog 7
0: [Cmd] hat NoHat
0: [Cmd] addmisshh 0 100 Hedgehog 8
0: [Cmd] hat NoHat
0: [Cmd] seed {5fadcdc9-3590-4409-8f30-7d0082c6b6b6}
0: [Cmd] script Missions/Training/Basic_Training_-_Movement.lua
0: [Con] An unhandled exception occurred at $0000FFFFF7EB6B24:
0: [Con] EInvalidOp: Invalid floating point operation
0: [Con] $0000FFFFF7EB6B24
0: [Con] $0073FFFFF7EAE0F0
0: [Con] $007EFFFFF7EAEA84
0: [Con] $005BFFFFF7EAEEC0
0: [Con] $0015FFFFF7EB34AC
0: [Con] $001FFFFFF7EB36A8
0: [Con] $001DFFFFF7EB48D4
0: [Con] $005DFFFFF7EB4DF8
0: [Con] $0057FFFFF7EB1D08
0: [Con] $003AFFFFF7EB4A14
0: [Con] $0022FFFFF7EB0D6C
0: [Con] $0028FFFFF7EAD164
0: [Con] $0069FFFFF7EA8320
0: [Con] $0065FFFFF7EA8F98
0: [Con] $003FFFFFF7EA924C
0: [Con] $004E00000046D48C
0: [Con] $00000000004C8E6C
Mitigations have been removed(?), now it's on the bug tracker: https://issues.hedgewars.org/show_bug.cgi?id=871