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

Debug -> Open Web Profiler silently fails in some Linux environments #7819

Open
pewsplosions opened this issue Jul 21, 2023 · 3 comments
Open
Labels
bug Something is not working as expected editor Issues related to the Defold editor linux Issue related to the Linux platform profiler Issues related to the profiler

Comments

@pewsplosions
Copy link

Describe the bug (REQUIRED)
Selecting Debug -> Open Web Profiler does nothing. Tried while running from Project -> Build and Debug -> Start/Attach both with same results.

To Reproduce (REQUIRED)
Steps to reproduce the behavior:

  1. Start project with Project -> Build.
  2. Click Debug -> Open Web Profiler.
  3. Wait for nothing to happen?

Expected behavior (REQUIRED)
Expecting the web profiler to open in the default web browser.

Defold version (REQUIRED):

  • Version 1.4.8

Platforms (REQUIRED):

  • Platforms: Linux
  • OS: Linux (Kubuntu 23.04)
  • Device: Desktop (Default browser set to Firefox)

Workaround (OPTIONAL):
The in-app overlay profiler works fine. May also be able to manually enter the URL into the web browser but not real sure what that URL would be.

Additional context (OPTIONAL):
This is likely specific to local environment conditions. It also generates no related logs. Opening web links from applications on Linux distros in general are hit or miss. After discussing with @britzl on Discord, it was suggested to make this issue: "We should try to work around it and at the least let the user know about it."

A potentially easy, non-fix, but informative option may be to print to console or pop up something that has the URL the editor just tried to open with the 'Open Web Profiler' click. This way even if nothing happens the user could copy/paste that into their browser (assuming it works that way.)

@pewsplosions pewsplosions added the bug Something is not working as expected label Jul 21, 2023
@britzl britzl added editor Issues related to the Defold editor linux Issue related to the Linux platform profiler Issues related to the profiler labels Jul 22, 2023
@britzl
Copy link
Contributor

britzl commented Mar 7, 2024

Could it be that the OS for some reason doesn't indicate that the java.awt.Desktop.Action.BROWSE is supported. Perhaps there is not default browser set?

https://github.com/defold/defold/blob/dev/editor/src/clj/editor/ui.clj#L2142-L2148

@pewsplosions
Copy link
Author

I no longer have a Linux PC to check this out with but I do know other apps that would open a browser link, for the most part, worked fine at the time. It was admittedly a little hit or miss (like the Additional Context says.) There was a default set though for sure.

@mabysh
Copy link

mabysh commented Mar 7, 2024

I no longer have a Linux PC to check this out with but I do know other apps that would open a browser link, for the most part, worked fine at the time. It was admittedly a little hit or miss (like the Additional Context says.) There was a default set though for sure.

I have the same issue and figured out workaround: https://forum.defold.com/t/solved-can-not-open-web-profiler/76212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected editor Issues related to the Defold editor linux Issue related to the Linux platform profiler Issues related to the profiler
Projects
No open projects
Status: Todo
Development

No branches or pull requests

3 participants