gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows mingw64 - loading of certain Gorms broken - NSSearchField ?


From: Fred Kiefer
Subject: Re: Windows mingw64 - loading of certain Gorms broken - NSSearchField ?
Date: Fri, 12 Feb 2021 19:55:23 +0100

Thank you for finding this. I made a mistake when I changed the encoding to use 
our new helper functions. For strange reasons an unsigned int had been used for 
the maximum. Should be fixed now. Hopefully no Gorm file was created in the 
meantime.

Cheers,
Fred

> Am 12.02.2021 um 14:08 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:
> 
> Hi,
> 
> I encounter this when loading one of the Gorms of DataBasin (current git 
> base/gui/back):
> 
> 2021-02-12 14:01:14.869 DataBasin[6284:5016] Exception occurred while loading 
> model: expected long long and got unsigned int
> 2021-02-12 14:01:14.869 DataBasin[6284:5016] Failed to load Gorm
> 2021-02-12 14:01:14.869 DataBasin[6284:5016] Exception occurred while loading 
> model: expected long long and got unsigned int
> 2021-02-12 14:01:14.869 DataBasin[6284:5016] Failed to load Gorm
> Error (objc-load):126
> Error (objc-load):126
> 
> 
> and the loading breaks and no interface is shown
> 
> #0  -[NSException raise] (self=0x50bb6b0, _cmd=0x673463a0 
> <_OBJC_SELECTOR_TABLE+480>) at NSException.m:1588
> #1  0x00000000671308dc in +[NSException raise:format:arguments:] 
> (self=0x67345f40 <_OBJC_Class_NSException>,
>     _cmd=0x67346370 <_OBJC_SELECTOR_TABLE+432>, name=0x67345900 
> <_OBJC_INSTANCE_6>,
>     format=0x673c7f20 <_OBJC_INSTANCE_2.44>, argList=0x22da70 "\302^Pg") at 
> NSException.m:1479
> #2  0x0000000067130827 in +[NSException raise:format:] (self=0x67345f40 
> <_OBJC_Class_NSException>,
>     _cmd=0x673c8ce0 <_OBJC_SELECTOR_TABLE>, name=0x67345900 
> <_OBJC_INSTANCE_6>, format=0x673c7f20 <_OBJC_INSTANCE_2.44>)
>     at NSException.m:1464
> #3  0x000000006722c8da in typeCheck (t1=113 'q', t2=6 '\006') at 
> NSUnarchiver.m:256
> #4  0x000000006722f0fe in -[NSUnarchiver decodeValueOfObjCType:at:] 
> (self=0x51ca820,
>     _cmd=0xadb300 <_OBJC_SELECTOR_TABLE+32>, type=0xbce529 
> <NSMatchingWithoutAnchoringBounds+9> "q", address=0x22dc78)
>     at NSUnarchiver.m:1237
> #5  0x000000000087b891 in decode_NSInteger (coder=0x51ca820, value=0x22dc78) 
> at GSGuiPrivate.h:124
> #6  0x000000000087e0d7 in -[NSSearchFieldCell initWithCoder:] (self=0x4f83aa0,
>     _cmd=0x673c8eb0 <_OBJC_SELECTOR_TABLE+464>, aDecoder=0x51ca820) at 
> NSSearchFieldCell.m:531
> #7  0x000000006722e2e7 in -[NSUnarchiver decodeValueOfObjCType:at:] 
> (self=0x51ca820,
>     _cmd=0xa422c0 <_OBJC_SELECTOR_TABLE+32>, type=0xbbf8a8 
> <NSMatchingWithoutAnchoringBounds+232> "@",
>     address=0x5372f08) at NSUnarchiver.m:929
> #8  0x00000000007a1ac8 in -[NSControl initWithCoder:] (self=0x5372db0, 
> _cmd=0xb10c70 <_OBJC_SELECTOR_TABLE+1712>,
>     aDecoder=0x51ca820) at NSControl.m:1043
> #9  0x00000000008d2aab in -[NSTextField initWithCoder:] (self=0x5372db0, 
> _cmd=0xb739d0 <_OBJC_SELECTOR_TABLE+1136>,
>     aDecoder=0x51ca820) at NSTextField.m:757
> #10 0x000000000097f4ef in -[GSClassSwapper initWithCoder:] (self=0x5233750, 
> _cmd=0xb739d0 <_OBJC_SELECTOR_TABLE+1136>,
>     coder=0x51ca820) at GSGormLoading.m:741
> #11 0x0000000000980273 in -[GSControlTemplate initWithCoder:] (self=0x5233750,
>     _cmd=0x673c8eb0 <_OBJC_SELECTOR_TABLE+464>, coder=0x51ca820) at 
> GSGormLoading.m:1033
> #12 0x000000006722e2e7 in -[NSUnarchiver decodeValueOfObjCType:at:] 
> (self=0x51ca820,
>     _cmd=0x673c8dc0 <_OBJC_SELECTOR_TABLE+224>, type=0x67423729 
> <NSEdgeInsetsZero+265> "@", address=0x5179bd8)
>     at NSUnarchiver.m:929
> #13 0x000000006722d8c1 in -[NSUnarchiver decodeArrayOfObjCType:count:at:] 
> (self=0x51ca820,
>     _cmd=0x672f01a0 <_OBJC_SELECTOR_TABLE+384>, type=0x67423729 
> <NSEdgeInsetsZero+265> "@", expected=6, buf=0x5179bb0)
>     at NSUnarchiver.m:629
> #14 0x0000000067044e41 in -[GSMutableArray initWithCoder:] (self=0x51d59a0, 
> _cmd=0x673c8eb0 <_OBJC_SELECTOR_TABLE+464>,
>     aCoder=0x51ca820) at GSArray.m:551
> #15 0x000000006722e2e7 in -[NSUnarchiver decodeValueOfObjCType:at:] 
> (self=0x51ca820,
>     _cmd=0xb33de0 <_OBJC_SELECTOR_TABLE+1728>, type=0xbd6492 
> <NSMatchingWithoutAnchoringBounds+1714> "@",
>     address=0x22e448) at NSUnarchiver.m:929
> #16 0x000000000091cf57 in -[NSView initWithCoder:] (self=0x51d5630, 
> _cmd=0x673c8eb0 <_OBJC_SELECTOR_TABLE+464>,
>     aDecoder=0x51ca820) at NSView.m:4767
> #17 0x000000006722e2e7 in -[NSUnarchiver decodeValueOfObjCType:at:] 
> (self=0x51ca820,
>     _cmd=0x672f57f0 <_OBJC_SELECTOR_TABLE+304>, type=0x674243a4 
> <NSEdgeInsetsZero+100> "@", address=0x22e648)
>     at NSUnarchiver.m:929
> #18 0x000000006704f2d5 in -[GSDictionary initWithCoder:] (self=0x511dbe0, 
> _cmd=0x673c8eb0 <_OBJC_SELECTOR_TABLE+464>,
> 
> The issue appears to be here:
> 530               [aDecoder decodeValueOfObjCType: @encode(BOOL) at: 
> &_sends_whole_search_string];
> 531               decode_NSInteger(aDecoder, &max);
> 
> 
> a bool - a long long vs unsigned int?
> 
> Riccardo
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]