B4J Question Having an error JUST on MAC...

Gary Miyakawa

Active Member
Licensed User
Longtime User
Folks,

I JUST started getting this error when I go to Display a second layout in the program. The second layout is VERY basic with mostly a ListView box where all my trace/debug information ends up.

If I'm on Windows, everything works as expected. When I try it from from the bridge or loading the .jar file on the MacBook I get the following error:

Waiting for debugger to connect...
Program started.
mac os x
/Users/garymiyakawa/vdo360Remote/
23:46:13: - Move Speed set to: 15
2018-07-23 23:46:29.433 java[4025:37463] -[__NSCFCharacterSet bitmapData]: unrecognized selector sent to instance 0x7febcd1bc670
2018-07-23 23:46:29.437 java[4025:37463] An uncaught exception was raised
2018-07-23 23:46:29.438 java[4025:37463] -[__NSCFCharacterSet bitmapData]: unrecognized selector sent to instance 0x7febcd1bc670
2018-07-23 23:46:29.438 java[4025:37463] (
0 CoreFoundation 0x00007fff883e903c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff88b0c76e objc_exception_throw + 43
2 CoreFoundation 0x00007fff883ec0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff88331d44 ___forwarding___ + 1028
4 CoreFoundation 0x00007fff883318b8 _CF_forwarding_prep_0 + 120
5 AppKit 0x00007fff84aad4c1 CopyPixels + 58
6 AppKit 0x00007fff84aac225 _NSReadThemePatternFromRsrc + 724
7 AppKit 0x00007fff84aabc1e _NSReadThemeImageFromplutEntry + 252
8 AppKit 0x00007fff84aab9fd GetThemeImage + 342
9 AppKit 0x00007fff84aab834 +[NSColor _controlColor] + 44
10 AppKit 0x00007fff84aab79f -[NSDynamicSystemColor r
ecacheColor] + 197
11 AppKit 0x00007fff84aab5d0 -[NSDynamicSystemColor initWithSelector:] + 89
12 AppKit 0x00007fff84ae3050 +[NSColor windowBackgroundColor] + 80
13 AppKit 0x00007fff84b70056 -[NSThemeFrame contentFill] + 471
14 libglass.dylib 0x00000001227c9f7d -[GlassView3D viewDidMoveToWindow] + 93
15 AppKit 0x00007fff84abdc05 -[NSView _setWindow:] + 3368
16 CoreFoundation 0x00007fff88308525 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 133
17 CoreFoundation 0x00007fff88307c29 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 313
18 AppKit 0x00007fff85241454 __21-[NSView _setWindow:]_block_invoke735 + 169
19 AppKit 0x00007fff84abdb54 -[NSView _setWindow:] + 3191
20 AppKit 0x00007fff84ac8d93 -[N
SView addSubview:] + 463
21 AppKit 0x00007fff84acc6b1 -[NSFrameView addSubview:] + 45
22 AppKit 0x00007fff84b00db4 -[NSThemeFrame _addKnownSubview:] + 60
23 AppKit 0x00007fff84af4432 -[NSWindow setContentView:] + 640
24 libglass.dylib 0x00000001227d506c Java_com_sun_glass_ui_mac_MacWindow__1setView + 1420
25 ??? 0x0000000108ad6087 0x0 + 4440547463
26 ??? 0x0000000108ac77d0 0x0 + 4440487888
27 ??? 0x0000000108ac7ffd 0x0 + 4440489981
28 ??? 0x0000000108ac7d80 0x0 + 4440489344
29 ??? 0x0000000108ac7e54 0x0 + 4440489556
)
2018-07-23 23:46:29.439 java[4025:37463] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFCharacterSet bitmapData]: unrecognized selector sent to instance 0x7febcd1bc670'

I'm open to suggestions of where to look.

Thanks,

Gary Miyakawa
 

Gary Miyakawa

Active Member
Licensed User
Longtime User
It's actually on the "show".

B4X:
Sub AppStart (Form1 As Form, Args() As String)
    DebugForm.Initialize("debugform",480,640)
    DebugForm.RootPane.LoadLayout("DebugForm")
    DebugForm.show


And this is what the Form looks like:

B4j_VD.png


B4j_VD1.png



I'm going to skinny down the program and upload it in a bit.

Thanks!

Gary Miyakawa
 
Upvote 0

Gary Miyakawa

Active Member
Licensed User
Longtime User
[SOLVED]

Debugging 101.... Reboot EVERYTHING (both windows and Mac) and test again...

Sure enough, that resolved it.

(BTW, just restarting the bridge (b4j-bridge.jar) was NOT enough to clear it so it was something inside of the MAC that was unhappy. I even tried running it directly from the .jar file and it still failed.)

Sorry !! But hope this helps someone in the future !

Cheers,

Gary Miyakawa
 
Last edited:
Upvote 0
Top