fokkonaut / F-Client

F-Client is a client mod for Teeworlds 0.7 developed by fokkonaut.
https://fokkonaut.github.io/F-Client/
Other
6 stars 6 forks source link

macOS crash on window switch from full screen #5

Closed nzyuzin closed 4 years ago

nzyuzin commented 4 years ago

Crashes if one switches to another desktop from fullscreen f-client. Does not occur on vanilla. Does not occur in windowed mode either. Top of the crash log:

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff6abb7756 __semwait_signal + 10
1   libsystem_c.dylib               0x00007fff6ab3aeea nanosleep + 196
2   libsystem_c.dylib               0x00007fff6ab3ade4 usleep + 53
3   com.TeeworldsClient.app         0x0000000103ab2b8e CClient::Run() + 3326
4   com.TeeworldsClient.app         0x0000000103ab42a2 TWMain + 1330
5   com.TeeworldsClient.app         0x0000000103aa6f04 start + 52

Thread 1:
0   libsystem_kernel.dylib          0x00007fff6abb7756 __semwait_signal + 10
1   libsystem_c.dylib               0x00007fff6ab3aeea nanosleep + 196
2   libsystem_c.dylib               0x00007fff6ab3ade4 usleep + 53
3   com.TeeworldsClient.app         0x0000000103b93ce6 CJobPool::WorkerThread(void*) + 70
4   com.TeeworldsClient.app         0x0000000103ba726d thread_run + 29
5   libsystem_pthread.dylib         0x00007fff6ac78109 _pthread_start + 148
6   libsystem_pthread.dylib         0x00007fff6ac73b8b thread_start + 15

Thread 2:
0   libsystem_pthread.dylib         0x00007fff6ac73b68 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib         0x00007fff6ac73b68 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib         0x00007fff6ac73b68 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib         0x00007fff6ac73b68 start_wqthread + 0

Thread 6:: com.apple.NSEventThread
0   libsystem_kernel.dylib          0x00007fff6abb4dfa mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff6abb5170 mach_msg + 60
2   com.apple.CoreFoundation        0x00007fff30a78f85 __CFRunLoopServiceMachPort + 247
3   com.apple.CoreFoundation        0x00007fff30a77a52 __CFRunLoopRun + 1319
4   com.apple.CoreFoundation        0x00007fff30a76ece CFRunLoopRunSpecific + 462
5   com.apple.AppKit                0x00007fff2de8f144 _NSEventThread + 132
6   libsystem_pthread.dylib         0x00007fff6ac78109 _pthread_start + 148
7   libsystem_pthread.dylib         0x00007fff6ac73b8b thread_start + 15

Thread 7 Crashed:
0   com.apple.AppKit                0x00007fff2e09886d -[NSOpenGLContext update] + 525
1   libSDL2-2.0.0.dylib             0x0000000103f1e282 -[SDLOpenGLContext updateIfNeeded] + 63
2   libSDL2-2.0.0.dylib             0x0000000103f1ec31 Cocoa_GL_SwapWindow + 79
3   com.TeeworldsClient.app         0x0000000103aa8f21 CCommandProcessorFragment_SDL::RunCommand(CCommandBuffer::CCommand const*) + 225
4   com.TeeworldsClient.app         0x0000000103aa8fc3 CCommandProcessor_SDL_OpenGL::RunBuffer(CCommandBuffer*) + 131
5   com.TeeworldsClient.app         0x0000000103aa70ef CGraphicsBackend_Threaded::ThreadFunc(void*) + 175
6   com.TeeworldsClient.app         0x0000000103ba726d thread_run + 29
7   libsystem_pthread.dylib         0x00007fff6ac78109 _pthread_start + 148
8   libsystem_pthread.dylib         0x00007fff6ac73b8b thread_start + 15
fokkonaut commented 4 years ago

Compile the program yourself, maybe that fixes it. I didnt change anything in that direction, maybe the GitHub Artifacts arent the best builds

nzyuzin commented 4 years ago

Apparently the same issue as in https://github.com/teeworlds/teeworlds/issues/2624.