Crash when loading mission after changing resolutions
Steps to reproduce:
- Change resolution in the main menu
- load a save
Unfortunately sanitizers don't seem to give much info...
trRegistryRefresh: Refreshing up to 1862 textures
trTextureDeleteAllUnregistered
src/SDL/texreg.c:2610:33: runtime error: applying non-zero offset 139824252906544 to null pointer
src/SDL/texreg.c:2621:73: runtime error: applying non-zero offset 139824253326754 to null pointer
Image 'ETG/\textures\glow32' not found in listing
...regular .LiF
Image 'ETG/\textures\resource\halo_r2' not found in listing
...regular .LiF
Image 'ETG\textures\bullets\R1beamTest' not found in listing
...regular .LiF
Image 'ETG\textures\bullets\R1beamTest01' not found in listing
...regular .LiF
Image 'ETG\textures\bullets\R1beamTest02' not found in listing
...regular .LiF
Image 'ETG/\textures\resource\halo_r1' not found in listing
...regular .LiF
trCramRAMScaleCompute: fit textures, scale factor 65536, in 0 iterations
Saving detailed analysis to 'mem.analysis' and map to 'mem.map'
Heap length = 66097600
Largest block = 38894528 (58.84%)
Used memory = 25617600 (38.76%)
Free memory = 39297024 (59.45%)
Cookie memory = 1182848 (1.79%), 18482 cookies
Lost memory = 128 (0.00%)
Heap length = 8388736
Largest block = 2244928 (26.76%)
Used memory = 6032576 (71.91%)
Free memory = 2244928 (26.76%)
Cookie memory = 111104 (1.32%), 1736 cookies
Lost memory = 128 (0.00%)
src/Game/FEFlow.c:2910:44: runtime error: member access within misaligned address 0x7f2b6236442c for type 'fescreen' (aka 'struct tagfescreen'), which requires 8 byte alignment
0x7f2b6236442c: note: pointer points here
2b 7f 00 00 e0 46 36 62 2b 7f 00 00 00 00 00 00 00 00 02 00 f8 46 36 62 2b 7f 00 00 f8 46 36 62
^
src/Game/FEFlow.c:2910:44: runtime error: load of misaligned address 0x7f2b62364444 for type 'struct tagfeatom *', which requires 8 byte alignment
0x7f2b62364444: note: pointer points here
2b 7f 00 00 f8 46 36 62 2b 7f 00 00 d0 47 36 62 2b 7f 00 00 00 00 00 00 00 00 06 00 e8 47 36 62
^
src/Game/FEFlow.c:2910:73: runtime error: member access within misaligned address 0x7f2b6236442c for type 'fescreen' (aka 'struct tagfescreen'), which requires 8 byte alignment
0x7f2b6236442c: note: pointer points here
2b 7f 00 00 e0 46 36 62 2b 7f 00 00 00 00 00 00 00 00 02 00 f8 46 36 62 2b 7f 00 00 f8 46 36 62
^
src/Game/FEFlow.c:2912:68: runtime error: member access within misaligned address 0x7f2b6236442c for type 'fescreen' (aka 'struct tagfescreen'), which requires 8 byte alignment
0x7f2b6236442c: note: pointer points here
2b 7f 00 00 e0 46 36 62 2b 7f 00 00 00 00 00 00 00 00 02 00 f8 46 36 62 2b 7f 00 00 f8 46 36 62
^
AddressSanitizer:DEADLYSIGNAL
=================================================================
==95819==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00004178bc29 bp 0x000000000000 sp 0x7ffe8ae9e028 T0)
==95819==The signal is caused by a READ memory access.
==95819==Hint: address points to the zero page.
#0 0x4178bc29 (/memfd:/.glXXXXXX (deleted)+0x1c29)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/memfd:/.glXXXXXX (deleted)+0x1c29)
==95819==ABORTING