Ubuntu, alt-tab freezes game

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
chacham
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Jun 18, 2017 9:08 pm
Contact:

Ubuntu, alt-tab freezes game

Post by chacham »

Factorio, full screen (haven't tried in windowed mode).

Hitting alt-tab in the game to switch from factorio to another application (like my browser), can freeze the game. That is, i can go back to the game, but it is unresponsive. It order to continue, i have to kill -9 it and restart. It doesn't happen every time i alt-tab, but usually within the first 3 times i do it, it freezes.

Can someone try to confirm if this happens to them as well. This is specifically a Linux issue. My friend has no such issues under Windows.
Loewchen
Global Moderator
Global Moderator
Posts: 9307
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Ubuntu, alt-tab freezes game

Post by Loewchen »

Post the log after experiencing the issue.
chacham
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Jun 18, 2017 9:08 pm
Contact:

Re: Ubuntu, alt-tab freezes game

Post by chacham »

Sure.

Started Factorio, New Game, First Steps, walked a step or two, alt-tab (away), alt-tab (back), frozen. alt-tab to console, killall -9 factorio.
Attachments
factorio-current.log
(3.11 KiB) Downloaded 161 times
User avatar
SteelWolf300
Inserter
Inserter
Posts: 30
Joined: Sat Apr 09, 2016 11:21 am
Contact:

Re: Ubuntu, alt-tab freezes game

Post by SteelWolf300 »

I play Factorio on Ubuntu. I don't especially have problem with focusing other applications (Full Screen or not)...

On the other hand, when I switch working space, the game freezes (seems to play 2 times slower approximately, counted this with a programmable speaker playing in loop EDIT: I don't know precisely how but it could be more).

And when I host a multiplayer game and switch working space, other player get dropped (tested this on LAN).
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: Ubuntu, alt-tab freezes game

Post by Oxyd »

SteelWolf300 wrote:I play Factorio on Ubuntu. I don't especially have problem with focusing other applications (Full Screen or not)...

On the other hand, when I switch working space, the game freezes (seems to play 2 times slower approximately, counted this with a programmable speaker playing in loop EDIT: I don't know precisely how but it could be more).

And when I host a multiplayer game and switch working space, other player get dropped (tested this on LAN).
Can you post the log as well, please?
wladekb
Inserter
Inserter
Posts: 32
Joined: Wed Feb 27, 2019 8:48 pm
Contact:

Re: Ubuntu, alt-tab freezes game

Post by wladekb »

Seems to happen every time on my ubuntu 18.04 (installed from steam):
factorio-current.log
(7.28 KiB) Downloaded 148 times
It's a Dell Latitude e6330 (Intel i5-3340m, integrated graphics)

Let me know which options I should test to investigate it further.
wladekb
Inserter
Inserter
Posts: 32
Joined: Wed Feb 27, 2019 8:48 pm
Contact:

Re: Ubuntu, alt-tab freezes game

Post by wladekb »

Factorio 1.0.0
I played the game, saved it, left the in-game menu open, pressed alt+tab, attempted to switch back, then ran gdb.

Here is a stacktrace dump for all threads after the game froze in the above situation:

Code: Select all

(gdb) thread apply all bt

Thread 21 (Thread 0x7f43a1554700 (LWP 18115)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f43400077dc)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f4340007788, cond=0x7f43400077b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x7f43400077b0, mutex=mutex@entry=0x7f4340007788) at pthread_cond_wait.c:655
#3  0x00000000019cb733 in _al_cond_wait (mutex=0x7f4340007780, cond=0x7f43400077b0)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/include/allegro5/platform/aintuthr.h:81
#4  al_wait_for_event (queue=queue@entry=0x7f4340007730, ret_event=ret_event@entry=0x7f43a1552870)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/events.c:408
#5  0x00000000019c5a19 in _al_kcm_feed_stream (self=<optimized out>, vstream=0x82ab590)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/addons/audio/kcm_stream.c:693
#6  0x00000000019cea68 in thread_func_trampoline (inner=<optimized out>, _outer=0x11c4b7a0)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/threads.c:79
#7  0x00000000019ce80b in thread_proc_trampoline (data=<optimized out>)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/unix/uxthread.c:44
#8  0x00007f43bbff76db in start_thread (arg=0x7f43a1554700) at pthread_create.c:463
#9  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 20 (Thread 0x7f43728fd700 (LWP 18090)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f43525fc338)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f43525fc2e8, cond=0x7f43525fc310) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x7f43525fc310, mutex=mutex@entry=0x7f43525fc2e8) at pthread_cond_wait.c:655
#3  0x00000000019cb733 in _al_cond_wait (mutex=0x7f43525fc2e0, cond=0x7f43525fc310)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/include/allegro5/platform/aintuthr.h:81
#4  al_wait_for_event (queue=queue@entry=0x7f43525fc290, ret_event=ret_event@entry=0x7f43728fb870)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/events.c:408
#5  0x00000000019c5a19 in _al_kcm_feed_stream (self=<optimized out>, vstream=0x11dcbe40)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/addons/audio/kcm_stream.c:693
#6  0x00000000019cea68 in thread_func_trampoline (inner=<optimized out>, _outer=0x17eb11e0)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/threads.c:79
#7  0x00000000019ce80b in thread_proc_trampoline (data=<optimized out>)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/unix/uxthread.c:44
#8  0x00007f43bbff76db in start_thread (arg=0x7f43728fd700) at pthread_create.c:463
#9  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 19 (Thread 0x7f435d3ff700 (LWP 16765)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f43462b6d80)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f43462b6d30, cond=0x7f43462b6d58) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f43462b6d58, mutex=0x7f43462b6d30) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x00000000009205f8 in MapGenerationHelper::consumeTasks() () at /tmp/factorio-build-jo6Nmq/src/Map/MapGenerationHelper.cpp:149
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f435d3ff700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 18 (Thread 0x7f435fffd700 (LWP 16763)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f434a796720)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f434a7966b0, cond=0x7f434a7966f8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f434a7966f8, mutex=0x7f434a7966b0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f435fffd700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 17 (Thread 0x7f43607fe700 (LWP 16762)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f434aabd9f0)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f434aabd980, cond=0x7f434aabd9c8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f434aabd9c8, mutex=0x7f434aabd980) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f43607fe700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7f4360fff700 (LWP 16761)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f434a5de830)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f434a5de7c0, cond=0x7f434a5de808) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f434a5de808, mutex=0x7f434a5de7c0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f4360fff700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7f43738ff700 (LWP 16760)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f434a4a6020)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f434a4a5fb0, cond=0x7f434a4a5ff8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f434a4a5ff8, mutex=0x7f434a4a5fb0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f43738ff700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7f43a0d53700 (LWP 16756)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7ffdd3f34420)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7ffdd3f343b0, cond=0x7ffdd3f343f8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7ffdd3f343f8, mutex=0x7ffdd3f343b0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f43a0d53700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7f43a9371700 (LWP 16700)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x3809b2c)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x380c960, cond=0x3809b00) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x3809b00, mutex=0x380c960) at pthread_cond_wait.c:655
#3  0x00007f43ba65aa68 in pa_threaded_mainloop_wait () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f43ba424d84 in pa_simple_write () from /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0
#5  0x00000000019da8c8 in pulseaudio_update (self=<optimized out>, data=0x38099e0)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/addons/audio/pulseaudio.c:180
#6  0x00000000019cea68 in thread_func_trampoline (inner=<optimized out>, _outer=0x3839460)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/threads.c:79
#7  0x00000000019ce80b in thread_proc_trampoline (data=<optimized out>)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/unix/uxthread.c:44
#8  0x00007f43bbff76db in start_thread (arg=0x7f43a9371700) at pthread_create.c:463
#9  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7f43a9d91700 (LWP 16699)):
#0  0x00007f43b9ba4cb9 in __GI___poll (fds=0x7f4388001b30, nfds=3, timeout=1356) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f43ba65a481 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f43ba64be40 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f43ba64c4d0 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f43ba64c560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f43ba65a3c9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f43b85a0318 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#7  0x00007f43bbff76db in start_thread (arg=0x7f43a9d91700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f43aa599700 (LWP 16698)):
#0  0x00007f43b9ba6e1f in __GI___select (nfds=38, readfds=readfds@entry=0x7f43aa597830, writefds=writefds@entry=0x0, 
    exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7f43aa597720) at ../sysdeps/unix/sysv/linux/select.c:41
#1  0x0000000001a1f187 in _al_xwin_background_thread (self=0x3838c20, arg=0x3838bc0)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/x/xevents.c:279
#2  0x00000000019ce80b in thread_proc_trampoline (data=<optimized out>)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/unix/uxthread.c:44
#3  0x00007f43bbff76db in start_thread (arg=0x7f43aa599700) at pthread_create.c:463
#4  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f43aaf28700 (LWP 16697)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x30ad0d8)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x30ad088, cond=0x30ad0b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x30ad0b0, mutex=0x30ad088) at pthread_cond_wait.c:655
#3  0x00007f43ad2559ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f43ad255597 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f43bbff76db in start_thread (arg=0x7f43aaf28700) at pthread_create.c:463
#6  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f43ab729700 (LWP 16696)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x30ad0d8)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x30ad088, cond=0x30ad0b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x30ad0b0, mutex=0x30ad088) at pthread_cond_wait.c:655
#3  0x00007f43ad2559ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f43ad255597 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f43bbff76db in start_thread (arg=0x7f43ab729700) at pthread_create.c:463
#6  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f43a3fff700 (LWP 16695)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x30ad0d8)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x30ad088, cond=0x30ad0b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x30ad0b0, mutex=0x30ad088) at pthread_cond_wait.c:655
#3  0x00007f43ad2559ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f43ad255597 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f43bbff76db in start_thread (arg=0x7f43a3fff700) at pthread_create.c:463
#6  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f43abf2a700 (LWP 16694)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x30ad0d8)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x30ad088, cond=0x30ad0b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x30ad0b0, mutex=0x30ad088) at pthread_cond_wait.c:655
#3  0x00007f43ad2559ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f43ad255597 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f43bbff76db in start_thread (arg=0x7f43abf2a700) at pthread_create.c:463
#6  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f43b042e700 (LWP 16693)):
#0  0x00007f43bc0007c6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x2eb7020)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1  do_futex_wait (sem=sem@entry=0x2eb7020, abstime=0x0) at sem_waitcommon.c:111
#2  0x00007f43bc0008b8 in __new_sem_wait_slow (sem=0x2eb7020, abstime=0x0) at sem_waitcommon.c:181
#3  0x0000000001bb4166 in SDL_SemWait () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/thread/pthread/SDL_syssem.c:95
#4  SDL_SemWaitTimeout () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/thread/pthread/SDL_syssem.c:126
#5  0x0000000001bb4788 in SDL_TimerThread () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/timer/SDL_timer.c:201
#6  0x0000000001bb399c in SDL_RunThread () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/thread/SDL_thread.c:283
#7  0x0000000001bb4299 in RunThread () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/thread/pthread/SDL_systhread.c:78
#8  0x00007f43bbff76db in start_thread (arg=0x7f43b042e700) at pthread_create.c:463
#9  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f43b0c2f700 (LWP 16692)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2eb7b50)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2eb7ae0, cond=0x2eb7b28) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2eb7b28, mutex=0x2eb7ae0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f43b0c2f700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f43b1430700 (LWP 16691)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2ebe774)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2ebe700, cond=0x2ebe748) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2ebe748, mutex=0x2ebe700) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f43b1430700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f43b1c31700 (LWP 16690)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2ec2a64)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2ec29f0, cond=0x2ec2a38) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2ec2a38, mutex=0x2ec29f0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f43b1c31700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f43b2465700 (LWP 16689)):
#0  0x00007f43bbffdad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2e17a30)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2e179e0, cond=0x2e17a08) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2e17a08, mutex=0x2e179e0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x000000000084eec3 in TaskManager::run() () at /tmp/factorio-build-jo6Nmq/src/Util/TaskManager.cpp:65
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007f43bbff76db in start_thread (arg=0x7f43b2465700) at pthread_create.c:463
#8  0x00007f43b9bb171f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f43bc5e9d00 (LWP 16685)):
#0  0x00007f43b9ba4cb9 in __GI___poll (fds=0x7ffdd3f33d08, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f43b90ce747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f43b90d006f in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f43b90d01ef in xcb_wait_for_reply64 () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007f43bb6736a8 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007f43af3e2531 in ?? () from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#6  0x00007f43af3e28c7 in ?? () from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#7  0x00007f43ace4a236 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#8  0x00007f43ace4a875 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#9  0x00007f43ace46d69 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#10 0x0000000000ce4059 in GraphicsInterfaceOpenGL::swapBuffers() ()
    at /tmp/factorio-build-jo6Nmq/src/Graphics/OpenGL/GraphicsInterfaceOpenGL.cpp:260
#11 0x000000000060cfbe in SDLWindow::swap () at /tmp/factorio-build-jo6Nmq/src/Graphics/SDLWindow.cpp:355
#12 0x000000000066e602 in GlobalContext::swapRenderBuffers () at /tmp/factorio-build-jo6Nmq/src/GlobalContext.cpp:1515
#13 0x000000000127ce01 in GlobalContext::swapRenderBuffers () at /tmp/factorio-build-jo6Nmq/src/GlobalContext.cpp:1477
#14 MainLoop::mainLoopStep(WorkerThread&, MainLoop::HeavyMode) () at /tmp/factorio-build-jo6Nmq/src/MainLoop.cpp:648
#15 0x000000000127d0ae in MainLoop::run(Filesystem::Path const&, Filesystem::Path const&, bool, bool, std::function<void ()>, Filesystem::Path const&, MainLoop::HeavyMode) () at /tmp/factorio-build-jo6Nmq/src/MainLoop.cpp:379
#16 0x00000000005c37bc in main () at /tmp/factorio-build-jo6Nmq/src/Main.cpp:1123
#17 0x00007f43b9ab1bf7 in __libc_start_main (main=0x5ba0f0 <main>, argc=1, argv=0x7ffdd3f367b8, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7ffdd3f367a8) at ../csu/libc-start.c:310
#18 0x00000000005d376e in _start () at /home/build/gcc-9.2/include/c++/9.2.0/bits/regex_error.h:171
Does it tell anything? Let me know if I can add any other relevant information.
Last edited by wladekb on Mon Nov 09, 2020 3:51 am, edited 1 time in total.
wladekb
Inserter
Inserter
Posts: 32
Joined: Wed Feb 27, 2019 8:48 pm
Contact:

Re: Ubuntu, alt-tab freezes game

Post by wladekb »

Notes:
1. Switching to a text console (ctrl+alt+f1) pauses the music, logging in in the text console starts the music(!), switching back to X (ctrl+alt+f7) brings back the game that I can still play.
2. Switching alt+tab froze the game but the music was still playing.
3. When the game freezes and I attempt to switch back I'm getting an option to Wait/Force Quit the game.

Here's also a stacktrace dump after the game froze when the game was being played (not in the in-game menu as in the previous post):

Code: Select all

(gdb) thread apply all bt

Thread 21 (Thread 0x7fa914e89700 (LWP 18829)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa8b4000bcc)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fa8b4000b78, cond=0x7fa8b4000ba0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x7fa8b4000ba0, mutex=mutex@entry=0x7fa8b4000b78) at pthread_cond_wait.c:655
#3  0x00000000019cb733 in _al_cond_wait (mutex=0x7fa8b4000b70, cond=0x7fa8b4000ba0)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/include/allegro5/platform/aintuthr.h:81
#4  al_wait_for_event (queue=queue@entry=0x7fa8b4000b20, ret_event=ret_event@entry=0x7fa914e87870)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/events.c:408
#5  0x00000000019c5a19 in _al_kcm_feed_stream (self=<optimized out>, vstream=0x8aa0860)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/addons/audio/kcm_stream.c:693
#6  0x00000000019cea68 in thread_func_trampoline (inner=<optimized out>, _outer=0x11d00f60)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/threads.c:79
#7  0x00000000019ce80b in thread_proc_trampoline (data=<optimized out>)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/unix/uxthread.c:44
#8  0x00007fa92e18b6db in start_thread (arg=0x7fa914e89700) at pthread_create.c:463
#9  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 20 (Thread 0x7fa8cb3ff700 (LWP 18827)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa8ba355ab0)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fa8ba355a60, cond=0x7fa8ba355a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7fa8ba355a88, mutex=0x7fa8ba355a60) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x00000000009205f8 in MapGenerationHelper::consumeTasks() () at /tmp/factorio-build-jo6Nmq/src/Map/MapGenerationHelper.cpp:149
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa8cb3ff700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 19 (Thread 0x7fa8d3037700 (LWP 18825)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa8be106ea4)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fa8be106e30, cond=0x7fa8be106e78) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7fa8be106e78, mutex=0x7fa8be106e30) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa8d3037700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 18 (Thread 0x7fa8d3838700 (LWP 18824)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa8be3c6440)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fa8be3c63d0, cond=0x7fa8be3c6418) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7fa8be3c6418, mutex=0x7fa8be3c63d0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa8d3838700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 17 (Thread 0x7fa8d4039700 (LWP 18823)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa8be456024)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fa8be455fb0, cond=0x7fa8be455ff8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7fa8be455ff8, mutex=0x7fa8be455fb0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa8d4039700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7fa8edfc6700 (LWP 18822)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa8be179f00)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fa8be179e90, cond=0x7fa8be179ed8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7fa8be179ed8, mutex=0x7fa8be179e90) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa8edfc6700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7fa8ecfc4700 (LWP 18819)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa8c735d7bc)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fa8c735d768, cond=0x7fa8c735d790) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x7fa8c735d790, mutex=mutex@entry=0x7fa8c735d768) at pthread_cond_wait.c:655
#3  0x00000000019cb733 in _al_cond_wait (mutex=0x7fa8c735d760, cond=0x7fa8c735d790)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/include/allegro5/platform/aintuthr.h:81
#4  al_wait_for_event (queue=queue@entry=0x7fa8c735d710, ret_event=ret_event@entry=0x7fa8ecfc2870)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/events.c:408
#5  0x00000000019c5a19 in _al_kcm_feed_stream (self=<optimized out>, vstream=0xa054510)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/addons/audio/kcm_stream.c:693
#6  0x00000000019cea68 in thread_func_trampoline (inner=<optimized out>, _outer=0x1839c260)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/threads.c:79
#7  0x00000000019ce80b in thread_proc_trampoline (data=<optimized out>)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/unix/uxthread.c:44
#8  0x00007fa92e18b6db in start_thread (arg=0x7fa8ecfc4700) at pthread_create.c:463
#9  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7fa8eeec7700 (LWP 18818)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fff8c742020)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fff8c741fb0, cond=0x7fff8c741ff8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7fff8c741ff8, mutex=0x7fff8c741fb0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa8eeec7700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fa9167fc700 (LWP 18790)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x36c5b88)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x36c89c0, cond=0x36c5b60) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x36c5b60, mutex=0x36c89c0) at pthread_cond_wait.c:655
#3  0x00007fa92c7eea68 in pa_threaded_mainloop_wait () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007fa92c5b8d84 in pa_simple_write () from /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0
#5  0x00000000019da8c8 in pulseaudio_update (self=<optimized out>, data=0x36c5a40)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/addons/audio/pulseaudio.c:180
#6  0x00000000019cea68 in thread_func_trampoline (inner=<optimized out>, _outer=0x36f53a0)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/threads.c:79
#7  0x00000000019ce80b in thread_proc_trampoline (data=<optimized out>)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/unix/uxthread.c:44
#8  0x00007fa92e18b6db in start_thread (arg=0x7fa9167fc700) at pthread_create.c:463
#9  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7fa916ffd700 (LWP 18789)):
#0  0x00007fa92bd38cb9 in __GI___poll (fds=0x7fa8fc001b30, nfds=3, timeout=530) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa92c7ee481 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007fa92c7dfe40 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007fa92c7e04d0 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007fa92c7e0560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007fa92c7ee3c9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007fa92a734318 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa916ffd700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fa9177fe700 (LWP 18788)):
#0  0x00007fa92bd3ae1f in __GI___select (nfds=38, readfds=readfds@entry=0x7fa9177fc830, writefds=writefds@entry=0x0, 
    exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7fa9177fc720) at ../sysdeps/unix/sysv/linux/select.c:41
#1  0x0000000001a1f187 in _al_xwin_background_thread (self=0x36f4a80, arg=0x36f4a20)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/x/xevents.c:279
#2  0x00000000019ce80b in thread_proc_trampoline (data=<optimized out>)
    at /tmp/factorio-build-jo6Nmq/libraries/Allegro/src/unix/uxthread.c:44
#3  0x00007fa92e18b6db in start_thread (arg=0x7fa9177fe700) at pthread_create.c:463
#4  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fa91d0bc700 (LWP 18787)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2f69fd8)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2f69f88, cond=0x2f69fb0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2f69fb0, mutex=0x2f69f88) at pthread_cond_wait.c:655
#3  0x00007fa91f3e99ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fa91f3e9597 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fa92e18b6db in start_thread (arg=0x7fa91d0bc700) at pthread_create.c:463
#6  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fa91d8bd700 (LWP 18786)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2f69fd8)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2f69f88, cond=0x2f69fb0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2f69fb0, mutex=0x2f69f88) at pthread_cond_wait.c:655
#3  0x00007fa91f3e99ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fa91f3e9597 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fa92e18b6db in start_thread (arg=0x7fa91d8bd700) at pthread_create.c:463
#6  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fa917fff700 (LWP 18785)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2f69fd8)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2f69f88, cond=0x2f69fb0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2f69fb0, mutex=0x2f69f88) at pthread_cond_wait.c:655
#3  0x00007fa91f3e99ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fa91f3e9597 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fa92e18b6db in start_thread (arg=0x7fa917fff700) at pthread_create.c:463
#6  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fa91e0be700 (LWP 18784)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2f69fd8)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2f69f88, cond=0x2f69fb0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2f69fb0, mutex=0x2f69f88) at pthread_cond_wait.c:655
#3  0x00007fa91f3e99ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fa91f3e9597 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fa92e18b6db in start_thread (arg=0x7fa91e0be700) at pthread_create.c:463
#6  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fa9225c2700 (LWP 18783)):
#0  0x00007fa92e1947c6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x2d73ff0)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1  do_futex_wait (sem=sem@entry=0x2d73ff0, abstime=0x0) at sem_waitcommon.c:111
#2  0x00007fa92e1948b8 in __new_sem_wait_slow (sem=0x2d73ff0, abstime=0x0) at sem_waitcommon.c:181
#3  0x0000000001bb4166 in SDL_SemWait () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/thread/pthread/SDL_syssem.c:95
#4  SDL_SemWaitTimeout () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/thread/pthread/SDL_syssem.c:126
#5  0x0000000001bb4788 in SDL_TimerThread () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/timer/SDL_timer.c:201
#6  0x0000000001bb399c in SDL_RunThread () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/thread/SDL_thread.c:283
#7  0x0000000001bb4299 in RunThread () at /tmp/factorio-build-jo6Nmq/libraries/SDL2/src/thread/pthread/SDL_systhread.c:78
#8  0x00007fa92e18b6db in start_thread (arg=0x7fa9225c2700) at pthread_create.c:463
#9  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fa922dc3700 (LWP 18782)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2d74b50)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2d74ae0, cond=0x2d74b28) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2d74b28, mutex=0x2d74ae0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa922dc3700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fa9235c4700 (LWP 18781)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2d7b770)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2d7b700, cond=0x2d7b748) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2d7b748, mutex=0x2d7b700) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa9235c4700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fa923dc5700 (LWP 18780)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2d7fa64)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2d7f9f0, cond=0x2d7fa38) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2d7fa38, mutex=0x2d7f9f0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x0000000000cd4004 in WorkerThread::loop() () at /tmp/factorio-build-jo6Nmq/src/Util/WorkerThread.cpp:43
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa923dc5700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fa9245f9700 (LWP 18779)):
#0  0x00007fa92e191ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x2cd4a30)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x2cd49e0, cond=0x2cd4a08) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x2cd4a08, mutex=0x2cd49e0) at pthread_cond_wait.c:655
#3  0x0000000001e33c7c in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>)
    at /home/build/gcc-9.2-source/gcc-9.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:865
#4  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53
#5  0x000000000084eec3 in TaskManager::run() () at /tmp/factorio-build-jo6Nmq/src/Util/TaskManager.cpp:65
#6  0x0000000001ea2340 in execute_native_thread_routine () at ../../../../../libstdc++-v3/src/c++11/thread.cc:80
#7  0x00007fa92e18b6db in start_thread (arg=0x7fa9245f9700) at pthread_create.c:463
#8  0x00007fa92bd4571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fa92e77dd00 (LWP 18775)):
#0  0x00007fa92bd38cb9 in __GI___poll (fds=0x7fff8c741908, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa92b262747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fa92b26406f in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fa92b2641ef in xcb_wait_for_reply64 () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007fa92d8076a8 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007fa921576531 in ?? () from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#6  0x00007fa9215768c7 in ?? () from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#7  0x00007fa91efde236 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#8  0x00007fa91efde875 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#9  0x00007fa91efdad69 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#10 0x0000000000ce4059 in GraphicsInterfaceOpenGL::swapBuffers() ()
    at /tmp/factorio-build-jo6Nmq/src/Graphics/OpenGL/GraphicsInterfaceOpenGL.cpp:260
#11 0x000000000060cfbe in SDLWindow::swap () at /tmp/factorio-build-jo6Nmq/src/Graphics/SDLWindow.cpp:355
#12 0x000000000066e602 in GlobalContext::swapRenderBuffers () at /tmp/factorio-build-jo6Nmq/src/GlobalContext.cpp:1515
#13 0x000000000127ce01 in GlobalContext::swapRenderBuffers () at /tmp/factorio-build-jo6Nmq/src/GlobalContext.cpp:1477
#14 MainLoop::mainLoopStep(WorkerThread&, MainLoop::HeavyMode) () at /tmp/factorio-build-jo6Nmq/src/MainLoop.cpp:648
#15 0x000000000127d0ae in MainLoop::run(Filesystem::Path const&, Filesystem::Path const&, bool, bool, std::function<void ()>, Filesystem::Path const&, MainLoop::HeavyMode) () at /tmp/factorio-build-jo6Nmq/src/MainLoop.cpp:379
#16 0x00000000005c37bc in main () at /tmp/factorio-build-jo6Nmq/src/Main.cpp:1123
#17 0x00007fa92bc45bf7 in __libc_start_main (main=0x5ba0f0 <main>, argc=1, argv=0x7fff8c7443b8, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fff8c7443a8) at ../csu/libc-start.c:310
#18 0x00000000005d376e in _start () at /home/build/gcc-9.2/include/c++/9.2.0/bits/regex_error.h:171
wladekb
Inserter
Inserter
Posts: 32
Joined: Wed Feb 27, 2019 8:48 pm
Contact:

Re: Ubuntu, alt-tab freezes game

Post by wladekb »

New observation:
The freeze does not occur when I have the steam overlay present (shift+tab) when switching apps via alt+tab, and it seems to be pretty consistent.
In the case of active steam overlay I can also see the resolution/window size to change quickly after I switch back to Factorio.
Post Reply

Return to “Pending”