akrieger
akrieger
I edited my comment to what I actually meant which correctly uses max, sorry :)
Aha. Try `e.set_intensity( std::max( 1, static_cast( e.get_duration() / e.get_int_dur_factor() ) ) );`.
It seems to only happen on handling signals with ui present and requires using a user dir flag apparently. We don't run tests with ui present.
@andrei8l does this stack look related? https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/10713363162/job/29705360471?pr=76153#step:18:298 ``` (~[slow] ~[.],starting_items)=> ==7192==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603005886280 at pc 0x0000077e40bf bp 0x7ffe05da0860 sp 0x7ffe05da0858 (~[slow] ~[.],starting_items)=> READ of size 8 at...
There's a lot of vehicles with cargo and items in that cargo that have to get processed per turn. Probably just generally 'living in city' problems. 
This was in visual studio, using the performance profiler. When I looked closer this seemed to be mostly hot in code trying to find batteries. I wonder if it's trying...
Actually I can take care of them all.
I am maybe not handling resetting a world correctly
`avif` support is not in sdl2-image in vcpkg https://github.com/microsoft/vcpkg/blob/master/ports/sdl2-image/vcpkg.json
So IDK why, but just deleting the call to `select_language()` is enough to get through this issue and enter the main menu correctly. Something later must be initializing some kind...