Col-E / Col-E/Recaf

Crash when running JAR through console on macOS

Open
#636 11 comments 1 reaction 0 assignees View on GitHub
3rd party problem JavaFX platform-specific-bug
Dominant language
Java
Stars
7.4k
Forks
538
PR merge metrics
No merged PRs in 30d

Description

**Description**

Recaf crashes when trying to run the JAR through the command line.

Some system information:
- OpenJDK 19 installed through Homebrew
- 14-inch 2021 MacBook Pro
- macOS 13.2

Please let me know if you'd like me to provide any other information.

**To Reproduce**

Steps to reproduce the behavior:
1. Download `recaf-2.21.13-J8-jar-with-dependencies.jar`.
2. Run `java -jar recaf-2.21.13-J8-jar-with-dependencies.jar`.

**Console Output**

```
~/Desktop
❯ rm -rf ~/Library/Preferences/Recaf
~/Desktop
❯ java --version
openjdk 19.0.2 2023-01-17
OpenJDK Runtime Environment Homebrew (build 19.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 19.0.2, mixed mode, sharing)
~/Desktop
❯ java -jar recaf-2.21.13-J8-jar-with-dependencies.jar
00:14:07.262 [main] INFO : Recaf-2.21.13
00:14:07.263 [main] INFO : - Java: 19.0.2 (OpenJDK 64-Bit Server VM)
Feb 25, 2023 12:14:07 AM com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @5db54e92'
2023-02-25 00:14:08.458 java[1287:17121] *** Assertion failure in -[_NSTrackingAreaAKViewHelper removeTrackingRect:], _NSTrackingAreaAKManager.m:1613
2023-02-25 00:14:08.460 java[1287:17121] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '0x0 is an invalid NSTrackingRectTag. Common possible reasons for this are: 1. already removed this trackingRectTag, 2. Truncated the NSTrackingRectTag to 32bit at some point.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000180fd43e8 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000180b1eea8 objc_exception_throw + 60
2 Foundation 0x0000000181f17910 -[NSCalendarDate initWithCoder:] + 0
3 AppKit 0x00000001847930cc -[_NSTrackingAreaAKViewHelper removeTrackingRect:] + 200
4 libglass.dylib 0x000000010e8b6edc -[GlassViewDelegate setFrameSize:] + 360
5 libglass.dylib 0x000000010e8bc034 -[GlassView3D setFrameSize:] + 92
6 AppKit 0x0000000184217664 -[NSView setFrame:] + 304
7 libglass.dylib 0x000000010e8bc094 -[GlassView3D setFrame:] + 76
8 AppKit 0x00000001842255d8 -[NSView resizeWithOldSuperviewSize:] + 508
9 AppKit 0x0000000184224fc8 -[NSView resizeSubviewsWithOldSize:] + 360
10 AppKit 0x000000018420954c -[NSView setFrameSize:] + 1136
11 AppKit 0x0000000184217664 -[NSView setFrame:] + 304
12 AppKit 0x00000001842255d8 -[NSView resizeWithOldSuperviewSize:] + 508
13 AppKit 0x0000000184224fc8 -[NSView resizeSubviewsWithOldSize:] + 360
14 AppKit 0x000000018420954c -[NSView setFrameSize:] + 1136
15 AppKit 0x0000000184223c34 -[NSThemeFrame setFrameSize:] + 244
16 AppKit 0x000000018422357c -[NSWindow _oldPlaceWindow:fromServer:] + 540
17 AppKit 0x0000000184222680 -[NSWindow _setFrameCommon:display:fromServer:] + 1824
18 libglass.dylib 0x000000010e8ade64 -[GlassWindow(Java) _setBounds:y:xSet:ySet:w:h:cw:ch:] + 328
19 libglass.dylib 0x000000010e8c7050 Java_com_sun_glass_ui_mac_MacWindow__1setBounds2 + 416
20 ??? 0x0000000137548aac 0x0 + 5223254700
21 ??? 0x0000000137545548 0x0 + 5223241032
22 ??? 0x0000000137545548 0x0 + 5223241032
23 ??? 0x0000000137545548 0x0 + 5223241032
24 ??? 0x0000000137545a88 0x0 + 5223242376
25 ??? 0x0000000137545548 0x0 + 5223241032
26 ??? 0x0000000137545548 0x0 + 5223241032
27 ??? 0x0000000137545548 0x0 + 5223241032
28 ??? 0x0000000137545548 0x0 + 5223241032
29 ??? 0x0000000137545548 0x0 + 5223241032
30 ??? 0x0000000137545548 0x0 + 5223241032
31 ??? 0x0000000137545548 0x0 + 5223241032
32 ??? 0x0000000137545548 0x0 + 5223241032
33 ??? 0x0000000137545548 0x0 + 5223241032
34 ??? 0x0000000137545548 0x0 + 5223241032
35 ??? 0x0000000137545548 0x0 + 5223241032
36 ??? 0x0000000137545a88 0x0 + 5223242376
37 ??? 0x0000000137545300 0x0 + 5223240448
38 ??? 0x000000013041ed64 0x0 + 5104594276
39 ??? 0x0000000137545300 0x0 + 5223240448
40 ??? 0x0000000137545548 0x0 + 5223241032
41 ??? 0x0000000137545a88 0x0 + 5223242376
42 ??? 0x0000000137534140 0x0 + 5223170368
43 libjvm.dylib 0x00000001037a1df4 _ZN9JavaCalls11call_helperEP9JavaValueRK12methodHandleP17JavaCallArgumentsP10JavaThread + 564
44 libjvm.dylib 0x00000001037f789c _ZL20jni_invoke_nonstaticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP10JavaThread + 536
45 libjvm.dylib 0x00000001037fb3c4 jni_CallVoidMethod + 224
46 libglass.dylib 0x000000010e8b2828 -[GlassRunnable run] + 92
47 Foundation 0x0000000181e7f900 __NSThreadPerformPerform + 264
48 CoreFoundation 0x0000000180f59a08 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
49 CoreFoundation 0x0000000180f5999c __CFRunLoopDoSource0 + 176
50 CoreFoundation 0x0000000180f5970c __CFRunLoopDoSources0 + 244
51 CoreFoundation 0x0000000180f58310 __CFRunLoopRun + 836
52 CoreFoundation 0x0000000180f57878 CFRunLoopRunSpecific + 612
53 HIToolbox 0x000000018a637fa0 RunCurrentEventLoopInMode + 292
54 HIToolbox 0x000000018a637c30 ReceiveNextEventCommon + 236
55 HIToolbox 0x000000018a637b2c _BlockUntilNextEventMatchingListInModeWithFilter + 72
56 AppKit 0x00000001841dd838 _DPSNextEvent + 632
57 AppKit 0x00000001841dc9c8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
58 AppKit 0x00000001841d0df8 -[NSApplication run] + 464
59 libglass.dylib 0x000000010e8b49b0 -[GlassApplication runLoop:] + 1996
60 Foundation 0x0000000181e7f900 __NSThreadPerformPerform + 264
61 CoreFoundation 0x0000000180f59a08 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
62 CoreFoundation 0x0000000180f5999c __CFRunLoopDoSource0 + 176
63 CoreFoundation 0x0000000180f5970c __CFRunLoopDoSources0 + 244
64 CoreFoundation 0x0000000180f58310 __CFRunLoopRun + 836
65 CoreFoundation 0x0000000180f57878 CFRunLoopRunSpecific + 612
66 libjli.dylib 0x000000010243f094 CreateExecutionEnvironment + 400
67 libjli.dylib 0x000000010243b794 JLI_Launch + 1208
68 java 0x0000000102383bbc main + 392
69 dyld 0x0000000180b4fe50 start + 2544
)
libc++abi: terminating with uncaught exception of type NSException
[1] 1287 abort java -jar recaf-2.21.13-J8-jar-with-dependencies.jar
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.