MacOS (Silicon) Crash Issue with ZAP

397 views
Skip to first unread message

HAHWUL

unread,
Jun 9, 2024, 11:15:39 AM6/9/24
to ZAP User Group

Hi everyone,

I'm experiencing a crash issue with ZAP on some of my MacOS (Silicon) machines. Despite reinstalling, the problem persists on these specific MacOS systems.

The zap.log file shows no further logs after this line:

[ZAP-BootstrapGUI] INFO org.zaproxy.zap.control.ExtensionFactory - Loading extensions

I'm cautiously guessing that it might be a Java-related issue. There isn't much information in the zap.log, and the only data available during the crash is what Apple provides. Unfortunately, it's not easy to resolve this.

For reference, there haven't been any significant system changes, and this issue started occurring sometime after I began using version 2.15

I suspect it might not be an issue with ZAP itself, but I'm looking for any advice or solutions. Has anyone encountered and resolved this issue before?


Thanks for your help!

thc...@gmail.com

unread,
Jun 9, 2024, 1:36:49 PM6/9/24
to zaprox...@googlegroups.com
Hi,

The only issue I'm aware was this one:
https://blogs.oracle.com/java/post/java-on-macos-14-4

But updating to latest version of Sonoma should address it. If you are
already using latest I'd try using the Linux package and a newer Java
version.

Best regards.

On 09/06/2024 16:15, HAHWUL wrote:
>
>
> Hi everyone,
>
> I'm experiencing a crash issue with ZAP on some of my MacOS (Silicon)
> machines. Despite reinstalling, the problem persists on these specific
> MacOS systems.
>
> The zap.log file shows no further logs after this line:
>
> *[ZAP-BootstrapGUI] INFO org.zaproxy.zap.control.ExtensionFactory - Loading
> extensions*

HAHWUL

unread,
Jun 10, 2024, 5:18:36 AM6/10/24
to ZAP User Group
Hello again!
First, thank you so much for your kind response :)

I tested a few things today.

 - Running with a different Java version -> The same issue occurs even when using the system's Java instead of the embedded version.
 - Running with CLI (./zap.sh) -> It crashes in the same way.
 - Running in daemon mode(./zap.sh -daemon) -> It runs normally.

My guess is that there's some kind of conflict with the UI-related part. 
I'll share if I manage to solve it!

---- Crash log ----

Process: java [70259] 

Path: /Applications/ZAP.app/Contents/PlugIns/jre-jdk-11.0.23+9-jre/Contents/Home/bin/java 

Identifier: java 

Version: ??? Code Type: ARM-64 (Native) 

Parent Process: launchd [1] .... 

Thread 0 

Crashed:: Dispatch queue: com.apple.main-thread 0 AppKit 0x18a8ba4e4 _NSCarbonMenuCrashIfNeeded + 488 1 AppKit 0x18a8ba294 _NSGetCarbonMenu + 24 2 JavaRuntimeSupport 0x1f1e5dde8 -[JRSMenu installCarbonEventHandlers:] + 172 3 CoreFoundation 0x1865ea820 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148 4 CoreFoundation 0x18667e8ec ___CFXRegistrationPost_block_invoke + 88 5 CoreFoundation 0x18667e834 _CFXRegistrationPost + 440 ....


2024년 6월 10일 월요일 오전 2시 36분 49초 UTC+9에 thc202님이 작성:

HAHWUL

unread,
Jun 13, 2024, 11:10:08 AM6/13/24
to ZAP User Group

Long time no see, everyone! While not necessarily a definitive solution, using ZAP 2.14 bundled with Java helped me resolve the issue. If anyone is experiencing something similar, this approach might offer a potential solution.

> My Solution: Run ZAP 2.15 using the bundled Java JRE from ZAP 2.14

> Detail: https://www.hahwul.com/2024/06/13/revive-zap-with-a-java-swap/

I'm sharing this with the group in the hope that it could be a helpful method for others facing similar issues :D

Thank you

2024년 6월 10일 월요일 오후 6시 18분 36초 UTC+9에 HAHWUL님이 작성:
Reply all
Reply to author
Forward
0 new messages