Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Crash on window.Close(), help please!  (Read 2360 times)

0 Members and 1 Guest are viewing this topic.

sinksinksink

  • Newbie
  • *
  • Posts: 1
    • View Profile
Crash on window.Close(), help please!
« on: April 03, 2018, 05:20:35 pm »
Hi, first time poster here.

I have an issue when trying to run SFML net on a Mac running High Sierra. Every time I try to call Close() on a window I get a crash, stack trace below. Anyone got any ideas?

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) SFML.Graphics.RenderWindow.sfRenderWindow_destroy (intptr) <0x00012>
  at SFML.Graphics.RenderWindow.Destroy (bool) [0x00006] in <4627602695ae459198965b45eda5cf65>:0
  at SFML.ObjectBase.Dispose (bool) [0x00014] in <560d7ec9c0f442c5998eecf674be73c1>:0
  at SFML.ObjectBase.Finalize () [0x00002] in <560d7ec9c0f442c5998eecf674be73c1>:0
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) [0x0001f] in <e22c1963d07746cd9708456620d50e1a>:0

Native stacktrace:


Debug info from gdb:

(lldb) command source -s 0 '/tmp/mono-gdb-commands.s4od3Z'
Executing commands in '/tmp/mono-gdb-commands.s4od3Z'.
(lldb) process attach --pid 2305
Process 2305 stopped
* thread #1, name = 'tid_303', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0xa76fb796 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
libsystem_kernel.dylib`semaphore_timedwait_trap:
->  0xa76fb796 <+10>: retl  
    0xa76fb797 <+11>: nop    

libsystem_kernel.dylib`semaphore_timedwait_signal_trap:
    0xa76fb798 <+0>:  movl   $0xffffffd9, %eax         ; imm = 0xFFFFFFD9
    0xa76fb79d <+5>:  calll  0xa7706f38                ; _sysenter_trap
Target 0: (mono32) stopped.

Executable module set to "/Library/Frameworks/Mono.framework/Versions/5.8.1/bin/mono32".
Architecture set to: i386-apple-macosx.
(lldb) thread list
Process 2305 stopped
* thread #1: tid = 0xefe7, 0xa76fb796 libsystem_kernel.dylib`semaphore_timedwait_trap + 10, name = 'tid_303', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  thread #2: tid = 0xefe8, 0xa7704d26 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #3: tid = 0xefea, 0xa770567e libsystem_kernel.dylib`__wait4 + 10, name = 'Finalizer'
  thread #4: tid = 0xefeb, 0xa7704f9e libsystem_kernel.dylib`__recvfrom + 10, name = 'Debugger agent'
  thread #5: tid = 0xefed, 0xa77056ee libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #6: tid = 0xefee, 0xa77056ee libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #7: tid = 0xeff5, 0xa77056ee libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #8: tid = 0xeff8, 0xa77056ee libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #9: tid = 0xefff, 0xa76fb742 libsystem_kernel.dylib`mach_msg_trap + 10, name = 'com.apple.NSEventThread'
(lldb) thread backtrace all
* thread #1, name = 'tid_303', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0xa76fb796 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x002dc093 mono32`mono_coop_sem_timedwait [inlined] mono_os_sem_timedwait(timeout_ms=<unavailable>, flags=<unavailable>) at mono-os-semaphore.h:124 [opt]
    frame #2: 0x002dc07b mono32`mono_coop_sem_timedwait(sem=<unavailable>, timeout_ms=<unavailable>, flags=<unavailable>) at mono-coop-semaphore.h:57 [opt]
    frame #3: 0x002dbbb8 mono32`mono_domain_finalize(domain=<unavailable>, timeout=4294967295) at gc.c:474 [opt]
    frame #4: 0x000bee75 mono32`mini_cleanup(domain=0x79727550) at mini-runtime.c:4391 [opt]
    frame #5: 0x0012f5ce mono32`mono_main(argc=<unavailable>, argv=<unavailable>) at driver.g.c:2226 [opt]
    frame #6: 0x000ac74a mono32`main [inlined] mono_main_with_options(argc=<unavailable>, argv=<unavailable>) at main.c:46 [opt]
    frame #7: 0x000ac729 mono32`main(argc=4, argv=0xbff56738) at main.c:339 [opt]
    frame #8: 0x000ac635 mono32`start + 53
  thread #2, name = 'SGen worker'
    frame #0: 0xa7704d26 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0xa78344db libsystem_pthread.dylib`_pthread_cond_wait + 658
    frame #2: 0xa7836130 libsystem_pthread.dylib`pthread_cond_wait$UNIX2003 + 51
    frame #3: 0x0032f5c1 mono32`thread_func [inlined] mono_os_cond_wait(mutex=0x00439e74) at mono-os-mutex.h:173 [opt]
    frame #4: 0x0032f5ac mono32`thread_func at sgen-thread-pool.c:165 [opt]
    frame #5: 0x0032f59c mono32`thread_func(data=<unavailable>) at sgen-thread-pool.c:196 [opt]
    frame #6: 0xa783350d libsystem_pthread.dylib`_pthread_body + 347
    frame #7: 0xa78333b2 libsystem_pthread.dylib`_pthread_start + 357
    frame #8: 0xa7832a8e libsystem_pthread.dylib`thread_start + 34
  thread #3, name = 'Finalizer'
    frame #0: 0xa770567e libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0xa7671d22 libsystem_c.dylib`waitpid$UNIX2003 + 32
    frame #2: 0x0016ac3c mono32`mono_handle_native_crash(signal=<unavailable>, ctx=0x007effe0, info=0x007effa0) at mini-exceptions.c:2726 [opt]
    frame #3: 0x001c9b22 mono32`mono_arch_handle_altstack_exception(sigctx=<unavailable>, siginfo=<unavailable>, fault_addr=<unavailable>, stack_ovf=<unavailable>) at exceptions-x86.c:1114 [opt]
    frame #4: 0x000ba5f2 mono32`mono_sigsegv_signal_handler(_dummy=11, _info=0x007effa0, context=0x007effe0) at mini-runtime.c:3127 [opt]
  thread #4, name = 'Debugger agent'
    frame #0: 0xa7704f9e libsystem_kernel.dylib`__recvfrom + 10
    frame #1: 0xa7671f00 libsystem_c.dylib`recv$UNIX2003 + 30
    frame #2: 0x001a3b59 mono32`socket_transport_recv(buf=<unavailable>, len=11) at debugger-agent.c:1150 [opt]
    frame #3: 0x0018f424 mono32`debugger_thread [inlined] transport_recv(len=11) at debugger-agent.c:1556 [opt]
    frame #4: 0x0018f412 mono32`debugger_thread(arg=0x00000000) at debugger-agent.c:10426 [opt]
    frame #5: 0x00299799 mono32`start_wrapper [inlined] start_wrapper_internal at threads.c:1003 [opt]
    frame #6: 0x002996e4 mono32`start_wrapper(data=<unavailable>) at threads.c:1063 [opt]
    frame #7: 0xa783350d libsystem_pthread.dylib`_pthread_body + 347
    frame #8: 0xa78333b2 libsystem_pthread.dylib`_pthread_start + 357
    frame #9: 0xa7832a8e libsystem_pthread.dylib`thread_start + 34
  thread #5
    frame #0: 0xa77056ee libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0xa7833090 libsystem_pthread.dylib`_pthread_wqthread + 1536
    frame #2: 0xa7832a6a libsystem_pthread.dylib`start_wqthread + 34
  thread #6
    frame #0: 0xa77056ee libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0xa7833090 libsystem_pthread.dylib`_pthread_wqthread + 1536
    frame #2: 0xa7832a6a libsystem_pthread.dylib`start_wqthread + 34
  thread #7
    frame #0: 0xa77056ee libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0xa7832e9b libsystem_pthread.dylib`_pthread_wqthread + 1035
    frame #2: 0xa7832a6a libsystem_pthread.dylib`start_wqthread + 34
  thread #8
    frame #0: 0xa77056ee libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0xa7833090 libsystem_pthread.dylib`_pthread_wqthread + 1536
    frame #2: 0xa7832a6a libsystem_pthread.dylib`start_wqthread + 34
  thread #9, name = 'com.apple.NSEventThread'
    frame #0: 0xa76fb742 libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0xa76fad7f libsystem_kernel.dylib`mach_msg + 47
    frame #2: 0x9394c6f8 CoreFoundation`__CFRunLoopServiceMachPort + 296
    frame #3: 0x9394b6e6 CoreFoundation`__CFRunLoopRun + 2262
    frame #4: 0x9394aae1 CoreFoundation`CFRunLoopRunSpecific + 641
    frame #5: 0x9394a84a CoreFoundation`CFRunLoopRunInMode + 122
    frame #6: 0x914a1614 AppKit`_NSEventThread + 165
    frame #7: 0xa783350d libsystem_pthread.dylib`_pthread_body + 347
    frame #8: 0xa78333b2 libsystem_pthread.dylib`_pthread_start + 357
    frame #9: 0xa7832a8e libsystem_pthread.dylib`thread_start + 34
(lldb) detach
Process 2305 detached
(lldb) quit

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

bash: line 1:  2305 Abort trap: 6           "/Library/Frameworks/Mono.framework/Versions/5.8.1/bin/mono32" --debug --debugger-agent=transport=dt_socket,address=127.0.0.1:49911 "/Users/ben/dev/game_engines/sfml.net/AtSea/AtSea/bin/Debug/AtSea.exe"