zap-hud icon indicating copy to clipboard operation
zap-hud copied to clipboard

HUD no longer loads reliably

Open psiinon opened this issue 1 year ago • 9 comments

The HUD often fails to initialise correctly when Firefox or Chrome are launched. When this happens only the green "plus" buttons are shown in the left and right panes. This will need to be fixed before we can move the HUD back into supported status. Comment if you're interested in looking at this. Its probably a non trivial problem, so no problem with more than one having a go...

psiinon avatar May 26 '23 10:05 psiinon

Hi,

I am now willing to look into HUD, since it is not being maintained at all so I can make some progress in it. Can you give me some pointers on where should I start from?

njmulsqb avatar Jun 02 '23 16:06 njmulsqb

Grab the latest add-on from the marketplace. Ensure it’s enabled. Open a browser from within ZAP and see if you can trigger the issue.

Assuming you can then check the ZAP logs and browser dev tools console and see if you can sort out and correct the issue.

kingthorin avatar Jun 02 '23 16:06 kingthorin

Hi, I cant seem to reproduce the errors, even though HUD is still not loading. I am on Mac M2, opened a browser with HUD and couldnt see anything on browser but Cannot GET /OTHER/quickstartlaunch/other/startPage/. Browser console is empty and zap log also dont mentions the opening of HUD or any errors associated with it, just the updation of add-ons I did before it.

 ~/Library/Application Support/ZAP  tail zap.log                                                                                                                       ok | 4m 14s | 05:07:25 AM
2023-06-03 04:52:15,712 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Installing new addon graphql v0.16.0
2023-06-03 04:52:15,806 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Finished installing new addon graphql v0.16.0
2023-06-03 04:52:15,892 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Installing new addon domxss v15.0.0
2023-06-03 04:52:15,895 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Finished installing new addon domxss v15.0.0
2023-06-03 04:52:16,079 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Installing new addon selenium v15.12.1
2023-06-03 04:52:16,594 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Finished installing new addon selenium v15.12.1
2023-06-03 04:52:16,711 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Installing new addon webdrivermacos v56.0.0
2023-06-03 04:52:17,123 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Finished installing new addon webdrivermacos v56.0.0
2023-06-03 04:52:17,212 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Installing new addon formhandler v6.3.0
2023-06-03 04:52:17,291 [ZAP-DownloadInstaller] INFO  ExtensionAutoUpdate - Finished installing new addon formhandler v6.3.0

njmulsqb avatar Jun 03 '23 00:06 njmulsqb

Had you navigated somewhere or were you just sitting on a blank page? You need to navigate somewhere for HUD to kick in.

kingthorin avatar Jun 03 '23 00:06 kingthorin

ah, now I get it. HUD is working fine with me on both firefox & chrome (but the console is full of errors). Is there any specific version of browser HUD is crashing on? Plus, I would like to know the working of zap.log file, when is something logged to it? Is opening of browser gets logged to it? I still cant see any new additions in log file.

njmulsqb avatar Jun 03 '23 00:06 njmulsqb

I dont see any HUD crashes, instead it often doesnt load correctly. The symptoms are most of the side buttons missing - only the "green plus" ones being shown. However its not consistant. Try launching it repeatedly on both Firefox and Chrome - the first few times it loaded fine for me but then I saw a couple of failures. The zap.log file is written to from the Java code - we use Log4J and if you switch to DEBUG level you'll see a load of messages..

psiinon avatar Jun 06 '23 08:06 psiinon

The dev build is not showing home screen on launch to open up browser, is there any option to get it manually? image

njmulsqb avatar Sep 10 '23 11:09 njmulsqb

Install the Quick Start add-on

kingthorin avatar Sep 10 '23 11:09 kingthorin

Thanks @kingthorin.

On launching HUD from source using ./gradlew runZap it fails with message ZAP did not fully start after 90 seconds, cause: Unable to connect to ZAP's proxy after 90 seconds. Interestingly the ZAP still runs and HUD is also working fine in it, any idea what's causing the build to fail here?

njmulsqb avatar Sep 13 '23 08:09 njmulsqb