[StrangePan][2.0.41] Crash on pressing tab key (GameView::updateSoundFilters: Zoom(-0.21))

This subforum contains all the issues which we already resolved.
mellowengineer
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Mar 16, 2025 12:13 am
Contact:

[StrangePan][2.0.41] Crash on pressing tab key (GameView::updateSoundFilters: Zoom(-0.21))

Post by mellowengineer »

Game crashes after I resume from my save file when I press the <tab> key. I'm happy to share my save file just tell me where to email it. Thanks.

Code: Select all

   0.000 2025-03-15 17:09:35; Factorio 2.0.41 (build 81968, linux64, steam, space-age)
   0.000 Operating system: Linux
   0.000 Initializing Steam API.
   0.000 Program arguments: "/home/mark/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Factorio/bin/x64/factorio" 
   0.000 Config path: /home/mark/.factorio/config/config.ini
   0.000 Read data path: /home/mark/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Factorio/data
   0.000 Write data path: /home/mark/.factorio [848773/952228MB]
   0.000 Binaries path: /home/mark/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Factorio/bin
   0.003 System info: [CPU: AMD Ryzen 9 9900X 12-Core Processor, 24 cores, RAM: 31179 MB]
   0.003 Environment: DISPLAY=:0 WAYLAND_DISPLAY=wayland-0 DESKTOP_SESSION=gnome XDG_SESSION_DESKTOP=gnome XDG_CURRENT_DESKTOP=GNOME SDL_VIDEODRIVER=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.003 Display options: [FullScreen: true] [VSync: true] [UIScale: automatic (100.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
   0.009 Video driver: x11
   0.009 Available displays: 2
   0.009  [0]: DP-3 32" - {[5120,0], 7680x4320, SDL_PIXELFORMAT_RGB888, 35Hz}
   0.009  [1]: HDMI-1 27" - {[0,272], 5120x2880, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.009 Failed to get primary display index, defaulting to 0.
   0.160 Initialised OpenGL:[0] AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 19.1.7, DRM 3.61, 6.13.6-200.fc41.x86_64); driver: 4.6 (Core Profile) Mesa 24.3.4 (git-769e51468b)
   0.160   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes, ARB_pipeline_statistics_query:yes, ARB_gl_spirv:yes, ARB_ES2_compatibility:yes
   0.160   [Version] 4.6
   0.161 Graphics settings preset: very-high
   0.161   Dedicated video memory size 16384 MB
   0.166 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
   0.166                   [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWTl] [B:0,C:0,S:100]
   0.198 [Audio] Driver:pulseaudio, Device:Default device, Depth:16, Frequency:44100, Channels:2, Interpolation:linear
   0.308 Info ModManager.cpp:444: FeatureFlag expansion-shaders = true
   0.308 Info ModManager.cpp:444: FeatureFlag freezing = true
   0.308 Info ModManager.cpp:444: FeatureFlag quality = true
   0.308 Info ModManager.cpp:444: FeatureFlag rail-bridges = true
   0.308 Info ModManager.cpp:444: FeatureFlag segmented-units = true
   0.308 Info ModManager.cpp:444: FeatureFlag space-travel = true
   0.308 Info ModManager.cpp:444: FeatureFlag spoiling = true
   0.317 Loading mod core 0.0.0 (data.lua)
   0.324 Loading mod base 2.0.41 (data.lua)
   0.378 Loading mod elevated-rails 2.0.41 (data.lua)
   0.387 Loading mod quality 2.0.41 (data.lua)
   0.393 Loading mod space-age 2.0.41 (data.lua)
   0.471 Loading mod base 2.0.41 (data-updates.lua)
   0.477 Loading mod quality 2.0.41 (data-updates.lua)
   0.485 Loading mod space-age 2.0.41 (data-updates.lua)
   0.534 Checksum for core: 931939137
   0.534 Checksum of base: 3006295925
   0.534 Checksum of elevated-rails: 1046198653
   0.534 Checksum of quality: 3509504682
   0.534 Checksum of space-age: 476339876
   0.717 Prototype list checksum: 752621429
   0.764 Loading sounds...
   0.837 Info PlayerData.cpp:66: Local player-data.json unavailable
   0.837 Info PlayerData.cpp:69: Cloud player-data.json available, timestamp 1742068318
   0.838 Post-data load graphics options: [Light occlusion: YES]
   0.971 Initial atlas bitmap size is 16384
   0.978 Created an atlas bitmap (size 16384x16384) [none]
   0.987 Created an atlas bitmap (size 16384x16380) [none]
   0.999 Created an atlas bitmap (size 16384x16376) [none]
   0.999 Created an atlas bitmap (size 16384x14776) [none]
   1.001 Created an atlas bitmap (size 16384x16384) [low-object]
   1.001 Created an atlas bitmap (size 4096x1664) [low-object]
   1.001 Created an atlas bitmap (size 16384x14224) [corpse-decay]
   1.001 Created an atlas bitmap (size 16384x8392) [decal]
   1.001 Created an atlas bitmap (size 16384x5596) [none]
   1.001 Created an atlas bitmap (size 1676x79) [not-compressed]
   1.001 Created an atlas bitmap (size 16384x4240) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.001 Created an atlas bitmap (size 4096x3040) [smoke, mipmap, linear-minification, linear-magnification]
   1.004 Created an atlas bitmap (size 16384x16352) [terrain, mipmap, linear-minification, linear-mip-level]
   1.004 Created an atlas bitmap (size 16384x4944) [terrain, mipmap, linear-minification, linear-mip-level]
   1.004 Created an atlas bitmap (size 8192x4128) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   1.004 Created an atlas bitmap (size 8192x2576) [mipmap]
   1.004 Created an atlas bitmap (size 3504x768) [mipmap]
   1.004 Created an atlas bitmap (size 4096x3152) [mipmap]
   1.004 Created an atlas bitmap (size 4096x3152) [mipmap]
   1.004 Created an atlas bitmap (size 4096x3152) [mipmap]
   1.005 Created an atlas bitmap (size 8192x3872) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.005 Created an atlas bitmap (size 16384x6120) [alpha-mask]
   1.017 Created an atlas bitmap (size 16384x16384) [shadow, linear-magnification, alpha-mask]
   1.019 Created an atlas bitmap (size 16384x16332) [shadow, linear-magnification, alpha-mask]
   1.019 Created an atlas bitmap (size 16384x3764) [shadow, linear-magnification, alpha-mask]
   1.019 Created an atlas bitmap (size 8192x3968) [shadow, mipmap, linear-magnification, alpha-mask]
   1.019 Created an atlas bitmap (size 4096x336) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   1.019 Loading 3D bitmaps.
   1.025 Texture processor created (4096). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   1.110 Parallel sprite loader initialized (threads: 23, bitmaps: 8298)
   9.561 Sprites loaded
   9.574 Generated mipmaps (4) for atlas [4] of size 16384x16384   
   9.575 Generated mipmaps (4) for atlas [5] of size 4096x1664   
   9.578 Generated mipmaps (3) for atlas [10] of size 16384x4240   
   9.580 Generated mipmaps (3) for atlas [11] of size 4096x3040   
   9.586 Generated mipmaps (3) for atlas [12] of size 16384x16352   
   9.588 Generated mipmaps (3) for atlas [13] of size 16384x4944   
   9.590 Generated mipmaps (3) for atlas [14] of size 8192x4128   
   9.618 Generated mipmaps (3) for atlas [15] of size 8192x2576   
   9.619 Generated mipmaps (3) for atlas [16] of size 3504x768   
   9.620 Generated mipmaps (3) for atlas [17] of size 4096x3152   
   9.631 Generated mipmaps (3) for atlas [18] of size 4096x3152   
   9.632 Generated mipmaps (3) for atlas [19] of size 4096x3152   
   9.634 Generated mipmaps (5) for atlas [20] of size 8192x3872   
   9.636 Generated mipmaps (3) for atlas [25] of size 8192x3968   
   9.642 Custom mipmaps uploaded (3435)
   9.658 Video memory usage: 3572.06 MB (Atlases: 3441.75 MB, Textures: 130.30 MB)
   9.696 Factorio initialised
   9.699 Steam Storage Quota: 23248/23841
  11.276 Loading map /home/mark/.factorio/saves/biter free21.zip: 28142725 bytes.
  11.283 Loading level.dat: 83480860 bytes.
  11.286 Info Scenario.cpp:153: Map version 2.0.41-0
  12.054 Loading blueprint storage: Local timestamp -1, Cloud timestamp 1740879594
  12.055 Loading script.dat: 1267 bytes.
  12.057 Checksum for script __level__/control.lua: 3998407281
Factorio crashed. Generating symbolized stacktrace, please wait ...
src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
src/Util/StacktraceToStream.cpp (60): printStacktraceToStream
src/Util/Logger.cpp (334): writeStacktrace
src/Util/Logger.cpp (379): logStacktrace
src/Util/Logging.cpp (58): logStackTrace
src/Util/Logging.cpp (103): logAndAbortOrThrow
src/Util/StrongTypedef.hpp (36): StrongTypedef
src/Util/StrongTypedef.hpp (66): operator-
src/Util/StrongTypedef.hpp (63): operator-
src/GameView.cpp (1822): updateSoundFilters
src/GameView.cpp (1529): prepareRender
src/Game.cpp (331): prepareRender
src/MainLoop.cpp (1144): prepare
src/MainLoop.cpp (708): mainLoopStep
src/MainLoop.cpp (414): run
src/Main.cpp (1357): fmain
src/Main.cpp (1379): main
__libc_start_call_main
__libc_start_main
_start
0xffffffffffffffff
Stack trace logging done
  16.822 Error StrongTypedef.hpp:36: invalid strong type value: -0.21
  16.822 Error CrashHandler.cpp:643: Received 6
Logger::writeStacktrace skipped.
  16.822 Error CrashHandler.cpp:190: Map tick at moment of crash: 26528953
  16.822 Error Util.cpp:95: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
  20.977 Uploading log file
  21.003 Info SystemUtil.cpp:869: Started /home/mark/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Factorio/bin/x64/factorio; trampoline PID: 3540
Attachments
factorio.zip
game save
(26.84 MiB) Downloaded 12 times
Last edited by mellowengineer on Sun Mar 16, 2025 12:26 am, edited 2 times in total.
Loewchen
Global Moderator
Global Moderator
Posts: 9856
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.41] Crash on resume game - walkStackAndPrintToStream

Post by Loewchen »

mellowengineer wrote: Sun Mar 16, 2025 12:17 am I'm happy to share my save
See 3638.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3645
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.41] Crash on pressing tab key (GameView::updateSoundFilters: Zoom(-0.21))

Post by boskid »

Given that this crashes on a Zoom value check and it involves multiple values obtained from zoom navigator which could be affected by the display resolution and display density, i will assign this to StrangePan as he was doing most of the changes around all of those pieces of code.

-- edit:

I was able to reproduce this crash. For my testing purposes i injected a display resolution of 8000x8000 with a display density of 1. This caused zoom navigator to report getMinZoomInGameView of 1.25 and this value when later subtracted from a zoom of 0.99 caused Zoom(-0.26) to be constructed causing a check to trip with the exact same stacktrace as in the report.

-- edit:

With display resolution from the log file (7680x4320), this gives minZoom of 1.2 and the operation gives Zoom(-0.21) to be constructed that trips. This value exactly matches the value from the report.
StrangePan
Factorio Staff
Factorio Staff
Posts: 167
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.41] Crash on pressing tab key (GameView::updateSoundFilters: Zoom(-0.21))

Post by StrangePan »

Thank you for your detailed report (and to @boskid for the in-depth investigation). This uncovered a number of potential issues related to zooming, remote view, and very large displays such as yours. These issues will be fixed in the next version.
mellowengineer
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Mar 16, 2025 12:13 am
Contact:

Re: [StrangePan][2.0.41] Crash on pressing tab key (GameView::updateSoundFilters: Zoom(-0.21))

Post by mellowengineer »

And thank you for fixing it!

I don't think I have such an esoteric setup, just two 4K monitors at 3840x2160 resolution (though one is scaled). Maybe the scaling, X11, & Steam combo creates a much larger resolution for the game.

Anyway, I very much appreciate that it will be fixed soon!
Post Reply

Return to “Resolved Problems and Bugs”