Repository navigation
Strawberry - #10
Closed
Azael-Snively wants to merge 7 commits into
Closed
Strawberry#10Azael-Snively wants to merge 7 commits into
Azael-Snively wants to merge 7 commits into
Conversation
GeraForever
added a commit
to GeraForever/Cubyz
that referenced
this pull request
May 26, 2025
apply formatting fix
IntegratedQuantum
added a commit
that referenced
this pull request
Jun 6, 2026
I observed this crash after the last play session: ``` #0 0x000000000137d1a7 in utils.CircularBufferQueue(*server.server.User).pushBack (self=0x23e1630 <server.server[userDeinitList]>, elem=0x7ff9bd0ad000) at utils.zig:512 #1 utils.ConcurrentQueue(*server.server.User).pushBack (self=0x23e1630 <server.server[userDeinitList]>, elem=0x7ff9bd0ad000) at utils.zig:614 #2 0x000000000137cc1a in server.server.disconnect (user=0x7ff9bd0ad000) at /home/mint/Cubyz/src/server/server.zig:724 #3 network.Connection.disconnect (self=0x7ff9bd0e3000) at network.zig:1831 #4 0x000000000137c30a in network.Connection.deinit (self=0x7ff9bd0e3000) at network.zig:1513 #5 server.server.User.deinit (self=0x7ff9bd0ad000) at /home/mint/Cubyz/src/server/server.zig:189 #6 0x00000000013f77f5 in server.server.User.decreaseRefCount (self=0x23e1630 <server.server[userDeinitList]>) at /home/mint/Cubyz/src/server/server.zig:209 #7 server.server.deinit () at /home/mint/Cubyz/src/server/server.zig:589 #8 server.server.startFromExistingThread (port=...) at /home/mint/Cubyz/src/server/server.zig:701 #9 0x000000000156d548 in server.server.startFromNewThread (port=...) at /home/mint/Cubyz/src/server/server.zig:695 #10 Thread.callFn__anon_469235 (args=...) at /home/mint/Cubyz/compiler/zig/lib/std/Thread.zig:422 #11 Thread.PosixThreadImpl.spawn__anon_469217.Instance.entryFn (raw_arg=0x7f155e0) at /home/mint/Cubyz/compiler/zig/lib/std/Thread.zig:752 #12 0x00007ffff7c94ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #13 0x00007ffff7d268d0 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 ``` The problem was that a disconnect tried to add to the `userDeinitList`, but the userDeinitList was cleaned just before. To fix this I moved the connection manager first, which also makes more sense since it avoids receiving new connections while already starting to clean things.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.