在升级了mac操作系统到Sierra版本之后,之前的jd-gui就闪退了,本文就讲述一下如何解决这个问题。

jdk版本

使用的是jdk8

崩溃日志实例

Date/Time: 2016-09-22 11:28:18.416 +0700
OS Version: Mac OS X 10.12 (16A323)
Report Version: 12
Anonymous UUID: 1611245A-06D9-C16E-B5A3-A2BCF51CC12C

Sleep/Wake UUID: B23BDF91-F082-46BA-9EB3-99D558FC4472

Time Awake Since Boot: 39000 seconds
Time Since Wake: 10000 seconds

System Integrity Protection: enabled

Crashed Thread: Unknown

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000241499f5
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

Backtrace not available

Unknown thread crashed with X86 Thread State (32-bit):
eax: 0x248b8b5b ebx: 0xbffffa34 ecx: 0x241499f5 edx: 0x00000001
edi: 0xbffffa9c esi: 0x00000000 ebp: 0xbffff9f8 esp: 0xbffff9b0
ss: 0x00000023 efl: 0x00010297 eip: 0x000011bb cs: 0x0000001b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
cr2: 0x241499f5

Logical CPU: 4
Error Code: 0x00000004
Trap Number: 14

Binary images description not available

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 26791
thread_create: 0
thread_set_state: 0

解决

下载官网的mac的新版本也没有用。最后还是自己clone重新编译解决了。如下

git clone https://github.com/java-decompiler/jd-gui.git
./gradlew build

之后java -jar build/libs/jd-gui-1.4.0.jar就正常了

doc


codecraft
11.9k 声望2k 粉丝

当一个代码的工匠回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞愧,这样,当他老的时候,可以很自豪告诉世人,我曾经将代码注入生命去打造互联网的浪潮之巅,那是个很疯狂的时代,我在一波波的浪潮上留下...


引用和评论

0 条评论