• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Mac OSX YoYo Runner quit unexpectedly

b-wb

Member
Hey all

Interesting new issue today and last night

For the first time, I'm seeing my game close without a GMS error window to read from-- instead, it's shutting down entirely and Mac is giving me a crash report instead.

Here's what my crash report looks like:


Code:
Process:               Mac_Runner [1980]
Path:                  /Users/Shared/*/YoYo Runner.app/Contents/MacOS/Mac_Runner
Identifier:            com.yoyogames.macyoyorunner
Version:               2.3.401 (2.3.401)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Mac_Runner [1980]
User ID:               501

Date/Time:             2020-10-13 17:47:13.261 -0700
OS Version:            Mac OS X 10.15.7 (19H2)
Report Version:        12
Anonymous UUID:        A78D7322-3280-50A4-F213-9E008281B11E


Time Awake Since Boot: 11000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000098
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [1980]

VM Regions Near 0x98:
-->
    __TEXT                 000000010ddf6000-000000010e4c5000 [ 6972K] r-x/r-x SM=COW  /Users/Shared/*/YoYo Runner.app/Contents/MacOS/Mac_Runner

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.yoyogames.macyoyorunner       0x000000010df1c2af CInstance::SetImageIndexExt(float) + 159
1   com.yoyogames.macyoyorunner       0x000000010dfc49dc SV_ImageIndex(CInstance*, int, RValue*) + 44
2   com.yoyogames.macyoyorunner       0x000000010de29e3b DoPop(unsigned int, unsigned char*, unsigned char const*, VMExec*) + 3083
3   com.yoyogames.macyoyorunner       0x000000010de32b1b VM::ExecRelease(VMExec&, RValue*) + 251
4   com.yoyogames.macyoyorunner       0x000000010de329de VM::Exec(CCode*, YYObjectBase*, YYObjectBase*, RValue*, YYObjectBase*, int, RValue*, int, YYObjectBase*) + 2110
5   com.yoyogames.macyoyorunner       0x000000010de1234a ExecuteIt(CInstance*, CInstance*, CCode*, RValue*, int) + 250
6   com.yoyogames.macyoyorunner       0x000000010de12489 Code_Execute(CInstance*, CInstance*, CCode*, RValue*, int) + 9
The report actually goes on and on beyond that-- but I thought the first bit might be enough to work with-- I've saved a full crash report from last night as well and many of the details are the same.

I've done some googling and it looks like I can learn some things from this:

A: The crash happened because of bad memory access-- possibly reaching for an invalid address
B: The last thing that happened before the crash was something called "CInstance::SetImageIndexExt(float) + 159"

I think that this means my game is crashing due to an attempt to pull a sprite from somewhere it's not? I have no idea how I could have caused this. The bug started happening after introducing a new enemy type-- but at the same time as that I also introduced a new weapon that that enemy uses.

I assumed, before looking more closely, that the weapon was the issue because it had more experimental code in it, but no instances of said weapon were spawned when I got the bug again today and looked closer, finding this image thing. Now I don't think I've written any new code for accessing/choosing sprites, not that I can recall, so is it possible that the sprite's file is somehow corrupted?

EDIT: Even if I run it without the new enemy's sprite, the issue persists. It probably isn't related to the sprite itself. While I first ran into the issue after introducing this new enemy, I did do a lot of coding yesterday and a lot of it in my GUI renderer object. Now I am starting to think the problem is over there, so maybe I'll comment out all of the new stuff and see if that helps?

Going to keep looking into this but if anybody has any ideas/can shed some light on this, it would be much appreciated!

Bayd
 
Last edited:

b-wb

Member
Two years later, different game project, I got the issue again! This time I recently added a placeholder sprite which was saved in my downloads folder rather than with the other sprites, because it's only a placeholder. Nothing in the game calls on that sprite to be used though.

I'm on MacOS Big Sur, and using GMS2's IDE version v2022.9.1.51, Runtime v2022.9.1.66

So weird! Anyone know what this is about? Here's the full crash report:



Code:
Process:               Mac_Runner [73869]

Path:                  /Users/Shared/*/YoYo Runner.app/Contents/MacOS/Mac_Runner

Identifier:            com.yoyogames.macyoyorunner

Version:               ..0 (..0)

Code Type:             X86-64 (Native)

Parent Process:        ??? [1]

Responsible:           Mac_Runner [73869]

User ID:               501


Date/Time:             2022-11-24 15:58:33.204 -0800

OS Version:            macOS 11.6.1 (20G221)

Report Version:        12

Anonymous UUID:        A78D7322-3280-50A4-F213-9E008281B11E


Sleep/Wake UUID:       C0CE5501-F665-4114-883D-81F71EB32A7C


Time Awake Since Boot: 2000000 seconds

Time Since Wake:       100000 seconds


System Integrity Protection: enabled


Crashed Thread:        0  Dispatch queue: com.apple.main-thread


Exception Type:        EXC_BAD_ACCESS (SIGSEGV)

Exception Codes:       KERN_INVALID_ADDRESS at 0x00007fa05af09f2c

Exception Note:        EXC_CORPSE_NOTIFY


Termination Signal:    Segmentation fault: 11

Termination Reason:    Namespace SIGNAL, Code 0xb

Terminating Process:   exc handler [73869]


VM Regions Near 0x7fa05af09f2c:

    MALLOC_MEDIUM (reserved) 7fa020800000-7fa028000000 [120.0M] rw-/rwx SM=NUL  reserved VM address space (unallocated)

-->

    STACK GUARD              7ffedfe93000-7ffee3693000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread

0   com.yoyogames.macyoyorunner       0x000000010beba8e4 CSprite::OrigPreciseCollision(int, tagYYRECT*, float, float, float, float, float, CSprite*, int, tagYYRECT*, float, float, float, float, float) + 1460

1   com.yoyogames.macyoyorunner       0x000000010be6703c CInstance::Collision_Instance(CInstance*, bool) + 940

2   com.yoyogames.macyoyorunner       0x000000010be9be21 collisionResultInstancePlace(CInstance*, void*) + 81

3   com.yoyogames.macyoyorunner       0x000000010bdd7f61 RTree<CInstance*, float, float, 6, 2>::Search(RTree<CInstance*, float, float, 6, 2>::Node*, RTree<CInstance*, float, float, 6, 2>::Rect*, int&, bool (*)(CInstance*, void*), void*) + 321

4   com.yoyogames.macyoyorunner       0x000000010bdd7ed9 RTree<CInstance*, float, float, 6, 2>::Search(RTree<CInstance*, float, float, 6, 2>::Node*, RTree<CInstance*, float, float, 6, 2>::Rect*, int&, bool (*)(CInstance*, void*), void*) + 185

5   com.yoyogames.macyoyorunner       0x000000010be9bb13 Command_InstancePlace(CInstance*, float, float, int, CDS_List*) + 339

6   com.yoyogames.macyoyorunner       0x000000010be9c4a3 Command_IsMeeting(CInstance*, int, float, float) + 19

7   com.yoyogames.macyoyorunner       0x000000010bdd1d3a F_PlaceMeeting(RValue&, CInstance*, CInstance*, int, RValue*) + 138

8   com.yoyogames.macyoyorunner       0x000000010bda0379 DoCallLibrary(unsigned int, unsigned char*, unsigned char const*, VMExec*) + 281

9   com.yoyogames.macyoyorunner       0x000000010bda3ab9 VM::ExecRelease(VMExec&, RValue*) + 569

10  com.yoyogames.macyoyorunner       0x000000010bda383e VM::Exec(CCode*, YYObjectBase*, YYObjectBase*, RValue*, YYObjectBase*, int, RValue*, int, YYObjectBase*) + 1710

11  com.yoyogames.macyoyorunner       0x000000010bd86101 ExecuteIt(CInstance*, CInstance*, CCode*, RValue*, int) + 273

12  com.yoyogames.macyoyorunner       0x000000010bd86159 Code_Execute(CInstance*, CInstance*, CCode*, RValue*, int) + 9

13  com.yoyogames.macyoyorunner       0x000000010bdad7f4 CEvent::Execute(CInstance*, CInstance*) + 52

14  com.yoyogames.macyoyorunner       0x000000010bdada37 Perform_Event_Object_ASync(CInstance*, CInstance*, int, int, int) + 215

15  com.yoyogames.macyoyorunner       0x000000010bdadbdd Perform_Event(CInstance*, CInstance*, int, int) + 173

16  com.yoyogames.macyoyorunner       0x000000010bea9f06 HandleStep(int) + 278

17  com.yoyogames.macyoyorunner       0x000000010beb1f7a DoAStep_Update() + 506

18  com.yoyogames.macyoyorunner       0x000000010beb23c4 DoAStep() + 148

19  com.yoyogames.macyoyorunner       0x000000010beb2aaf MainLoop_Process() + 1151

20  com.yoyogames.macyoyorunner       0x000000010bd74438 -[Mac_RunnerAppDelegate performGameStep] + 2008

21  com.yoyogames.macyoyorunner       0x000000010bd74b12 -[Mac_RunnerAppDelegate timerFunc:] + 98

22  com.apple.Foundation              0x00007fff21383e0f __NSFireTimer + 67

23  com.apple.CoreFoundation          0x00007fff205cbbe9 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20

24  com.apple.CoreFoundation          0x00007fff205cb6dd __CFRunLoopDoTimer + 927

25  com.apple.CoreFoundation          0x00007fff205cb23a __CFRunLoopDoTimers + 307

26  com.apple.CoreFoundation          0x00007fff205b1e13 __CFRunLoopRun + 1988

27  com.apple.CoreFoundation          0x00007fff205b0f8c CFRunLoopRunSpecific + 563

28  com.apple.HIToolbox               0x00007fff287f8a83 RunCurrentEventLoopInMode + 292

29  com.apple.HIToolbox               0x00007fff287f87e5 ReceiveNextEventCommon + 587

30  com.apple.HIToolbox               0x00007fff287f8583 _BlockUntilNextEventMatchingListInModeWithFilter + 70

31  com.apple.AppKit                  0x00007fff22dba172 _DPSNextEvent + 864

32  com.apple.AppKit                  0x00007fff22db8945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364

33  com.apple.AppKit                  0x00007fff22daac69 -[NSApplication run] + 586

34  com.apple.AppKit                  0x00007fff22d7ee6c NSApplicationMain + 816

35  com.yoyogames.macyoyorunner       0x000000010bd718cd main + 317

36  libdyld.dylib                     0x00007fff204d6f3d start + 1


Thread 1:: CVDisplayLink

0   libsystem_kernel.dylib            0x00007fff20488cde __psynch_cvwait + 10

1   libsystem_pthread.dylib           0x00007fff204bbe7f _pthread_cond_wait + 1352

2   com.apple.CoreVideo               0x00007fff2740cfe3 CVDisplayLink::waitUntil(unsigned long long) + 229

3   com.apple.CoreVideo               0x00007fff2740c4ec CVDisplayLink::runIOThread() + 482

4   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

5   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 2:: com.apple.NSEventThread

0   libsystem_kernel.dylib            0x00007fff204862ba mach_msg_trap + 10

1   libsystem_kernel.dylib            0x00007fff2048662c mach_msg + 60

2   com.apple.CoreFoundation          0x00007fff205b349f __CFRunLoopServiceMachPort + 316

3   com.apple.CoreFoundation          0x00007fff205b1b7f __CFRunLoopRun + 1328

4   com.apple.CoreFoundation          0x00007fff205b0f8c CFRunLoopRunSpecific + 563

5   com.apple.AppKit                  0x00007fff22f4023a _NSEventThread + 124

6   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

7   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 3:

0   libsystem_kernel.dylib            0x00007fff20488bb2 __semwait_signal + 10

1   libsystem_c.dylib                 0x00007fff20408c1a nanosleep + 196

2   libsystem_c.dylib                 0x00007fff20408b14 usleep + 53

3   com.yoyogames.macyoyorunner       0x000000010bf29ee6 JobWorkerThreadFunc(CThread*) + 86

4   com.yoyogames.macyoyorunner       0x000000010c0ca1ac thread_func_wrapper(void*) + 12

5   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

6   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 4:

0   libsystem_kernel.dylib            0x00007fff20488bb2 __semwait_signal + 10

1   libsystem_c.dylib                 0x00007fff20408c1a nanosleep + 196

2   libsystem_c.dylib                 0x00007fff20408b14 usleep + 53

3   com.yoyogames.macyoyorunner       0x000000010bf29ee6 JobWorkerThreadFunc(CThread*) + 86

4   com.yoyogames.macyoyorunner       0x000000010c0ca1ac thread_func_wrapper(void*) + 12

5   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

6   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 5:

0   libsystem_kernel.dylib            0x00007fff20488bb2 __semwait_signal + 10

1   libsystem_c.dylib                 0x00007fff20408c1a nanosleep + 196

2   libsystem_c.dylib                 0x00007fff20408b14 usleep + 53

3   com.yoyogames.macyoyorunner       0x000000010bf29ee6 JobWorkerThreadFunc(CThread*) + 86

4   com.yoyogames.macyoyorunner       0x000000010c0ca1ac thread_func_wrapper(void*) + 12

5   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

6   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 6:

0   libsystem_kernel.dylib            0x00007fff20488bb2 __semwait_signal + 10

1   libsystem_c.dylib                 0x00007fff20408c1a nanosleep + 196

2   libsystem_c.dylib                 0x00007fff20408b14 usleep + 53

3   com.yoyogames.macyoyorunner       0x000000010bf29ee6 JobWorkerThreadFunc(CThread*) + 86

4   com.yoyogames.macyoyorunner       0x000000010c0ca1ac thread_func_wrapper(void*) + 12

5   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

6   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 7:

0   libsystem_kernel.dylib            0x00007fff20488bb2 __semwait_signal + 10

1   libsystem_c.dylib                 0x00007fff20408c1a nanosleep + 196

2   libsystem_c.dylib                 0x00007fff20408b14 usleep + 53

3   com.yoyogames.macyoyorunner       0x000000010bd8c26d GCThreadFunc(CThread*) + 93

4   com.yoyogames.macyoyorunner       0x000000010c0ca1ac thread_func_wrapper(void*) + 12

5   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

6   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 8:: AMCP Logging Spool

0   libsystem_kernel.dylib            0x00007fff204862f6 semaphore_wait_trap + 10

1   com.apple.audio.caulk             0x00007fff285788da caulk::mach::semaphore::wait_or_error() + 16

2   com.apple.audio.caulk             0x00007fff28565836 caulk::semaphore::timed_wait(double) + 110

3   com.apple.audio.caulk             0x00007fff28565784 caulk::concurrent::details::worker_thread::run() + 30

4   com.apple.audio.caulk             0x00007fff28565502 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 45

5   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

6   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 9:: com.apple.audio.IOThread.client

0   libsystem_kernel.dylib            0x00007fff204862ba mach_msg_trap + 10

1   libsystem_kernel.dylib            0x00007fff2048662c mach_msg + 60

2   com.apple.audio.CoreAudio         0x00007fff21f93335 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 111

3   com.apple.audio.CoreAudio         0x00007fff21e35e2d invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 3367

4   com.apple.audio.CoreAudio         0x00007fff21fd1b04 HALB_IOThread::Entry(void*) + 72

5   libsystem_pthread.dylib           0x00007fff204bb8fc _pthread_start + 224

6   libsystem_pthread.dylib           0x00007fff204b7443 thread_start + 15


Thread 10:

0   libsystem_pthread.dylib           0x00007fff204b7420 start_wqthread + 0


Thread 0 crashed with X86 Thread State (64-bit):

  rax: 0x00000000000001c3  rbx: 0x0000000000000000  rcx: 0x00000000000001a3  rdx: 0x0000000080000000

  rdi: 0x00007f9feaf09f2c  rsi: 0x0000000070000000  rbp: 0x00007ffee3e8f110  rsp: 0x00007ffee3e8f010

   r8: 0x0000000000000180   r9: 0x00007fa02035491c  r10: 0x0000000000000003  r11: 0x0000000000000000

  r12: 0x00007f9ff0158900  r13: 0x00000000000001a2  r14: 0x00007f9ff015a400  r15: 0x00007fa02035491c

  rip: 0x000000010beba8e4  rfl: 0x0000000000010a07  cr2: 0x00007fa05af09f2c

 

Logical CPU:     1

Error Code:      0x00000004 (no mapping for user data read)

Trap Number:     14


Thread 0 instruction stream:

  f3 0f 58 e1 f3 0f 59 e3-f3 0f 58 e2 44 0f 2e e4  ..X...Y...X.D...

  77 ca 41 0f 2e e2 73 c4-f3 41 0f 59 ff f3 41 0f  w.A...s..A.Y..A.

  5c fe f3 0f 59 7d b8 f3-41 0f 58 f9 44 0f 2e e7  \...Y}..A.X.D...

  77 aa 0f 57 db f3 41 0f-2a 9c 24 a0 00 00 00 0f  w..W..A.*.$.....

  2e fb f3 0f 10 5d c8 73-93 f3 0f 2c d4 f3 0f 2c  .....].s...,...,

  f7 89 d7 c1 ff 03 0f af-75 c4 01 fe 48 8b 7d a8  ........u...H.}.

[0f]b6 34 37 f6 d2 80 e2-07 0f b6 d2 0f a3 d6 0f  ..47............    <==

  83 67 ff ff ff f3 44 0f-5c 45 80 0f 28 9d 60 ff  .g....D.\E..(.`.

  ff ff f3 41 0f 59 d8 f3-0f 58 d8 0f 57 e4 f3 41  ...A.Y...X..W..A

  0f 2a a6 a4 00 00 00 f3-0f 59 5d d0 f3 0f 58 e3  .*.......Y]...X.

  f3 0f 10 5d c8 44 0f 2e-e4 0f 87 2d ff ff ff 0f  ...].D.....-....

  2e 65 a0 0f 83 23 ff ff-ff f3 44 0f 59 85 30 ff  .e...#....D.Y.0.

 

Thread 0 last branch register state not available.



Did not include the full error report once again because it makes the message over 50,000 characters, which the forum doesn't like!
 
Top