Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HUD no longer loads reliably #1247

Open
psiinon opened this issue May 26, 2023 · 9 comments
Open

HUD no longer loads reliably #1247

psiinon opened this issue May 26, 2023 · 9 comments

Comments

@psiinon
Copy link
Member

psiinon commented May 26, 2023

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...

@njmulsqb
Copy link
Contributor

njmulsqb commented Jun 2, 2023

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?

@kingthorin
Copy link
Member

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.

@njmulsqb
Copy link
Contributor

njmulsqb commented Jun 3, 2023

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

@kingthorin
Copy link
Member

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

@njmulsqb
Copy link
Contributor

njmulsqb commented Jun 3, 2023

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.

@psiinon
Copy link
Member Author

psiinon commented Jun 6, 2023

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..

@njmulsqb
Copy link
Contributor

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

@kingthorin
Copy link
Member

Install the Quick Start add-on

@njmulsqb
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants