[Scummvm-tracker] [ScummVM :: Bugs] #15921: MACOS: Crash at start when gif component is disabled
ScummVM :: Bugs
trac at scummvm.org
Tue May 6 23:42:53 UTC 2025
#15921: MACOS: Crash at start when gif component is disabled
-------------------+-----------------------------
Reporter: criezy | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Port: Mac OS X
Version: | Resolution:
Keywords: | Game:
-------------------+-----------------------------
Comment (by criezy):
Likely related to this bug report: https://github.com/libsdl-
org/SDL/issues/9745
This line in my call stack
{{{
[NSCursor(InvisibleCursor) invisibleCursor]+0x64 libSDL2-2.0.0.dylib
}}}
also pointed me to the following code in https://github.com/libsdl-
org/SDL/blob/SDL2/src/video/cocoa/SDL_cocoamouse.m
{{{
@implementation NSCursor (InvisibleCursor)
+ (NSCursor *)invisibleCursor
{
static NSCursor *invisibleCursor = NULL;
if (!invisibleCursor) {
/* RAW 16x16 transparent GIF */
static unsigned char cursorBytes[] = {
0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x10, 0x00, 0x10, 0x00,
0x80,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0xF9,
0x04,
0x01, 0x00, 0x00, 0x01, 0x00, 0x2C, 0x00, 0x00, 0x00, 0x00,
0x10,
0x00, 0x10, 0x00, 0x00, 0x02, 0x0E, 0x8C, 0x8F, 0xA9, 0xCB,
0xED,
0x0F, 0xA3, 0x9C, 0xB4, 0xDA, 0x8B, 0xB3, 0x3E, 0x05, 0x00,
0x3B
};
NSData *cursorData = [NSData dataWithBytesNoCopy:&cursorBytes[0]
length:sizeof(cursorBytes)
freeWhenDone:NO];
NSImage *cursorImage = [[NSImage alloc] initWithData:cursorData];
invisibleCursor = [[NSCursor alloc] initWithImage:cursorImage
hotSpot:NSZeroPoint];
}
}}}
and may explain how this relates to linking with the gif library or not.
--
Ticket URL: <https://bugs.scummvm.org/ticket/15921#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list