Skip to content

Error when connecting to opponent #1

Description

@OrnitOnGithub

Hi, when I try to connect, after a while this issue occurs on both server and client:

    __  ______    ____  _____________    __       ____  ___   ____ 
   /  |/  /   |  / __ \/_  __/  _/   |  / /      / __ \/   | / __ \
  / /|_/ / /| | / /_/ / / /  / // /| | / /      / / / / /| |/ / / /
 / /  / / ___ |/ _, _/ / / _/ // ___ |/ /___   / /_/ / ___ / /_/ / 
/_/  /_/_/  |_/_/ |_| /_/ /___/_/  |_/_____/  /_____/_/  |_\____/  
                                                                   

 _                                                              
/ .__  _._|_ _  _| |_    |\/| _.._    _.._   /\ ._ _ ._|_  _.._ 
\_|(/_(_| |_(/_(_| |_)\/ |  |(_||\/\/(_|| | /--\| | || | |(_||  
                      /                                         

+--------------------------------+
| Server port: 8210              |
+-------------------------------+
Waiting for opponent...
+-----------------------------------------------+
| Opponent connected. Commencing battlefield... |
+-----------------------------------------------+
Creating game window...
Drawing assets on the screen...
2024-10-11 08:43:32.280 Python[71156:11694883] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!'
*** First throw call stack:
(
        0   CoreFoundation                      0x00000001af845138 __exceptionPreprocess + 240
        1   libobjc.A.dylib                     0x00000001af58fe04 objc_exception_throw + 60
        2   AppKit                              0x00000001b2329920 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 4256
        3   libSDL2-2.0.0.dylib                 0x0000000100db276c Cocoa_PumpEventsUntilDate + 88
        4   libSDL2-2.0.0.dylib                 0x0000000100db2a08 Cocoa_PumpEvents + 56
        5   libSDL2-2.0.0.dylib                 0x0000000100d07aac SDL_PumpEvents_REAL + 40
        6   event.cpython-310-darwin.so         0x0000000100efff94 pg_event_get + 160
        7   Python                              0x0000000101183e94 cfunction_call + 60
        8   Python                              0x000000010111c980 _PyObject_MakeTpCall + 136
        9   Python                              0x0000000101253700 call_function + 380
        10  Python                              0x000000010124b66c _PyEval_EvalFrameDefault + 24136
        11  Python                              0x0000000101243f9c _PyEval_Vector + 360
        12  Python                              0x00000001012461ec _PyEval_EvalFrameDefault + 2504
        13  Python                              0x0000000101243f9c _PyEval_Vector + 360
        14  Python                              0x0000000101253608 call_function + 132
        15  Python                              0x000000010124a5d8 _PyEval_EvalFrameDefault + 19892
        16  Python                              0x0000000101243f9c _PyEval_Vector + 360
        17  Python                              0x0000000101253608 call_function + 132
        18  Python                              0x000000010124a5d8 _PyEval_EvalFrameDefault + 19892
        19  Python                              0x0000000101243f9c _PyEval_Vector + 360
        20  Python                              0x0000000101120950 method_vectorcall + 388
        21  Python                              0x00000001013416a4 thread_run + 172
        22  Python                              0x00000001012c458c pythread_wrapper + 48
        23  libsystem_pthread.dylib             0x00000001af6f826c _pthread_start + 148
        24  libsystem_pthread.dylib             0x00000001af6f308c thread_start + 8
)
libc++abi: terminating with uncaught exception of type NSException
zsh: abort      python3 client.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions