[1.1.104] Crash in wayland_get_system_cursor

This subforum contains all the issues which we already resolved.
Baughn
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Jan 20, 2016 4:44 pm
Contact:

[1.1.104] Crash in wayland_get_system_cursor

Post by Baughn »

This is with SDL_VIDEODRIVER=wayland. Note that Factorio is unplayable without this set; the window blinks white several times per second during normal gameplay.

No mods are loaded. It reliably happens while scrolling the mod menu; I haven't gotten far enough to try gameplay.

Code: Select all

svein@saya ~/factorio [1]> SDL_VIDEODRIVER=wayland steam-run ./bin/x64/factorio
   0.000 2024-03-12 18:10:53; Factorio 1.1.104 (build 62119, linux64, full)
   0.004 Operating system: Linux (NixOS 24.05)
   0.004 Program arguments: "./bin/x64/factorio" 
   0.004 Config path: /home/svein/factorio/config/config.ini
   0.004 Read data path: /home/svein/factorio/data
   0.004 Write data path: /home/svein/factorio [1297355/1875676MB]
   0.004 Binaries path: /home/svein/factorio/bin
   0.007 System info: [CPU: AMD Ryzen 9 7950X3D 16-Core Processor, 32 cores, RAM: 127955 MB]
   0.007 Environment: DISPLAY=:1 WAYLAND_DISPLAY=wayland-0 DESKTOP_SESSION=plasma XDG_SESSION_DESKTOP=KDE XDG_CURRENT_DESKTOP=KDE __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.007 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 1] [Special: lmw] [Lang: en]
   0.011 Video driver: wayland
   0.011 Available displays: 3
   0.011  [0]: ACI ROG PG279Q/40680 - {[6000,0], 2560x1440, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.011  [1]: DEL Dell AW3423DW/811160659 - {[2560,0], 3440x1440, SDL_PIXELFORMAT_RGB888, 120Hz}
   0.011  [2]: ACI ROG PG279Q/95040 - {[0,0], 2560x1440, SDL_PIXELFORMAT_RGB888, 60Hz}
libEGL warning: egl: failed to create dri2 screen
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
   0.112 Initialised OpenGL:[1] zink Vulkan 1.3(NVIDIA GeForce RTX 4090 (NVIDIA_PROPRIETARY)); driver: 4.6 (Core Profile) Mesa 24.0.1
   0.112   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
   0.112   [Version] 4.6
   0.112 Graphics settings preset: very-high
   0.112   Dedicated video memory size 24564 MB
   0.139 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality] [Color: 32bit]
   0.139                   [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100]
   0.145 [Audio] Backend:SDL(default); Driver:pulseaudio, Device:Default device, Depth:16, Channels:2, Frequency:44100
   0.306 Loading mod core 0.0.0 (data.lua)
   0.331 Loading mod base 1.1.104 (data.lua)
   0.406 Loading mod base 1.1.104 (data-updates.lua)
   0.464 Checksum for core: 607699937
   0.464 Checksum of base: 1054619811
   0.572 Prototype list checksum: 3034860339
   0.599 Loading sounds...
   0.644 Info PlayerData.cpp:76: Local player-data.json available, timestamp 1710266896
   0.644 Info PlayerData.cpp:83: Cloud player-data.json unavailable
   0.708 Initial atlas bitmap size is 16384
   0.726 Created atlas bitmap 16384x16372 [none]
   0.727 Created atlas bitmap 16384x13232 [none]
   0.727 Created atlas bitmap 8192x4188 [decal]
   0.728 Created atlas bitmap 16384x5568 [low-object]
   0.728 Created atlas bitmap 8192x4432 [mipmap, linear-minification, linear-magnification, linear-mip-level]
   0.728 Created atlas bitmap 16384x6064 [terrain, mipmap, linear-minification, linear-mip-level]
   0.728 Created atlas bitmap 4096x3216 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   0.728 Created atlas bitmap 4096x1840 [smoke, mipmap, linear-minification, linear-magnification]
   0.728 Created atlas bitmap 4096x3104 [mipmap]
   0.729 Created atlas bitmap 8192x2272 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   0.729 Created atlas bitmap 8192x1496 [alpha-mask]
   0.731 Created atlas bitmap 16384x14764 [shadow, linear-magnification, alpha-mask]
   0.731 Created atlas bitmap 8192x2352 [shadow, mipmap, linear-magnification, alpha-mask]
   0.731 Created atlas bitmap 2048x240 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   0.843 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   1.115 Parallel Sprite Loader initialized (threads: 31)
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xc00bc80
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xa5e0180
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xa5c5340
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xa5f8fc0
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xa5e7f40
   4.714 Sprites loaded
   4.731 Generated mipmaps (4) for atlas [3] of size 16384x5568   
   4.736 Generated mipmaps (3) for atlas [4] of size 8192x4432   
   4.746 Generated mipmaps (3) for atlas [5] of size 16384x6064   
   4.759 Generated mipmaps (3) for atlas [6] of size 4096x3216   
   4.764 Generated mipmaps (3) for atlas [7] of size 4096x1840   
   4.787 Generated mipmaps (3) for atlas [8] of size 4096x3104   
   4.789 Generated mipmaps (5) for atlas [9] of size 8192x2272   
   4.798 Generated mipmaps (3) for atlas [12] of size 8192x2352   
   4.802 Custom mipmaps uploaded (1942)
   4.850 Factorio initialised
   4.851 Info HttpSharedState.cpp:58: Downloading https://updater.factorio.com/updater/get-available-versions?username=Baughn&token=<private>&apiVersion=2
   5.466 0 packages available to download (experimental updates disabled).
   7.983 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/categories?version=1.1.104&lang=en
   7.983 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/mods?page_size=max&version=1.1&lang=en
   7.984 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/bookmarks?version=1.1.104&lang=en&username=Baughn&token=<private>
  17.878 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/mods/MileStoneSaves/full?version=1.1.104&lang=en
  18.274 Info HttpSharedState.cpp:58: Downloading https://mods-data.factorio.com/assets/05e81a39677059e4a8e4ba442895e660120956db.thumb.png
  21.437 Error CrashHandler.cpp:639: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
/tmp/factorio-build-MzGUjo/src/Util/Logger.cpp (336): Logger::writeStacktrace(FileWriteStream*, StackTraceInfo*) [clone .constprop.0]
/tmp/factorio-build-MzGUjo/src/Util/CrashHandler.cpp (188): CrashHandler::writeStackTrace(CrashHandler::CrashReason)
/tmp/factorio-build-MzGUjo/src/Util/CrashHandler.cpp (642): CrashHandler::commonSignalHandler(int)
/tmp/factorio-build-MzGUjo/src/Util/CrashHandler.cpp (648): CrashHandler::SignalHandler(int)
0x7f3c7193feaf
/tmp/factorio-build-MzGUjo/libraries/SDL2/src/video/wayland/SDL_waylandmouse.c (283): wayland_get_system_cursor
/tmp/factorio-build-MzGUjo/libraries/SDL2/src/video/wayland/SDL_waylandmouse.c (516): Wayland_ShowCursor
/tmp/factorio-build-MzGUjo/src/MainLoop.cpp (1179): MainLoop::prepare()
/tmp/factorio-build-MzGUjo/src/MainLoop.cpp (715): MainLoop::mainLoopStep(WorkerThread&, MainLoop::HeavyMode)
/tmp/factorio-build-MzGUjo/src/MainLoop.cpp (423): MainLoop::run(Filesystem::Path const&, Filesystem::Path const&, bool, bool, std::function<void ()>, Filesystem::Path const&, MainLoop::HeavyMode)
/tmp/factorio-build-MzGUjo/src/Main.cpp (1267): main
__libc_start_call_main
__libc_start_main_impl
0x783342
0xffffffffffffffff
Stack trace logging done
  21.515 Error Util.cpp:100: 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.
  21.541 Error MessageDialog.cpp:53: Unable to show message dialog. SDL Error: [zenity reported error or failed to launch: 129]
  21.541 Uploading log file
  21.548 Info SystemUtil.cpp:878: Started /home/svein/factorio/bin/x64/factorio; trampoline PID: 323052
Baughn
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Jan 20, 2016 4:44 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by Baughn »

I spot a lot of changes to that particular function, some in reference to crashes.

Factorio appears to have SDL linked statically, so I can't test it, but I suspect that updating to the newest SDL2 release might do it.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 615
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by raiguard »

Thanks for the report. Which distro, window manager, and graphics card are you running?

I'm a doofus, it says the distro and GPU in the log. Which window manager / desktop environment though?

NVIDIA on Wayland is still not there yet so you're going to run into issues.
Don't forget, you're here forever.
Baughn
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Jan 20, 2016 4:44 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by Baughn »

NixOS, Plasma 6. Though as I said, this might be fixed upstream; it appears similar to https://bugzilla.redhat.com/show_bug.cgi?id=2165386, which isn't GPU-related.

I'd love to test a newer SDL version for you, except... I wound up rebuilding my OS with a newer SDL, then realised it's statically linked. What version is in the build, anyway?

NVIDIA on Wayland works fine so long as you avoid Xwayland, nowadays.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 615
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by raiguard »

The crash is happening because you don't have an XDG cursor theme set. A newer version of SDL indeed fixes the issue, but updating SDL in Factorio 1.1.x is out of the question at this point.

Set an XDG cursor theme to avoid the crash.
Don't forget, you're here forever.
Baughn
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Jan 20, 2016 4:44 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by Baughn »

Setting an XCURSOR_THEME does not appear to solve the problem.

Code: Select all

svein@saya ~/factorio [1]> echo $XCURSOR_PATH 
/nix/store/7brazl8m0rhc8yacpw98flwaxs5g12qz-plasma-workspace-6.0.0/share/icons /home/svein/.icons /home/svein/.local/share/icons /home/svein/.local/share/flatpak/exports/share/icons /home/svein/.local/share/flatpak/exports/share/pixmaps /var/lib/flatpak/exports/share/icons /var/lib/flatpak/exports/share/pixmaps /home/svein/.nix-profile/share/icons /home/svein/.nix-profile/share/pixmaps /nix/profile/share/icons /nix/profile/share/pixmaps /home/svein/.local/state/nix/profile/share/icons /home/svein/.local/state/nix/profile/share/pixmaps /etc/profiles/per-user/svein/share/icons /etc/profiles/per-user/svein/share/pixmaps /nix/var/nix/profiles/default/share/icons /nix/var/nix/profiles/default/share/pixmaps /run/current-system/sw/share/icons /run/current-system/sw/share/pixmaps ~/.icons /usr/share/icons /usr/share/pixmaps /usr/X11R6/lib/X11/icons
svein@saya ~/factorio> ls /nix/store/7brazl8m0rhc8yacpw98flwaxs5g12qz-plasma-workspace-6.0.0/share/icons
hicolor
svein@saya ~/factorio> ls /nix/store/7brazl8m0rhc8yacpw98flwaxs5g12qz-plasma-workspace-6.0.0/share/icons/^C
svein@saya ~/factorio> XCURSOR_THEME=hicolor SDL_VIDEODRIVER=wayland steam-run ./bin/x64/factorio
   0.000 2024-03-13 03:58:40; Factorio 1.1.104 (build 62119, linux64, full)
   0.004 Operating system: Linux (NixOS 24.05)
   0.004 Program arguments: "./bin/x64/factorio" 
   0.004 Config path: /home/svein/factorio/config/config.ini
   0.004 Read data path: /home/svein/factorio/data
   0.004 Write data path: /home/svein/factorio [1292873/1875676MB]
   0.004 Binaries path: /home/svein/factorio/bin
   0.007 System info: [CPU: AMD Ryzen 9 7950X3D 16-Core Processor, 32 cores, RAM: 127955 MB]
   0.007 Environment: DISPLAY=:1 WAYLAND_DISPLAY=wayland-0 DESKTOP_SESSION=plasma XDG_SESSION_DESKTOP=KDE XDG_CURRENT_DESKTOP=KDE __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.007 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 1] [Special: lmw] [Lang: en]
   0.011 Video driver: wayland
   0.011 Available displays: 3
   0.011  [0]: ACI ROG PG279Q/40680 - {[6000,0], 2560x1440, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.011  [1]: DEL Dell AW3423DW/811160659 - {[2560,0], 3440x1440, SDL_PIXELFORMAT_RGB888, 120Hz}
   0.011  [2]: ACI ROG PG279Q/95040 - {[0,0], 2560x1440, SDL_PIXELFORMAT_RGB888, 60Hz}
libEGL warning: egl: failed to create dri2 screen
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
   0.108 Initialised OpenGL:[1] zink Vulkan 1.3(NVIDIA GeForce RTX 4090 (NVIDIA_PROPRIETARY)); driver: 4.6 (Core Profile) Mesa 24.0.1
   0.108   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
   0.108   [Version] 4.6
   0.108 Graphics settings preset: very-high
   0.108   Dedicated video memory size 24564 MB
   0.134 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality] [Color: 32bit]
   0.134                   [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100]
   0.140 [Audio] Backend:SDL(default); Driver:pulseaudio, Device:Default device, Depth:16, Channels:2, Frequency:44100
   0.301 Loading mod settings aai-loaders 0.1.4 (settings.lua)
   0.302 Loading mod settings alien-biomes 0.6.8 (settings.lua)
   0.302 Loading mod settings ArachnidsFaction 1.1.4 (settings.lua)
   0.303 Loading mod settings better-victory-screen 0.2.12 (settings.lua)
   0.303 Loading mod settings Arachnids_enemy 1.0.2 (settings.lua)
   0.304 Loading mod settings ArmouredBiters 1.1.9 (settings.lua)
   0.305 Loading mod settings Warp-Drive-Machine 0.1.31 (settings.lua)
   0.305 Loading mod settings Warp-Drive-Machine 0.1.31 (settings-updates.lua)
   0.307 Loading mod core 0.0.0 (data.lua)
   0.327 Loading mod base 1.1.104 (data.lua)
   0.401 Loading mod aai-loaders 0.1.4 (data.lua)
   0.402 Script @__aai-loaders__/data.lua:5: Log mods once: {
  ArachnidsFaction = "1.1.4",
  Arachnids_enemy = "1.0.2",
  ArmouredBiters = "1.1.9",
  ["Warp-Drive-Machine"] = "0.1.31",
  ["aai-loaders"] = "0.1.4",
  ["alien-biomes"] = "0.6.8",
  base = "1.1.104",
  ["better-victory-screen"] = "0.2.12",
  ["factorio-crash-site"] = "1.0.2",
  ["space-exploration-graphics"] = "0.6.17"
}
   0.406 Loading mod alien-biomes 0.6.8 (data.lua)
   0.546 Loading mod ArachnidsFaction 1.1.4 (data.lua)
   0.555 Loading mod better-victory-screen 0.2.12 (data.lua)
   0.559 Loading mod factorio-crash-site 1.0.2 (data.lua)
   0.566 Loading mod Arachnids_enemy 1.0.2 (data.lua)
   0.578 Loading mod ArmouredBiters 1.1.9 (data.lua)
   0.587 Loading mod Warp-Drive-Machine 0.1.31 (data.lua)
   0.676 Loading mod base 1.1.104 (data-updates.lua)
   0.682 Loading mod aai-loaders 0.1.4 (data-updates.lua)
   0.694 Loading mod alien-biomes 0.6.8 (data-updates.lua)
   0.702 Loading mod Warp-Drive-Machine 0.1.31 (data-updates.lua)
   0.714 Loading mod aai-loaders 0.1.4 (data-final-fixes.lua)
   0.727 Loading mod alien-biomes 0.6.8 (data-final-fixes.lua)
   0.733 Script @__alien-biomes__/collision-mask-util-extended/data/collision-mask-util-extended.lua:133: Named collision layer [vehicle-layer] set to layer [layer-13]
   0.747 Script @__alien-biomes__/data-final-fixes.lua:300: Setting decals to layer 163
   0.747 Script @__alien-biomes__/data-final-fixes.lua:407: logging tile layers
   0.753 Script @__alien-biomes__/data-final-fixes.lua:412: {
  ["layer 0"] = "out-of-map",
  ["layer 1"] = "water, water-green",
  ["layer 2"] = "deepwater, deepwater-green",
  ["layer 3"] = "water-wube",
  ["layer 4"] = "water-shallow",
  ["layer 5"] = "water-mud",
  ["layer 6"] = "grass-1",
  ["layer 7"] = "mineral-purple-dirt-1",
  ["layer 8"] = "mineral-purple-dirt-2",
  ["layer 9"] = "mineral-purple-dirt-3",
  ["layer 10"] = "mineral-purple-dirt-4",
  ["layer 11"] = "mineral-purple-dirt-5",
  ["layer 12"] = "mineral-purple-dirt-6",
  ["layer 13"] = "mineral-purple-sand-1",
  ["layer 14"] = "mineral-purple-sand-2",
  ["layer 15"] = "mineral-purple-sand-3",
  ["layer 16"] = "mineral-violet-dirt-1",
  ["layer 17"] = "mineral-violet-dirt-2",
  ["layer 18"] = "mineral-violet-dirt-3",
  ["layer 19"] = "mineral-violet-dirt-4",
  ["layer 20"] = "mineral-violet-dirt-5",
  ["layer 21"] = "mineral-violet-dirt-6",
  ["layer 22"] = "mineral-violet-sand-1",
  ["layer 23"] = "mineral-violet-sand-2",
  ["layer 24"] = "mineral-violet-sand-3",
  ["layer 25"] = "mineral-red-dirt-1",
  ["layer 26"] = "mineral-red-dirt-2",
  ["layer 27"] = "mineral-red-dirt-3",
  ["layer 28"] = "mineral-red-dirt-4",
  ["layer 29"] = "mineral-red-dirt-5",
  ["layer 30"] = "mineral-red-dirt-6",
  ["layer 31"] = "mineral-red-sand-1",
  ["layer 32"] = "mineral-red-sand-2",
  ["layer 33"] = "mineral-red-sand-3",
  ["layer 34"] = "mineral-brown-dirt-1",
  ["layer 35"] = "mineral-brown-dirt-2",
  ["layer 36"] = "mineral-brown-dirt-3",
  ["layer 37"] = "mineral-brown-dirt-4",
  ["layer 38"] = "mineral-brown-dirt-5",
  ["layer 39"] = "mineral-brown-dirt-6",
  ["layer 40"] = "mineral-brown-sand-1",
  ["layer 41"] = "mineral-brown-sand-2",
  ["layer 42"] = "mineral-brown-sand-3",
  ["layer 43"] = "mineral-tan-dirt-1",
  ["layer 44"] = "mineral-tan-dirt-2",
  ["layer 45"] = "mineral-tan-dirt-3",
  ["layer 46"] = "mineral-tan-dirt-4",
  ["layer 47"] = "mineral-tan-dirt-5",
  ["layer 48"] = "mineral-tan-dirt-6",
  ["layer 49"] = "mineral-tan-sand-1",
  ["layer 50"] = "mineral-tan-sand-2",
  ["layer 51"] = "mineral-tan-sand-3",
  ["layer 52"] = "mineral-aubergine-dirt-1",
  ["layer 53"] = "mineral-aubergine-dirt-2",
  ["layer 54"] = "mineral-aubergine-dirt-3",
  ["layer 55"] = "mineral-aubergine-dirt-4",
  ["layer 56"] = "mineral-aubergine-dirt-5",
  ["layer 57"] = "mineral-aubergine-dirt-6",
  ["layer 58"] = "mineral-aubergine-sand-1",
  ["layer 59"] = "mineral-aubergine-sand-2",
  ["layer 60"] = "mineral-aubergine-sand-3",
  ["layer 61"] = "mineral-dustyrose-dirt-1",
  ["layer 62"] = "mineral-dustyrose-dirt-2",
  ["layer 63"] = "mineral-dustyrose-dirt-3",
  ["layer 64"] = "mineral-dustyrose-dirt-4",
  ["layer 65"] = "mineral-dustyrose-dirt-5",
  ["layer 66"] = "mineral-dustyrose-dirt-6",
  ["layer 67"] = "mineral-dustyrose-sand-1",
  ["layer 68"] = "mineral-dustyrose-sand-2",
  ["layer 69"] = "mineral-dustyrose-sand-3",
  ["layer 70"] = "mineral-beige-dirt-1",
  ["layer 71"] = "mineral-beige-dirt-2",
  ["layer 72"] = "mineral-beige-dirt-3",
  ["layer 73"] = "mineral-beige-dirt-4",
  ["layer 74"] = "mineral-beige-dirt-5",
  ["layer 75"] = "mineral-beige-dirt-6",
  ["layer 76"] = "mineral-beige-sand-1",
  ["layer 77"] = "mineral-beige-sand-2",
  ["layer 78"] = "mineral-beige-sand-3",
  ["layer 79"] = "mineral-cream-dirt-1",
  ["layer 80"] = "mineral-cream-dirt-2",
  ["layer 81"] = "mineral-cream-dirt-3",
  ["layer 82"] = "mineral-cream-dirt-4",
  ["layer 83"] = "mineral-cream-dirt-5",
  ["layer 84"] = "mineral-cream-dirt-6",
  ["layer 85"] = "mineral-cream-sand-1",
  ["layer 86"] = "mineral-cream-sand-2",
  ["layer 87"] = "mineral-cream-sand-3",
  ["layer 88"] = "mineral-black-dirt-1",
  ["layer 89"] = "mineral-black-dirt-2",
  ["layer 90"] = "mineral-black-dirt-3",
  ["layer 91"] = "mineral-black-dirt-4",
  ["layer 92"] = "mineral-black-dirt-5",
  ["layer 93"] = "mineral-black-dirt-6",
  ["layer 94"] = "mineral-black-sand-1",
  ["layer 95"] = "mineral-black-sand-2",
  ["layer 96"] = "mineral-black-sand-3",
  ["layer 97"] = "mineral-grey-dirt-1",
  ["layer 98"] = "mineral-grey-dirt-2",
  ["layer 99"] = "mineral-grey-dirt-3",
  ["layer 100"] = "mineral-grey-dirt-4",
  ["layer 101"] = "mineral-grey-dirt-5",
  ["layer 102"] = "mineral-grey-dirt-6",
  ["layer 103"] = "mineral-grey-sand-1",
  ["layer 104"] = "mineral-grey-sand-2",
  ["layer 105"] = "mineral-grey-sand-3",
  ["layer 106"] = "mineral-white-dirt-1",
  ["layer 107"] = "mineral-white-dirt-2",
  ["layer 108"] = "mineral-white-dirt-3",
  ["layer 109"] = "mineral-white-dirt-4",
  ["layer 110"] = "mineral-white-dirt-5",
  ["layer 111"] = "mineral-white-dirt-6",
  ["layer 112"] = "mineral-white-sand-1",
  ["layer 113"] = "mineral-white-sand-2",
  ["layer 114"] = "mineral-white-sand-3",
  ["layer 115"] = "vegetation-turquoise-grass-1",
  ["layer 116"] = "vegetation-turquoise-grass-2",
  ["layer 117"] = "vegetation-green-grass-1",
  ["layer 118"] = "vegetation-green-grass-2",
  ["layer 119"] = "vegetation-green-grass-3",
  ["layer 120"] = "vegetation-green-grass-4",
  ["layer 121"] = "vegetation-olive-grass-1",
  ["layer 122"] = "vegetation-olive-grass-2",
  ["layer 123"] = "vegetation-yellow-grass-1",
  ["layer 124"] = "vegetation-yellow-grass-2",
  ["layer 125"] = "vegetation-orange-grass-1",
  ["layer 126"] = "vegetation-orange-grass-2",
  ["layer 127"] = "vegetation-red-grass-1",
  ["layer 128"] = "vegetation-red-grass-2",
  ["layer 129"] = "vegetation-violet-grass-1",
  ["layer 130"] = "vegetation-violet-grass-2",
  ["layer 131"] = "vegetation-purple-grass-1",
  ["layer 132"] = "vegetation-purple-grass-2",
  ["layer 133"] = "vegetation-mauve-grass-1",
  ["layer 134"] = "vegetation-mauve-grass-2",
  ["layer 135"] = "vegetation-blue-grass-1",
  ["layer 136"] = "vegetation-blue-grass-2",
  ["layer 137"] = "volcanic-orange-heat-1",
  ["layer 138"] = "volcanic-orange-heat-2",
  ["layer 139"] = "volcanic-orange-heat-3",
  ["layer 140"] = "volcanic-orange-heat-4",
  ["layer 141"] = "volcanic-green-heat-1",
  ["layer 142"] = "volcanic-green-heat-2",
  ["layer 143"] = "volcanic-green-heat-3",
  ["layer 144"] = "volcanic-green-heat-4",
  ["layer 145"] = "volcanic-blue-heat-1",
  ["layer 146"] = "volcanic-blue-heat-2",
  ["layer 147"] = "volcanic-blue-heat-3",
  ["layer 148"] = "volcanic-blue-heat-4",
  ["layer 149"] = "volcanic-purple-heat-1",
  ["layer 150"] = "volcanic-purple-heat-2",
  ["layer 151"] = "volcanic-purple-heat-3",
  ["layer 152"] = "volcanic-purple-heat-4",
  ["layer 153"] = "frozen-snow-0",
  ["layer 154"] = "frozen-snow-1",
  ["layer 155"] = "frozen-snow-2",
  ["layer 156"] = "frozen-snow-3",
  ["layer 157"] = "frozen-snow-4",
  ["layer 158"] = "frozen-snow-5",
  ["layer 159"] = "frozen-snow-6",
  ["layer 160"] = "frozen-snow-7",
  ["layer 161"] = "frozen-snow-8",
  ["layer 162"] = "frozen-snow-9",
  ["layer 163"] = "landfill",
  ["layer 164"] = "tile-unknown",
  ["layer 165"] = "space",
  ["layer 166"] = "sand-1",
  ["layer 167"] = "sand-2",
  ["layer 168"] = "sand-3",
  ["layer 169"] = "red-desert-1",
  ["layer 170"] = "red-desert-2",
  ["layer 171"] = "red-desert-3",
  ["layer 172"] = "dry-dirt",
  ["layer 173"] = "dirt-1",
  ["layer 174"] = "dirt-2",
  ["layer 175"] = "dirt-3",
  ["layer 176"] = "dirt-4",
  ["layer 177"] = "dirt-5",
  ["layer 178"] = "dirt-6",
  ["layer 179"] = "dirt-7",
  ["layer 180"] = "grass-2",
  ["layer 181"] = "grass-3",
  ["layer 182"] = "grass-4",
  ["layer 183"] = "red-desert-0",
  ["layer 184"] = "nuclear-ground",
  ["layer 185"] = "tutorial-grid",
  ["layer 186"] = "stone-path",
  ["layer 187"] = "concrete",
  ["layer 188"] = "hazard-concrete-left, hazard-concrete-right",
  ["layer 189"] = "refined-concrete",
  ["layer 190"] = "yellow-concrete",
  ["layer 191"] = "refined-hazard-concrete-left, refined-hazard-concrete-right",
  ["layer 192"] = "red-refined-concrete",
  ["layer 193"] = "black-concrete",
  ["layer 194"] = "lab-dark-1",
  ["layer 195"] = "lab-dark-2",
  ["layer 196"] = "lab-white",
  ["layer 197"] = "green-refined-concrete",
  ["layer 198"] = "brown-concrete",
  ["layer 199"] = "blue-refined-concrete",
  ["layer 200"] = "cyan-concrete",
  ["layer 201"] = "orange-refined-concrete",
  ["layer 202"] = "yellow-refined-concrete",
  ["layer 203"] = "pink-refined-concrete",
  ["layer 204"] = "purple-refined-concrete",
  ["layer 205"] = "black-refined-concrete",
  ["layer 206"] = "brown-refined-concrete",
  ["layer 207"] = "cyan-refined-concrete",
  ["layer 208"] = "acid-refined-concrete"
}
   0.850 Checksum for core: 607699937
   0.850 Checksum of base: 1054619811
   0.850 Checksum of aai-loaders: 1829428712
   0.850 Checksum of alien-biomes: 775631206
   0.850 Checksum of ArachnidsFaction: 1463632736
   0.850 Checksum of better-victory-screen: 2863072777
   0.850 Checksum of factorio-crash-site: 257419325
   0.850 Checksum of space-exploration-graphics: 0
   0.850 Checksum of Arachnids_enemy: 2365481674
   0.850 Checksum of ArmouredBiters: 2176806113
   0.850 Checksum of Warp-Drive-Machine: 220132039
   1.068 Prototype list checksum: 922662069
   1.143 Loading sounds...
   1.183 Info PlayerData.cpp:76: Local player-data.json available, timestamp 1710302282
   1.183 Info PlayerData.cpp:83: Cloud player-data.json unavailable
   1.317 Initial atlas bitmap size is 16384
   1.331 Created atlas bitmap 16384x16384 [none]
   1.338 Created atlas bitmap 16384x16368 [none]
   1.339 Created atlas bitmap 16384x15572 [none]
   1.339 Created atlas bitmap 16384x4972 [decal]
   1.340 Created atlas bitmap 16384x6016 [low-object, linear-minification]
   1.340 Created atlas bitmap 16384x4032 [mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.341 Created atlas bitmap 16384x10912 [terrain, mipmap, linear-minification, linear-mip-level]
   1.341 Created atlas bitmap 8192x1920 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   1.341 Created atlas bitmap 4096x1856 [smoke, mipmap, linear-minification, linear-magnification]
   1.341 Created atlas bitmap 8192x3024 [mipmap]
   1.342 Created atlas bitmap 8192x2464 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.342 Created atlas bitmap 8192x1632 [alpha-mask]
   1.350 Created atlas bitmap 16384x16372 [shadow, linear-magnification, alpha-mask]
   1.351 Created atlas bitmap 16384x6300 [shadow, linear-magnification, alpha-mask]
   1.351 Created atlas bitmap 16384x4016 [shadow, mipmap, linear-magnification, alpha-mask]
   1.351 Created atlas bitmap 2048x272 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   1.360 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   1.847 Parallel Sprite Loader initialized (threads: 31)
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0x10c0fec0
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xea60740
   3.135 Warning! Sprite at {0,0; 64x64} from __Warp-Drive-Machine__/graphics/icon/cave_entrance.png is defined with 4 mipmap levels, but level 1 is expected to be at {64,0; 32x32} which is out of bounds of the source image.
   3.135 Warning! Sprite at {0,0; 64x64} from __Warp-Drive-Machine__/graphics/icon/pirate_spawner.png is defined with 4 mipmap levels, but level 1 is expected to be at {64,0; 32x32} which is out of bounds of the source image.
   3.136 Warning! Sprite at {0,0; 64x64} from __Warp-Drive-Machine__/graphics/icon/warp_power_tower.png is defined with 4 mipmap levels, but level 1 is expected to be at {64,0; 32x32} which is out of bounds of the source image.
   3.136 Warning! Sprite at {0,0; 64x64} from __Warp-Drive-Machine__/graphics/icon/warpdrive.png is defined with 4 mipmap levels, but level 1 is expected to be at {64,0; 32x32} which is out of bounds of the source image.
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0x10e8b6c0
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xea61f00
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xea60c80
MESA: warning: zink: PERF WARNING! > 100 copy boxes detected for 0xf44f840
   7.439 Sprites loaded
   7.444 Generated mipmaps (4) for atlas [4] of size 16384x6016   
   7.450 Generated mipmaps (3) for atlas [5] of size 16384x4032   
   7.460 Generated mipmaps (3) for atlas [6] of size 16384x10912   
   7.468 Generated mipmaps (3) for atlas [7] of size 8192x1920   
   7.476 Generated mipmaps (3) for atlas [8] of size 4096x1856   
   7.511 Generated mipmaps (3) for atlas [9] of size 8192x3024   
   7.513 Generated mipmaps (5) for atlas [10] of size 8192x2464   
   7.519 Generated mipmaps (3) for atlas [14] of size 16384x4016   
   7.524 Custom mipmaps uploaded (2008)
   7.648 Factorio initialised
   7.648 Info HttpSharedState.cpp:58: Downloading https://updater.factorio.com/updater/get-available-versions?username=Baughn&token=<private>&apiVersion=2
   8.270 0 packages available to download (experimental updates disabled).
  19.787 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/mods?page_size=max&full=True&version=1.1.104&lang=en
  22.270 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/categories?version=1.1.104&lang=en
  22.270 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/mods?page_size=max&version=1.1&lang=en
  22.270 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/bookmarks?version=1.1.104&lang=en&username=Baughn&token=<private>
  25.264 Error CachedChangelog.cpp:37: Failed to parse changelog for mod Warp Drive Machine: invalid changelog file, error on line 57, missing category.
  29.659 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/api/mods/big-mining-drill/full?version=1.1.104&lang=en
  30.054 Info HttpSharedState.cpp:58: Downloading https://mods-data.factorio.com/assets/b46ca9182123c805b7a400631fb9e079705be6c7.thumb.png
  30.850 Info ModPortal.cpp:666: Downloading /download/big-mining-drill/63fb8321ddb9a6cdefca8e11?username=Baughn&token=<private> to /home/svein/factorio/temp/big-mining-drill_0.1.1.zip
  30.850 Info HttpSharedState.cpp:58: Downloading https://mods.factorio.com/download/big-mining-drill/63fb8321ddb9a6cdefca8e11?username=Baughn&token=<private>
  31.082 Error CrashHandler.cpp:639: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
/tmp/factorio-build-MzGUjo/src/Util/Logger.cpp (336): Logger::writeStacktrace(FileWriteStream*, StackTraceInfo*) [clone .constprop.0]
/tmp/factorio-build-MzGUjo/src/Util/CrashHandler.cpp (188): CrashHandler::writeStackTrace(CrashHandler::CrashReason)
/tmp/factorio-build-MzGUjo/src/Util/CrashHandler.cpp (642): CrashHandler::commonSignalHandler(int)
/tmp/factorio-build-MzGUjo/src/Util/CrashHandler.cpp (648): CrashHandler::SignalHandler(int)
0x7fd3890f8eaf
/tmp/factorio-build-MzGUjo/libraries/SDL2/src/video/wayland/SDL_waylandmouse.c (283): wayland_get_system_cursor
/tmp/factorio-build-MzGUjo/libraries/SDL2/src/video/wayland/SDL_waylandmouse.c (516): Wayland_ShowCursor
/tmp/factorio-build-MzGUjo/src/MainLoop.cpp (1179): MainLoop::prepare()
/tmp/factorio-build-MzGUjo/src/MainLoop.cpp (715): MainLoop::mainLoopStep(WorkerThread&, MainLoop::HeavyMode)
/tmp/factorio-build-MzGUjo/src/MainLoop.cpp (423): MainLoop::run(Filesystem::Path const&, Filesystem::Path const&, bool, bool, std::function<void ()>, Filesystem::Path const&, MainLoop::HeavyMode)
/tmp/factorio-build-MzGUjo/src/Main.cpp (1267): main
__libc_start_call_main
__libc_start_main_impl
0x783342
0xffffffffffffffff
Stack trace logging done
  31.159 Error Util.cpp:100: 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.
  31.189 Error MessageDialog.cpp:53: Unable to show message dialog. SDL Error: [zenity reported error or failed to launch: 129]
  31.189 Uploading log file
  31.196 Info SystemUtil.cpp:878: Started /home/svein/factorio/bin/x64/factorio; trampoline PID: 1127723
Which version of SDL does Factorio ship with, specifically? I might be able to patch around the broken code if I know what line is breaking.
Baughn
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Jan 20, 2016 4:44 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by Baughn »

I was able to do that regardless. It's a little bit of a hack, but I suppose this is fine; I don't see any difference in game behavior from what's expected.

Pretty simple, just do this:

Code: Select all

gdb ./bin/x64/factorio --write
# wayland_get_system_cursor does not exist.
# It is presumably inlined. Whatever; diking out Wayland_ShowCursor works.
set *(unsigned int*)Wayland_ShowCursor = 0xc3c03148
# Let's make sure that worked.
disas Wayland_ShowCursor
# The first two lines should be "xor %rax, %rax" and "ret"
This writes to the executable, of course, so you won't need to do anything further until an update. Then just do it again. It doesn't sound like this bug will be fixed soon; and you need to be running KDE on Wayland to hit it.
Last edited by Baughn on Wed Mar 13, 2024 12:34 pm, edited 1 time in total.
Donion
Factorio Staff
Factorio Staff
Posts: 326
Joined: Sun Aug 22, 2021 9:18 am
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by Donion »

1.1.x uses SDL 2.26.5
For 2.0 it will be at least SDL 2.30.0
Baughn
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Jan 20, 2016 4:44 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by Baughn »

Ah, I see.

There's a lot of bugfixes to the code in question in 2.30.1, so you might want to consider that. I'll admit my setup is a bit rare at the moment, but it won't be staying that way; part of what I'm doing is searching for problems that can be fixed on the distro level. Though unfortunately this doesn't seem to be one of them, though if I set the xcursor theme wrong somehow, please let me know.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 615
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by raiguard »

Because the fix is very self-contained I decided to backport it. I usually avoid monkey patching our libraries but since Plasma 6 uses Wayland by default I expect that a lot more people will encounter this issue.

Fixed for the next release.
Don't forget, you're here forever.
Baughn
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Jan 20, 2016 4:44 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by Baughn »

O-kay...

I haven't yet played a full game with this, doing that this Friday, but I trust your integration tests. And/or the possibility that you don't mean "set *(unsigned int*)Wayland_ShowCursor = 0xc3c03148".
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 615
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by raiguard »

No, I backported the actual fix from upstream: https://github.com/libsdl-org/SDL/commi ... 750ce80517.
Don't forget, you're here forever.
Baughn
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Jan 20, 2016 4:44 pm
Contact:

Re: [1.1.104] Crash in wayland_get_system_cursor

Post by Baughn »

That is somewhat relieving.
Post Reply

Return to “Resolved Problems and Bugs”