[raiguard] [2.0.60][Linux] Factorio process wont end after exiting the game

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
p0lle
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Oct 21, 2024 2:01 pm
Contact:

[raiguard] [2.0.60][Linux] Factorio process wont end after exiting the game

Post by p0lle »

Kubuntu 25.04 - wayland

Recently Factorio doesn't close completly anymore. After exiting the game I have to kill the process myself and one cpu core hangs at full load. It also happens when you install mods or do an update.

The log in the commandline sadly doesn't help:

Code: Select all

   4.490 Info AuthServerConnector.cpp:653: TLS check success.
   4.490 Info HttpSharedState.cpp:56: Downloading https://updater.factorio.com/updater/get-available-versions?username=<private>&token=<private>&apiVersion=2
   4.976 0 packages available to download (experimental updates disabled).
  30.795 Quitting: user-quit.

it just stays at Quitting: user-quit.
With CTRL+C i can kill the process of course.
Loewchen
Global Moderator
Global Moderator
Posts: 10361
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.60] linux - factorio process wont end after exiting the game

Post by Loewchen »

Post the complete log of a session with the issue please, see 3638.
p0lle
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Oct 21, 2024 2:01 pm
Contact:

Re: [2.0.60] linux - factorio process wont end after exiting the game

Post by p0lle »

Code: Select all

   0.000 2025-07-24 13:55:35; Factorio 2.0.60 (build 83512, linux64, full, space-age)
   0.024 Operating system: Linux (Ubuntu 25.04)
   0.024 Program arguments: "./factorio" 
   0.024 Config path: /home/noroot/Games/factorio-spaceage/config/config.ini
   0.024 Read data path: /home/noroot/Games/factorio-spaceage/data
   0.024 Write data path: /home/noroot/Games/factorio-spaceage [28919/937568MB]
   0.024 Binaries path: /home/noroot/Games/factorio-spaceage/bin
   0.053 System info: [CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 8 cores, RAM: 15641 MB]
   0.053 Environment: DISPLAY=:1 WAYLAND_DISPLAY=wayland-0 DESKTOP_SESSION=plasma XDG_SESSION_DESKTOP=KDE XDG_CURRENT_DESKTOP=KDE 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.148 Info ModManager.cpp:278: Found duplicate mod AutoDeconstruct, using highest version (1.0.7).
   0.148 Info ModManager.cpp:278: Found duplicate mod BottleneckLite, using highest version (1.3.4).
   0.148 Info ModManager.cpp:278: Found duplicate mod LunarLandings, using highest version (1.1.8).
   0.148 Info ModManager.cpp:278: Found duplicate mod P2P-automation, using highest version (1.3.0).
   0.148 Info ModManager.cpp:278: Found duplicate mod PlanetsLib, using highest version (1.8.2).
   0.148 Info ModManager.cpp:278: Found duplicate mod Space-Age-Without-Platforms, using highest version (2.0.11).
   0.149 Info ModManager.cpp:278: Found duplicate mod alien-biomes-graphics, using highest version (0.7.1).
   0.149 Info ModManager.cpp:278: Found duplicate mod blueprint-sandboxes, using highest version (3.1.0).
   0.149 Info ModManager.cpp:278: Found duplicate mod onlyGleba, using highest version (1.2.2).
   0.149 Display options: [FullScreen: true] [VSync: true] [UIScale: manual-pixels (125.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
   0.880 Video driver: wayland
   0.880 Available displays: 1
   0.880  [0]: AU Optronics eDP-1-0x583D - {[0,0], 1536x864, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.953 Initialised OpenGL:[0] Mesa Intel(R) UHD Graphics 620 (WHL GT2); driver: 4.6 (Core Profile) Mesa 25.1.0
   0.953   [Size] Window: 1536x864, Backbuffer: 1920x1080
   0.953   [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.953   [Version] 4.6
   0.990 Graphics settings preset: integrated-gpuhigh
   0.990   Dedicated video memory size 11731 MB (detected from Intel(R) UHD Graphics 620 (WHL GT2); VendorID: 0x8086; DeviceID: 0x3ea0)
   1.040 Graphics options: [Graphics quality: medium] [Video memory usage: all] [DXT: low-quality]
   1.040                   [Max threads (load/render): 32/8] [Max texture size: 4096] [Tex.Stream.: false] [Rotation quality: low] [Other: sTDCwtl] [B:65,C:0,S:100]
   1.076 [Audio] Driver:pipewire, Device:Default device, Depth:16, Frequency:44100, Channels:2, Interpolation:linear
   1.417 Info ModManager.cpp:444: FeatureFlag expansion-shaders = false
   1.417 Info ModManager.cpp:444: FeatureFlag freezing = false
   1.418 Info ModManager.cpp:444: FeatureFlag quality = false
   1.418 Info ModManager.cpp:444: FeatureFlag rail-bridges = true
   1.418 Info ModManager.cpp:444: FeatureFlag segmented-units = false
   1.418 Info ModManager.cpp:444: FeatureFlag space-travel = true
   1.418 Info ModManager.cpp:444: FeatureFlag spoiling = false
   1.693 Data stage cache loaded in: 0.130936 seconds.
   1.707 Checksum for core: 4171658704
   1.707 Checksum of base: 1534080171
   1.707 Checksum of infinity-invo: 0
   1.707 Checksum of AutoDeconstruct: 75464120
   1.707 Checksum of blueprint-sandboxes: 1035981240
   1.707 Checksum of elevated-rails: 3379156108
   1.707 Checksum of even-distribution: 281457414
   1.707 Checksum of Factorio_Roboport_mk2: 752820076
   1.707 Checksum of Flare Stack: 951114723
   1.707 Checksum of flib: 728527376
   1.707 Checksum of mech-armor: 589053583
   1.707 Checksum of red-quickstart: 1739396559
   1.707 Checksum of snouz-big-accumulator: 3663915510
   1.707 Checksum of BottleneckLite: 1532780317
   1.980 Prototype list checksum: 4196075760
   1.996 Loading sounds...
   2.462 Info PlayerData.cpp:64: Local player-data.json available, timestamp 1753358097
   2.462 Info PlayerData.cpp:71: Cloud player-data.json unavailable
   2.465 Post-data load graphics options: [Light occlusion: no]
   2.767 Initial atlas bitmap size is 4096
   2.784 Created an atlas bitmap (size 4096x4096) [none]
   2.797 Created an atlas bitmap (size 4096x4092) [none]
   2.814 Created an atlas bitmap (size 4096x4096) [none]
   2.834 Created an atlas bitmap (size 4096x4096) [none]
   2.848 Created an atlas bitmap (size 4096x4096) [none]
   2.854 Created an atlas bitmap (size 4096x4088) [none]
   2.860 Created an atlas bitmap (size 4096x4048) [linear-magnification]
   2.870 Created an atlas bitmap (size 4096x4056) [linear-magnification]
   2.877 Created an atlas bitmap (size 4096x4088) [none]
   2.882 Created an atlas bitmap (size 4096x4096) [none]
   2.885 Created an atlas bitmap (size 4096x3044) [none]
   2.897 Created an atlas bitmap (size 4096x4080) [low-object]
   2.907 Created an atlas bitmap (size 4096x4080) [low-object]
   2.910 Created an atlas bitmap (size 4096x1376) [low-object]
   2.916 Created an atlas bitmap (size 4096x4088) [corpse-decay]
   2.922 Created an atlas bitmap (size 4096x4096) [corpse-decay]
   2.927 Created an atlas bitmap (size 4096x4084) [corpse-decay]
   2.928 Created an atlas bitmap (size 4096x428) [corpse-decay]
   2.931 Created an atlas bitmap (size 4096x2484) [decal]
   2.937 Created an atlas bitmap (size 4096x3392) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   2.940 Created an atlas bitmap (size 4096x1632) [smoke, mipmap, linear-minification, linear-magnification]
   2.946 Created an atlas bitmap (size 4096x4096) [terrain, mipmap, linear-minification, linear-mip-level]
   2.949 Created an atlas bitmap (size 4096x3936) [terrain, mipmap, linear-minification, linear-mip-level]
   2.951 Created an atlas bitmap (size 4096x1696) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   2.953 Created an atlas bitmap (size 4096x928) [mipmap]
   2.982 Created an atlas bitmap (size 4096x4080) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   2.999 Created an atlas bitmap (size 4096x2128) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   3.002 Created an atlas bitmap (size 4096x2916) [alpha-mask]
   3.015 Created an atlas bitmap (size 4096x4088) [shadow, linear-magnification, alpha-mask]
   3.030 Created an atlas bitmap (size 4096x4092) [shadow, linear-magnification, alpha-mask]
   3.036 Created an atlas bitmap (size 4096x4096) [shadow, linear-magnification, alpha-mask]
   3.040 Created an atlas bitmap (size 4096x4080) [shadow, linear-magnification, alpha-mask]
   3.043 Created an atlas bitmap (size 4096x4084) [shadow, linear-magnification, alpha-mask]
   3.043 Created an atlas bitmap (size 4096x796) [shadow, linear-magnification, alpha-mask]
   3.045 Created an atlas bitmap (size 4096x1312) [shadow, mipmap, linear-magnification, alpha-mask]
   3.046 Created an atlas bitmap (size 4096x272) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   3.046 Loading 3D bitmaps.
   3.060 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   3.674 Atlases loaded from disk cache in 0.614016 seconds.
   3.683 Parallel sprite loader initialized (threads: 7, bitmaps: 5)
   3.955 Sprites loaded
   4.002 Generated mipmaps (3) for atlas [11] of size 4096x4080   
   4.011 Generated mipmaps (3) for atlas [12] of size 4096x4080   
   4.015 Generated mipmaps (3) for atlas [13] of size 4096x1376   
   4.022 Generated mipmaps (3) for atlas [19] of size 4096x3392   
   4.027 Generated mipmaps (3) for atlas [20] of size 4096x1632   
   4.043 Generated mipmaps (3) for atlas [21] of size 4096x4096   
   4.051 Generated mipmaps (3) for atlas [22] of size 4096x3936   
   4.055 Generated mipmaps (3) for atlas [23] of size 4096x1696   
   4.120 Generated mipmaps (3) for atlas [24] of size 4096x928   
   4.129 Generated mipmaps (5) for atlas [25] of size 4096x4080   
   4.135 Generated mipmaps (5) for atlas [26] of size 4096x2128   
   4.140 Generated mipmaps (3) for atlas [34] of size 4096x1312   
   4.211 Custom mipmaps uploaded (2432)
   4.231 Video memory usage: 518.84 MB (Atlases: 515.91 MB, Textures: 2.93 MB)
   4.246 Custom inputs active: 6
   4.314 Factorio initialised
   4.316 Info AuthServerConnector.cpp:620: Performing TLS check.
   4.316 Info HttpSharedState.cpp:56: Downloading https://auth.factorio.com/tls-check/success
   4.748 Info AuthServerConnector.cpp:653: TLS check success.
   4.749 Info HttpSharedState.cpp:56: Downloading https://updater.factorio.com/updater/get-available-versions?username=<private>&token=<private>&apiVersion=2
   5.263 0 packages available to download (experimental updates disabled).
  19.155 Quitting: user-quit.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 749
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [2.0.60][Linux] Factorio process wont end after exiting the game

Post by raiguard »

Others have reported this in the past but I have not been able to reproduce. Can you hook GDB to the process and thread apply all bt?
Don't forget, you're here forever.
p0lle
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Oct 21, 2024 2:01 pm
Contact:

Re: [raiguard] [2.0.60][Linux] Factorio process wont end after exiting the game

Post by p0lle »

For sure. I don't know if this is exactly what you asked for, I did something like this the first time. For saftey measures I did it twice, so there are two outputs split by some ###########. At both Outputs, i connected to the process after clicking the exit button, wait until the window is gone and the process hangs. Hope this helps, if I can help in any way, just ask!

Code: Select all

GNU gdb (Ubuntu 16.2-8ubuntu1) 16.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 24410
[New LWP 24444]
[New LWP 24438]
[New LWP 24430]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56

warning: 56     ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S: No such file or directory
Function(s) ^std::(move|forward|as_const|(__)?addressof) will be skipped when stepping.
Function(s) ^std::(shared|unique)_ptr<.*>::(get|operator) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|(forward_)?list|(unordered_|flat_)?(multi)?(map|set)|span)<.*>::(c?r?(begin|end)|front|back|data|size|empty) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|span)<.*>::operator.] will be skipped when stepping.
(gdb) thread apply all bt


Thread 4 (Thread 0x75bc77bff6c0 (LWP 24430) "TaskManager"):
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x000075bc77c9eae3 in __internal_syscall_cancel (a1=a1@entry=98820425824712, a2=<optimised out>, a3=a3@entry=0, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=4294967295, nr=202) at ./nptl/cancellation.c:49
#2  0x000075bc77c9f237 in __futex_abstimed_wait_common64 (private=0, futex_word=0x59e06c60b9c8, expected=0, op=393, abstime=0x0, cancel=true) at ./nptl/futex-internal.c:57
#3  __futex_abstimed_wait_common (futex_word=0x59e06c60b9c8, expected=0, clockid=0, abstime=0x0, private=0, cancel=true) at ./nptl/futex-internal.c:87
#4  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x59e06c60b9c8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#5  0x000075bc77ca1b17 in __pthread_cond_wait_common (cond=<optimised out>, mutex=0x59e06c60b980, clockid=0, abstime=0x0) at ./nptl/pthread_cond_wait.c:426
#6  ___pthread_cond_wait (cond=<optimised out>, mutex=0x59e06c60b980) at ./nptl/pthread_cond_wait.c:458
#7  0x000059e05da6b2bc in run () at src/Util/TaskManager.cpp:65
#8  operator() () at src/Util/TaskManager.cpp:9
#9  __invoke_impl<void, (lambda at /tmp/factorio-build-Z9DoMy/src/Util/TaskManager.cpp:7:30)> () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/invoke.h:61
#10 __invoke<(lambda at /tmp/factorio-build-Z9DoMy/src/Util/TaskManager.cpp:7:30)> () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/invoke.h:96
#11 _M_invoke<0ul> () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/std_thread.h:292
#12 operator() () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/std_thread.h:299
#13 _M_run () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/std_thread.h:244
#14 0x000059e05b9ee563 in std::execute_native_thread_routine (__p=0x59e06c617bf0) at /tmp/tmp.dlP10F34z6/objdir/../gcc-13.2.0/libstdc++-v3/src/c++11/thread.cc:104
#15 0x000075bc77ca27f1 in start_thread (arg=<optimised out>) at ./nptl/pthread_create.c:448
#16 0x000075bc77d33c9c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 3 (Thread 0x75bc73ab86c0 (LWP 24438) "SDLTimer"):
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x000075bc77c9eae3 in __internal_syscall_cancel (a1=a1@entry=98820426400416, a2=<optimised out>, a3=a3@entry=0, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=4294967295, nr=202) at ./nptl/cancellation.c:49
#2  0x000075bc77c9f237 in __futex_abstimed_wait_common64 (private=<optimised out>, futex_word=0x59e06c6982a0, expected=0, op=<optimised out>, abstime=0x0, cancel=true) at ./nptl/futex-internal.c:57
#3  __futex_abstimed_wait_common (futex_word=0x59e06c6982a0, expected=0, clockid=0, abstime=0x0, private=<optimised out>, cancel=true) at ./nptl/futex-internal.c:87
#4  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x59e06c6982a0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=<optimised out>) at ./nptl/futex-internal.c:139
#5  0x000075bc77caae4f in do_futex_wait (sem=sem@entry=0x59e06c6982a0, abstime=0x0, clockid=0) at ./nptl/sem_waitcommon.c:111
#6  0x000075bc77caaee8 in __new_sem_wait_slow64 (sem=0x59e06c6982a0, abstime=0x0, clockid=0) at ./nptl/sem_waitcommon.c:183
#7  0x000075bc77caaf6d in __new_sem_wait (sem=<optimised out>) at ./nptl/sem_wait.c:42
#8  0x000059e05dbd3a28 in SDL_SemWait () at libraries/SDL2/src/thread/pthread/SDL_syssem.c:91
#9  SDL_SemWaitTimeout () at libraries/SDL2/src/thread/pthread/SDL_syssem.c:121
#10 SDL_TimerThread () at libraries/SDL2/src/timer/SDL_timer.c:202
#11 0x000059e05db4fca1 in SDL_RunThread () at libraries/SDL2/src/thread/SDL_thread.c:333
#12 RunThread () at libraries/SDL2/src/thread/pthread/SDL_systhread.c:76
#13 0x000075bc77ca27f1 in start_thread (arg=<optimised out>) at ./nptl/pthread_create.c:448
#14 0x000075bc77d33c9c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 2 (Thread 0x75bc4e1ff6c0 (LWP 24444) "SDLAudioHotplug"):
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x000075bc77c9eb63 in __internal_syscall_cancel (a1=<optimised out>, a2=<optimised out>, a3=<optimised out>, a4=<optimised out>, a5=0, a6=0, nr=232) at ./nptl/cancellation.c:49
#2  __syscall_cancel (a1=<optimised out>, a2=<optimised out>, a3=<optimised out>, a4=<optimised out>, a5=a5@entry=0, a6=a6@entry=0, nr=232) at ./nptl/cancellation.c:75
#3  0x000075bc77d33f65 in epoll_wait (epfd=<optimised out>, events=<optimised out>, maxevents=<optimised out>, timeout=<optimised out>) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
--Type <RET> for more, q to quit, c to continue without paging--
#4  0x000075bc4f6de156 in ?? () from /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so
#5  0x000075bc4f6cd4e9 in ?? () from /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so
#6  0x000075bc4f7836c7 in ?? () from /lib/x86_64-linux-gnu/libpipewire-0.3.so.0
#7  0x000075bc77ca27f1 in start_thread (arg=<optimised out>) at ./nptl/pthread_create.c:448
#8  0x000075bc77d33c9c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x75bc77ef3cc0 (LWP 24410) "factorio"):
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x000075bc77c9eae3 in __internal_syscall_cancel (a1=a1@entry=129451625019792, a2=<optimised out>, a3=<optimised out>, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=4294967295, nr=202) at ./nptl/cancellation.c:49
#2  0x000075bc77c9f237 in __futex_abstimed_wait_common64 (private=128, futex_word=0x75bc4e1ff990, expected=<optimised out>, op=265, abstime=0x0, cancel=true) at ./nptl/futex-internal.c:57
#3  __futex_abstimed_wait_common (futex_word=0x75bc4e1ff990, expected=<optimised out>, clockid=0, abstime=0x0, private=128, cancel=true) at ./nptl/futex-internal.c:87
#4  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x75bc4e1ff990, expected=<optimised out>, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=128) at ./nptl/futex-internal.c:139
#5  0x000075bc77ca4614 in __pthread_clockjoin_ex (threadid=129451625019072, thread_return=0x0, clockid=0, abstime=0x0, block=<optimised out>) at ./nptl/pthread_join_common.c:108
#6  0x000075bc4f782f2e in pw_thread_loop_stop () from /lib/x86_64-linux-gnu/libpipewire-0.3.so.0
#7  0x000059e05dbcc209 in hotplug_loop_destroy () at libraries/SDL2/src/audio/pipewire/SDL_pipewire.c:800
#8  PIPEWIRE_Deinitialize () at libraries/SDL2/src/audio/pipewire/SDL_pipewire.c:1348
#9  0x000059e05dbc75f5 in SDL_AudioQuit () at libraries/SDL2/src/audio/SDL_audio.c:1701
#10 0x000059e05db51cb9 in SDL_QuitSubSystem () at libraries/SDL2/src/SDL.c:445
#11 0x000059e05da5d24b in SDL_Quit () at libraries/SDL2/src/SDL.c:521
#12 ~SDLWindow () at src/Graphics/SDLWindow.cpp:387
#13 0x000059e05da5d62e in SDLWindow::~SDLWindow() () at src/Graphics/SDLWindow.cpp:359
#14 0x000059e05c49580e in operator() () at libraries/CommonUtil/UniquePointer.hpp:16
#15 reset () at libraries/CommonUtil/UniquePointer.hpp:88
#16 0x000059e05c49580e in unloadGraphics ()
#17 clearResources () at src/GlobalContext.cpp:880
#18 0x000059e05c48f811 in ~GlobalContext () at src/GlobalContext.cpp:917
#19 0x000059e05d8835f9 in run () at src/MainLoop.cpp:612
#20 0x000059e05da8df4b in fmain () at src/Main.cpp:1401
#21 0x000059e05dabca9e in main () at src/Main.cpp:1423
(gdb) 





################## Second try


GNU gdb (Ubuntu 16.2-8ubuntu1) 16.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 25610
[New LWP 25647]
[New LWP 25639]
[New LWP 25631]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56

warning: 56     ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S: No such file or directory
Function(s) ^std::(move|forward|as_const|(__)?addressof) will be skipped when stepping.
Function(s) ^std::(shared|unique)_ptr<.*>::(get|operator) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|(forward_)?list|(unordered_|flat_)?(multi)?(map|set)|span)<.*>::(c?r?(begin|end)|front|back|data|size|empty) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|span)<.*>::operator.] will be skipped when stepping.
(gdb) thread apply all bt

Thread 4 (Thread 0x7ede9c1ff6c0 (LWP 25631) "TaskManager"):
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x00007ede9c29eae3 in __internal_syscall_cancel (a1=a1@entry=107588840839624, a2=<optimised out>, a3=a3@entry=0, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=4294967295, nr=202) at ./nptl/cancellation.c:49
#2  0x00007ede9c29f237 in __futex_abstimed_wait_common64 (private=0, futex_word=0x61d9faa3d9c8, expected=0, op=393, abstime=0x0, cancel=true) at ./nptl/futex-internal.c:57
#3  __futex_abstimed_wait_common (futex_word=0x61d9faa3d9c8, expected=0, clockid=0, abstime=0x0, private=0, cancel=true) at ./nptl/futex-internal.c:87
#4  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x61d9faa3d9c8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#5  0x00007ede9c2a1b17 in __pthread_cond_wait_common (cond=<optimised out>, mutex=0x61d9faa3d980, clockid=0, abstime=0x0) at ./nptl/pthread_cond_wait.c:426
#6  ___pthread_cond_wait (cond=<optimised out>, mutex=0x61d9faa3d980) at ./nptl/pthread_cond_wait.c:458
#7  0x000061d9e5ba92bc in run () at src/Util/TaskManager.cpp:65
#8  operator() () at src/Util/TaskManager.cpp:9
#9  __invoke_impl<void, (lambda at /tmp/factorio-build-Z9DoMy/src/Util/TaskManager.cpp:7:30)> () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/invoke.h:61
#10 __invoke<(lambda at /tmp/factorio-build-Z9DoMy/src/Util/TaskManager.cpp:7:30)> () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/invoke.h:96
#11 _M_invoke<0ul> () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/std_thread.h:292
#12 operator() () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/std_thread.h:299
#13 _M_run () at /opt/gcc-13.2.0/lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../include/c++/13.2.0/bits/std_thread.h:244
--Type <RET> for more, q to quit, c to continue without paging--
gcc-13.2.0/libstdc++-v3/src/c++11/thread.cc:104
#15 0x00007ede9c2a27f1 in start_thread (arg=<optimised out>) at ./nptl/pthread_create.c:448
#16 0x00007ede9c333c9c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 3 (Thread 0x7ede980b86c0 (LWP 25639) "SDLTimer"):
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x00007ede9c29eae3 in __internal_syscall_cancel (a1=a1@entry=107588840978224, a2=<optimised out>, a3=a3@entry=0, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=4294967295, nr=202) at ./nptl/cancellation.c:49
#2  0x00007ede9c29f237 in __futex_abstimed_wait_common64 (private=<optimised out>, futex_word=0x61d9faa5f730, expected=0, op=<optimised out>, abstime=0x0, cancel=true) at ./nptl/futex-internal.c:57
#3  __futex_abstimed_wait_common (futex_word=0x61d9faa5f730, expected=0, clockid=0, abstime=0x0, private=<optimised out>, cancel=true) at ./nptl/futex-internal.c:87
#4  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x61d9faa5f730, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=<optimised out>) at ./nptl/futex-internal.c:139
#5  0x00007ede9c2aae4f in do_futex_wait (sem=sem@entry=0x61d9faa5f730, abstime=0x0, clockid=0) at ./nptl/sem_waitcommon.c:111
#6  0x00007ede9c2aaee8 in __new_sem_wait_slow64 (sem=0x61d9faa5f730, abstime=0x0, clockid=0) at ./nptl/sem_waitcommon.c:183
#7  0x00007ede9c2aaf6d in __new_sem_wait (sem=<optimised out>) at ./nptl/sem_wait.c:42
#8  0x000061d9e5d11a28 in SDL_SemWait () at libraries/SDL2/src/thread/pthread/SDL_syssem.c:91
#9  SDL_SemWaitTimeout () at libraries/SDL2/src/thread/pthread/SDL_syssem.c:121
#10 SDL_TimerThread () at libraries/SDL2/src/timer/SDL_timer.c:202
#11 0x000061d9e5c8dca1 in SDL_RunThread () at libraries/SDL2/src/thread/SDL_thread.c:333
#12 RunThread () at libraries/SDL2/src/thread/pthread/SDL_systhread.c:76
#13 0x00007ede9c2a27f1 in start_thread (arg=<optimised out>) at ./nptl/pthread_create.c:448
#14 0x00007ede9c333c9c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 2 (Thread 0x7ede72fff6c0 (LWP 25647) "SDLAudioHotplug"):
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x00007ede9c29eb63 in __internal_syscall_cancel (a1=<optimised out>, a2=<optimised out>, a3=<optimised out>, a4=<optimised out>, a5=0, a6=0, nr=232) at ./nptl/cancellation.c:49
#2  __syscall_cancel (a1=<optimised out>, a2=<optimised out>, a3=<optimised out>, a4=<optimised out>, a5=a5@entry=0, a6=a6@entry=0, nr=232) at ./nptl/cancellation.c:75
#3  0x00007ede9c333f65 in epoll_wait (epfd=<optimised out>, events=<optimised out>, maxevents=<optimised out>, timeout=<optimised out>) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#4  0x00007ede8993d156 in ?? () from /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so
#5  0x00007ede8992c4e9 in ?? () from /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so
#6  0x00007ede7815b6c7 in ?? () from /lib/x86_64-linux-gnu/libpipewire-0.3.so.0
#7  0x00007ede9c2a27f1 in start_thread (arg=<optimised out>) at ./nptl/pthread_create.c:448
#8  0x00007ede9c333c9c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x7ede9c554cc0 (LWP 25610) "factorio"):
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x00007ede9c29eae3 in __internal_syscall_cancel (a1=a1@entry=139493877217680, a2=<optimised out>, a3=<optimised out>, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=4294967295, nr=202) at ./nptl/cancellation.c:49
#2  0x00007ede9c29f237 in __futex_abstimed_wait_common64 (private=128, futex_word=0x7ede72fff990, expected=<optimised out>, op=265, abstime=0x0, cancel=true) at ./nptl/futex-internal.c:57
#3  __futex_abstimed_wait_common (futex_word=0x7ede72fff990, expected=<optimised out>, clockid=0, abstime=0x0, private=128, cancel=true) at ./nptl/futex-internal.c:87
#4  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x7ede72fff990, expected=<optimised out>, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=128) at ./nptl/futex-internal.c:139
#5  0x00007ede9c2a4614 in __pthread_clockjoin_ex (threadid=139493877216960, thread_return=0x0, clockid=0, abstime=0x0, block=<optimised out>) at ./nptl/pthread_join_common.c:108
#6  0x00007ede7815af2e in pw_thread_loop_stop () from /lib/x86_64-linux-gnu/libpipewire-0.3.so.0
#7  0x000061d9e5d0a209 in hotplug_loop_destroy () at libraries/SDL2/src/audio/pipewire/SDL_pipewire.c:800
#8  PIPEWIRE_Deinitialize () at libraries/SDL2/src/audio/pipewire/SDL_pipewire.c:1348
#9  0x000061d9e5d055f5 in SDL_AudioQuit () at libraries/SDL2/src/audio/SDL_audio.c:1701
#10 0x000061d9e5c8fcb9 in SDL_QuitSubSystem () at libraries/SDL2/src/SDL.c:445
#11 0x000061d9e5b9b24b in SDL_Quit () at libraries/SDL2/src/SDL.c:521
#12 ~SDLWindow () at src/Graphics/SDLWindow.cpp:387
#13 0x000061d9e5b9b62e in SDLWindow::~SDLWindow() () at src/Graphics/SDLWindow.cpp:359
#14 0x000061d9e45d380e in operator() () at libraries/CommonUtil/UniquePointer.hpp:16
#15 reset () at libraries/CommonUtil/UniquePointer.hpp:88
#16 0x000061d9e45d380e in unloadGraphics ()
#17 clearResources () at src/GlobalContext.cpp:880
#18 0x000061d9e45cd811 in ~GlobalContext () at src/GlobalContext.cpp:917
#19 0x000061d9e59c15f9 in run () at src/MainLoop.cpp:612
#20 0x000061d9e5bcbf4b in fmain () at src/Main.cpp:1401
#21 0x000061d9e5bfaa9e in main () at src/Main.cpp:1423
(gdb) 










Post Reply

Return to “Pending”