{"action":"created","issue":{"url":"https://api.github.com/repos/rlabrecque/Steamworks.NET/issues/27","labels_url":"https://api.github.com/repos/rlabrecque/Steamworks.NET/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/rlabrecque/Steamworks.NET/issues/27/comments","events_url":"https://api.github.com/repos/rlabrecque/Steamworks.NET/issues/27/events","html_url":"https://github.com/rlabrecque/Steamworks.NET/issues/27","id":53180435,"number":27,"title":"[OSX] Standalone Test doesn't run on mono 3.2.7 and higher","user":{"login":"tomrijnbeek","id":828553,"avatar_url":"https://avatars.githubusercontent.com/u/828553?v=3","gravatar_id":"","url":"https://api.github.com/users/tomrijnbeek","html_url":"https://github.com/tomrijnbeek","followers_url":"https://api.github.com/users/tomrijnbeek/followers","following_url":"https://api.github.com/users/tomrijnbeek/following{/other_user}","gists_url":"https://api.github.com/users/tomrijnbeek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrijnbeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrijnbeek/subscriptions","organizations_url":"https://api.github.com/users/tomrijnbeek/orgs","repos_url":"https://api.github.com/users/tomrijnbeek/repos","events_url":"https://api.github.com/users/tomrijnbeek/events{/privacy}","received_events_url":"https://api.github.com/users/tomrijnbeek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-31T11:48:44Z","updated_at":"2015-01-30T19:46:51Z","closed_at":null,"body":"After running into problems with our game on OSX, I have tried running the standalone test on OSX. This also does not work. Something goes wrong in the native library while running the callbacks. The full application output is as follows.\r\n\r\n```\r\nSetting breakpad minidump AppID = 480\r\nSteam_SetMinidumpSteamID:  Caching Steam ID:  76561198005606492 [API loaded no]\r\nCurrentGameLanguage: \r\nPersonaName: Cireon\r\nAppInstallDir: 71 /Users/Tom/Library/Application Support/Steam/steamapps/common/Spacewar\r\nReqesting Current Stats\r\nGetNumberOfCurrentPlayers() - 330780208267574\r\n[304 - PersonaStateChange] - 6331461952 -- k_EPersonaChangeGamePlayed, k_EPersonaChangeGameServer, k_EPersonaChangeLeftSource\r\nStacktrace:\r\n\r\n  at <unknown> <0xffffffff>\r\n  at (wrapper managed-to-native) Steamworks.NativeMethods.SteamAPI_RunCallbacks () <IL 0x00022, 0xffffffff>\r\n  at Steamworks.SteamAPI.RunCallbacks () <IL 0x00005, 0x0002b>\r\n  at SteamworksNET_StandaloneTest.Program.Main (string[]) [0x00125] in /Users/Tom/Projects/SteamStats/SteamStats/Program.cs:46\r\n  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>\r\n\r\nNative stacktrace:\r\n\r\n\r\nDebug info from gdb:\r\n\r\n(lldb) command source -s 0 '/tmp/mono-gdb-commands.TXPbWj'\r\nExecuting commands in '/private/tmp/mono-gdb-commands.TXPbWj'.\r\n(lldb) process attach --pid 1605\r\nProcess 1605 stopped\r\nExecutable module set to \"/Library/Frameworks/Mono.framework/Versions/3.10.0/bin/mono\".\r\nArchitecture set to: i386-apple-macosx.\r\n(lldb) thread list\r\nProcess 1605 stopped\r\n* thread #1: tid = 0x1f725, 0x98eaae1a libsystem_kernel.dylib`__wait4 + 10, name = 'MainThrd', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP\r\n  thread #2: tid = 0x1f727, 0x98ea4a6a libsystem_kernel.dylib`semaphore_wait_trap + 10\r\n  thread #3: tid = 0x1f728, 0x98eab8d2 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'\r\n  thread #4: tid = 0x1f729, 0x98eaa772 libsystem_kernel.dylib`__recvfrom + 10\r\n  thread #5: tid = 0x1f72c, 0x98eab8b6 libsystem_kernel.dylib`kevent + 10, name = 'IOPollingHelperThread'\r\n  thread #6: tid = 0x1f72d, 0x98eaae6e libsystem_kernel.dylib`__workq_kernreturn + 10\r\n  thread #7: tid = 0x1f72e, 0x98eaae6e libsystem_kernel.dylib`__workq_kernreturn + 10\r\n(lldb) thread backtrace all\r\n* thread #1: tid = 0x1f725, 0x98eaae1a libsystem_kernel.dylib`__wait4 + 10, name = 'MainThrd', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP\r\n  * frame #0: 0x98eaae1a libsystem_kernel.dylib`__wait4 + 10\r\n    frame #1: 0x95ce4b25 libsystem_c.dylib`waitpid$UNIX2003 + 48\r\n    frame #2: 0x0015540d mono`mono_handle_native_sigsegv(signal=11, ctx=0x00787fe0) + 541 at mini-exceptions.c:2323\r\n    frame #3: 0x001a595b mono`mono_arch_handle_altstack_exception(sigctx=<unavailable>, fault_addr=<unavailable>, stack_ovf=0) + 155 at exceptions-x86.c:1159\r\n    frame #4: 0x000a658d mono`mono_sigsegv_signal_handler(_dummy=<unavailable>, info=<unavailable>, context=<unavailable>) + 445 at mini.c:6861\r\n    frame #5: 0x94e5503b libsystem_platform.dylib`_sigtramp + 43\r\n\r\n  thread #2: tid = 0x1f727, 0x98ea4a6a libsystem_kernel.dylib`semaphore_wait_trap + 10\r\n    frame #0: 0x98ea4a6a libsystem_kernel.dylib`semaphore_wait_trap + 10\r\n    frame #1: 0x002fbc9a mono`mono_sem_wait(sem=0x00401658, alertable=1) + 26 at mono-semaphore.c:103\r\n    frame #2: 0x00267c3e mono`finalizer_thread(unused=0x00000000) + 142 at gc.c:1077\r\n    frame #3: 0x00244c42 mono`start_wrapper [inlined] start_wrapper_internal + 485 at threads.c:660\r\n    frame #4: 0x00244a5d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:707\r\n    frame #5: 0x00301060 mono`inner_start_thread(arg=<unavailable>) + 240 at mono-threads-posix.c:88\r\n    frame #6: 0x9902becf libsystem_pthread.dylib`_pthread_body + 138\r\n    frame #7: 0x9902be45 libsystem_pthread.dylib`_pthread_start + 162\r\n    frame #8: 0x99029f0e libsystem_pthread.dylib`thread_start + 34\r\n\r\n  thread #3: tid = 0x1f728, 0x98eab8d2 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'\r\n    frame #0: 0x98eab8d2 libsystem_kernel.dylib`kevent64 + 10\r\n    frame #1: 0x9304073f libdispatch.dylib`_dispatch_mgr_invoke + 245\r\n    frame #2: 0x930403a2 libdispatch.dylib`_dispatch_mgr_thread + 52\r\n\r\n  thread #4: tid = 0x1f729, 0x98eaa772 libsystem_kernel.dylib`__recvfrom + 10\r\n    frame #0: 0x98eaa772 libsystem_kernel.dylib`__recvfrom + 10\r\n    frame #1: 0x95ce4d32 libsystem_c.dylib`recv$UNIX2003 + 55\r\n    frame #2: 0x0018d3e8 mono`socket_transport_recv(buf=<unavailable>, len=<unavailable>) + 168 at debugger-agent.c:1131\r\n    frame #3: 0x0017f4a7 mono`debugger_thread [inlined] transport_recv(len=<unavailable>) + 31 at debugger-agent.c:1557\r\n    frame #4: 0x0017f488 mono`debugger_thread(arg=0x00000000) + 1560 at debugger-agent.c:9565\r\n    frame #5: 0x00301060 mono`inner_start_thread(arg=<unavailable>) + 240 at mono-threads-posix.c:88\r\n    frame #6: 0x9902becf libsystem_pthread.dylib`_pthread_body + 138\r\n    frame #7: 0x9902be45 libsystem_pthread.dylib`_pthread_start + 162\r\n    frame #8: 0x99029f0e libsystem_pthread.dylib`thread_start + 34\r\n\r\n  thread #5: tid = 0x1f72c, 0x98eab8b6 libsystem_kernel.dylib`kevent + 10, name = 'IOPollingHelperThread'\r\n    frame #0: 0x98eab8b6 libsystem_kernel.dylib`kevent + 10\r\n    frame #1: 0x01f5127e steamclient.dylib`OSXHelpers::CIOPollingHelper::RealRun() + 286\r\n    frame #2: 0x03020a9d libtier0_s.dylib`CatchAndWriteContext_t::Invoke() + 159\r\n    frame #3: 0x0302049f libtier0_s.dylib`CatchAndWriteMiniDump_Impl(CatchAndWriteContext_t&) + 214\r\n    frame #4: 0x03020586 libtier0_s.dylib`CatchAndWriteMiniDumpExForVoidPtrFn + 87\r\n    frame #5: 0x030205af libtier0_s.dylib`CatchAndWriteMiniDumpForVoidPtrFn + 35\r\n    frame #6: 0x01f5114f steamclient.dylib`OSXHelpers::CIOPollingHelper::Run() + 41\r\n    frame #7: 0x03025030 libtier0_s.dylib`SteamThreadTools::CThread::ThreadExceptionWrapper(void*) + 16\r\n    frame #8: 0x03020a9d libtier0_s.dylib`CatchAndWriteContext_t::Invoke() + 159\r\n    frame #9: 0x0302049f libtier0_s.dylib`CatchAndWriteMiniDump_Impl(CatchAndWriteContext_t&) + 214\r\n    frame #10: 0x03020586 libtier0_s.dylib`CatchAndWriteMiniDumpExForVoidPtrFn + 87\r\n    frame #11: 0x030205af libtier0_s.dylib`CatchAndWriteMiniDumpForVoidPtrFn + 35\r\n    frame #12: 0x03024fa4 libtier0_s.dylib`SteamThreadTools::CThread::ThreadProc(void*) + 238\r\n    frame #13: 0x9902becf libsystem_pthread.dylib`_pthread_body + 138\r\n    frame #14: 0x9902be45 libsystem_pthread.dylib`_pthread_start + 162\r\n    frame #15: 0x99029f0e libsystem_pthread.dylib`thread_start + 34\r\n\r\n  thread #6: tid = 0x1f72d, 0x98eaae6e libsystem_kernel.dylib`__workq_kernreturn + 10\r\n    frame #0: 0x98eaae6e libsystem_kernel.dylib`__workq_kernreturn + 10\r\n    frame #1: 0x9902c36d libsystem_pthread.dylib`_pthread_wqthread + 939\r\n    frame #2: 0x99029eea libsystem_pthread.dylib`start_wqthread + 30\r\n\r\n  thread #7: tid = 0x1f72e, 0x98eaae6e libsystem_kernel.dylib`__workq_kernreturn + 10\r\n    frame #0: 0x98eaae6e libsystem_kernel.dylib`__workq_kernreturn + 10\r\n    frame #1: 0x9902c36d libsystem_pthread.dylib`_pthread_wqthread + 939\r\n    frame #2: 0x99029eea libsystem_pthread.dylib`start_wqthread + 30\r\n(lldb) detach\r\n\r\n=================================================================\r\nGot a SIGSEGV while executing native code. This usually indicates\r\na fatal error in the mono runtime or one of the native libraries \r\nused by your application.\r\n=================================================================\r\n\r\nProcess 1605 detached\r\n(lldb) quit\r\n(lldb) Abort trap: 6\r\n```\r\n\r\nThe code from the StandAlone test was copied into an empty C# Console Project made through Xamarin. The OSX/Linux dll was added as reference and the CSteamworks.bundle, steam_appid.txt and Steamworks.NET.dll.config were added to the build folder.\r\n\r\nOddly enough, Steamworks.NET seems to just run fine through Unity, but my knowledge of Unity is too limited to be aware of the differences that could cause his."},"comment":{"url":"https://api.github.com/repos/rlabrecque/Steamworks.NET/issues/comments/72259115","html_url":"https://github.com/rlabrecque/Steamworks.NET/issues/27#issuecomment-72259115","issue_url":"https://api.github.com/repos/rlabrecque/Steamworks.NET/issues/27","id":72259115,"user":{"login":"mikelaurence","id":26135,"avatar_url":"https://avatars.githubusercontent.com/u/26135?v=3","gravatar_id":"","url":"https://api.github.com/users/mikelaurence","html_url":"https://github.com/mikelaurence","followers_url":"https://api.github.com/users/mikelaurence/followers","following_url":"https://api.github.com/users/mikelaurence/following{/other_user}","gists_url":"https://api.github.com/users/mikelaurence/gists{/gist_id}","starred_url":"https://api.github.com/users/mikelaurence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikelaurence/subscriptions","organizations_url":"https://api.github.com/users/mikelaurence/orgs","repos_url":"https://api.github.com/users/mikelaurence/repos","events_url":"https://api.github.com/users/mikelaurence/events{/privacy}","received_events_url":"https://api.github.com/users/mikelaurence/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T19:46:51Z","updated_at":"2015-01-30T19:46:51Z","body":"I'm encountering possibly the same issue (?) Running in Unity Editor is fine - I am able to initialize Steam and get the current user's name and ID. But if I run a standalone OSX build, it crashes immediately on Steam initialization. Latest Unity & Steamworks.NET versions.\r\n\r\nHave not had the opportunity to try the Windows version yet."}}