* * *

Author Topic: [TCocoaMenuItem _setMenuOwner:]: unrecognized selector sent to instance  (Read 125 times)

Renat.Su

  • New member
  • *
  • Posts: 49
    • Renat.Su
Can anyone hint me? I tried to run the cross-compiled app in MacOS x. x86_64 / widget - Cocoa. Do I understand correctly that the problem seems to be because of TrayIcon or Main menu? Everything is fine on other platforms
Code: [Select]
2018-04-16 16:08:24.378 foxwhois[4505:271601] -[TCocoaMenuItem _setMenuOwner:]: unrecognized selector sent to instance 0x100d8b640

2018-04-16 16:08:24.390 foxwhois[4505:271601] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TCocoaMenuItem _setMenuOwner:]: unrecognized selector sent to instance 0x100d8b640'

*** First throw call stack:

(

0   CoreFoundation                      0x00007fff3a21bfcb __exceptionPreprocess + 171

1   libobjc.A.dylib                     0x00007fff60eb9c76 objc_exception_throw + 48

2   CoreFoundation                      0x00007fff3a2b4a24 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132

3   CoreFoundation                      0x00007fff3a192610 ___forwarding___ + 1456

4   CoreFoundation                      0x00007fff3a191fd8 _CF_forwarding_prep_0 + 120

5   AppKit                              0x00007fff37eff98c -[NSStatusItem setMenu:] + 101

6   foxwhois                            0x00000001001f56ad -[TCocoaStatusItemHandle lclSetTrayIcon:] + 237

7   foxwhois                            0x00000001001f5882 COCOAWSEXTCTRLS$_$TCOCOAWSCUSTOMTRAYICON_$__$$_INTERNALUPDATE$TCUSTOMTRAYICON + 66

8   foxwhois                            0x000000010018c609 EXTCTRLS$_$TCUSTOMTRAYICON_$__$$_ICONCHANGED$TOBJECT + 57

9   foxwhois                            0x00000001000d6bcf GRAPHICS$_$TGRAPHIC_$__$$_CHANGED$TOBJECT + 55

10  foxwhois                            0x00000001000daeef GRAPHICS$_$TRASTERIMAGE_$__$$_CHANGED$TOBJECT + 63

11  foxwhois                            0x00000001000daa82 GRAPHICS$_$TRASTERIMAGE_$__$$_ENDUPDATE$BOOLEAN + 194

12  foxwhois                            0x00000001000e7bcf GRAPHICS$_$TCUSTOMICON_$__$$_ASSIGN$TPERSISTENT + 375

13  foxwhois                            0x000000010018c885 EXTCTRLS$_$TCUSTOMTRAYICON_$__$$_SETICON$TICON + 69

14  foxwhois                            0x000000010003598d MNFRM$_$TFRMMAIN_$__$$_FORMSHOW$TOBJECT + 685

15  foxwhois                            0x000000010001bff4 FORMS$_$TCUSTOMFORM_$__$$_CMSHOWINGCHANGED$TLMESSAGE + 84

16  foxwhois                            0x000000010000c753 SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal + 203

17  foxwhois                            0x0000000100166a8e CONTROLS$_$TWINCONTROL_$__$$_WNDPROC$TLMESSAGE + 806

18  foxwhois                            0x000000010001df1e FORMS$_$TCUSTOMFORM_$__$$_WNDPROC$TLMESSAGE + 622

19  foxwhois                            0x0000000100171126 CONTROLS$_$TCONTROL_$__$$_PERFORM$LONGWORD$WPARAM$LPARAM$$LRESULT + 86

20  foxwhois                            0x0000000100164998 CONTROLS$_$TWINCONTROL_$_UPDATESHOWING_$$_CHANGESHOWING$BOOLEAN + 184

21  foxwhois                            0x00000001001648d3 CONTROLS$_$TWINCONTROL_$__$$_UPDATESHOWING + 307

22  foxwhois                            0x0000000100021036 FORMS$_$TCUSTOMFORM_$__$$_UPDATESHOWING + 142

23  foxwhois                            0x0000000100162ee7 CONTROLS$_$TWINCONTROL_$__$$_DOALLAUTOSIZE + 647

24  foxwhois                            0x000000010017a881 CONTROLS$_$TCONTROL_$__$$_ENABLEAUTOSIZING + 313

25  foxwhois                            0x0000000100177fca CONTROLS$_$TCONTROL_$__$$_SETVISIBLE$BOOLEAN + 418

26  foxwhois                            0x000000010001baa1 FORMS$_$TCUSTOMFORM_$__$$_SETVISIBLE$BOOLEAN + 113

27  foxwhois                            0x0000000100020580 FORMS$_$TCUSTOMFORM_$__$$_SHOW + 232

28  foxwhois                            0x0000000100028568 FORMS$_$TAPPLICATION_$__$$_RUN + 56

29  foxwhois                            0x00000001000011f1 PASCALMAIN + 401

)

libc++abi.dylib: terminating with uncaught exception of type NSException

Abort trap: 6

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.
« Last Edit: April 16, 2018, 05:37:58 pm by Renat.Su »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1900
apparently the private API _setMenuOwner was removed from macOS.

What's your version?

Renat.Su

  • New member
  • *
  • Posts: 49
    • Renat.Su
Lazarus 1.8.2 r57578M FPC 3.0.4 x86_64-linux-gtk2

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1900
Sorry, what macOS version?

Renat.Su

  • New member
  • *
  • Posts: 49
    • Renat.Su
User said that
Quote
MacOS High Sierra 10.13.3
64 бит
« Last Edit: April 16, 2018, 08:28:15 pm by Renat.Su »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus