Crash when running JAR through console on macOS

Đang mở
#636 11 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, macos
Lĩnh vực
desktop

Hướng nghiên cứu

Bắt đầu bằng cách chạy java -jar recaf-2.21.13-J8-jar-with-dependencies.jar với thiết lập OpenJDK 19 và macOS 13.2 đã được báo cáo, sau đó lần theo đường dẫn khởi động JavaFX/macOS liên quan đến assertion về hình chữ nhật theo dõi của libglass.dylib. Được xem là hoàn tất khi JAR khởi động mà không xảy ra native crash đã báo cáo trên môi trường bị ảnh hưởng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

3rd party problem JavaFX platform-specific-bug

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
Ngôn ngữ chính
Java
Star
7.5k
Fork
549
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Col-E/Recaf

Tất cả issue của Col-E/Recaf

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.