[GH-ISSUE #312] Crash on closing connection #218

Closed
opened 2026-10-15 12:58:21 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @matdave on GitHub (Dec 10, 2025).
Original GitHub issue: https://github.com/games-on-whales/wolf/issues/312

The last couple times I closed connection from Moonlight, it caused wolf to crash.

14:55:22.706238629 ERROR | Unhandled exception: The state of the promise has already been set.

Stack trace (most recent call first):

#0  0x00005631f493a832 in safe_dump_stacktrace_to at /wolf/src/moonlight-server/./exceptions/exceptions.h:22:56

#1  0x00005631f4943b0d in shutdown_handler at /wolf/src/moonlight-server/./exceptions/exceptions.h:69:28

#2  0x00005631f4949b70 in on_terminate at /wolf/src/moonlight-server/./exceptions/exceptions.h:99:19

#3  0x00007faec47c80a9 at /lib/x86_64-linux-gnu/libstdc++.so.6

#4  0x00007faec47b1a9d in std::terminate() at /lib/x86_64-linux-gnu/libstdc++.so.6

#5  0x00007faec47c8360 in __cxa_throw at /lib/x86_64-linux-gnu/libstdc++.so.6

#6  0x00005631f4910878 in void boost::throw_exception<boost::promise_already_satisfied>(boost::promise_already_satisfied const&) at /cache/cmake-build/_deps/boost-src/libs/throw_exception/include/boost/throw_exception.hpp:165:5

#7  0x00005631f4a2497e in boost::promise<bool>::set_value(bool&&) at /cache/cmake-build/_deps/boost-src/libs/thread/include/boost/thread/future.hpp:2403:39

#8  0x00005631f4a1d0ed in operator() at /wolf/src/core/src/platforms/linux/pulseaudio/pulse.cpp:83:38

#9  0x00007faec508d4d5 at /lib/x86_64-linux-gnu/libpulse.so.0

#10 0x00007faec40d120b at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-17.0.so

#11 0x00007faec50a1f83 in pa_mainloop_dispatch at /lib/x86_64-linux-gnu/libpulse.so.0

#12 0x00007faec50a25f0 in pa_mainloop_iterate at /lib/x86_64-linux-gnu/libpulse.so.0

#13 0x00007faec50a26af in pa_mainloop_run at /lib/x86_64-linux-gnu/libpulse.so.0

#14 0x00005631f4a1cf99 in wolf::core::audio::connect(std::basic_string_view<char, std::char_traits<char> >)::{lambda()#1}::operator()() const at /wolf/src/core/src/platforms/linux/pulseaudio/pulse.cpp:102:36

#15 0x00007faec47f9323 at /lib/x86_64-linux-gnu/libstdc++.so.6

#16 0x00007faec44647f0 at /lib/x86_64-linux-gnu/libc.so.6

#17 0x00007faec44f5943 in clone at /lib/x86_64-linux-gnu/libc.so.6
Originally created by @matdave on GitHub (Dec 10, 2025). Original GitHub issue: https://github.com/games-on-whales/wolf/issues/312 The last couple times I closed connection from Moonlight, it caused wolf to crash. ``` 14:55:22.706238629 ERROR | Unhandled exception: The state of the promise has already been set. Stack trace (most recent call first): #0 0x00005631f493a832 in safe_dump_stacktrace_to at /wolf/src/moonlight-server/./exceptions/exceptions.h:22:56 #1 0x00005631f4943b0d in shutdown_handler at /wolf/src/moonlight-server/./exceptions/exceptions.h:69:28 #2 0x00005631f4949b70 in on_terminate at /wolf/src/moonlight-server/./exceptions/exceptions.h:99:19 #3 0x00007faec47c80a9 at /lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007faec47b1a9d in std::terminate() at /lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007faec47c8360 in __cxa_throw at /lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00005631f4910878 in void boost::throw_exception<boost::promise_already_satisfied>(boost::promise_already_satisfied const&) at /cache/cmake-build/_deps/boost-src/libs/throw_exception/include/boost/throw_exception.hpp:165:5 #7 0x00005631f4a2497e in boost::promise<bool>::set_value(bool&&) at /cache/cmake-build/_deps/boost-src/libs/thread/include/boost/thread/future.hpp:2403:39 #8 0x00005631f4a1d0ed in operator() at /wolf/src/core/src/platforms/linux/pulseaudio/pulse.cpp:83:38 #9 0x00007faec508d4d5 at /lib/x86_64-linux-gnu/libpulse.so.0 #10 0x00007faec40d120b at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-17.0.so #11 0x00007faec50a1f83 in pa_mainloop_dispatch at /lib/x86_64-linux-gnu/libpulse.so.0 #12 0x00007faec50a25f0 in pa_mainloop_iterate at /lib/x86_64-linux-gnu/libpulse.so.0 #13 0x00007faec50a26af in pa_mainloop_run at /lib/x86_64-linux-gnu/libpulse.so.0 #14 0x00005631f4a1cf99 in wolf::core::audio::connect(std::basic_string_view<char, std::char_traits<char> >)::{lambda()#1}::operator()() const at /wolf/src/core/src/platforms/linux/pulseaudio/pulse.cpp:102:36 #15 0x00007faec47f9323 at /lib/x86_64-linux-gnu/libstdc++.so.6 #16 0x00007faec44647f0 at /lib/x86_64-linux-gnu/libc.so.6 #17 0x00007faec44f5943 in clone at /lib/x86_64-linux-gnu/libc.so.6 ```
Author
Owner

@matdave commented on GitHub (Dec 24, 2025):

this seemed to stop after driver update.

<!-- gh-comment-id:3690499236 --> @matdave commented on GitHub (Dec 24, 2025): this seemed to stop after driver update.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/wolf#218
No description provided.