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

ExpressLRS Configurator --no-sandbox doesn't work #629

Open
tomcass240 opened this issue Jul 6, 2024 · 4 comments
Open

ExpressLRS Configurator --no-sandbox doesn't work #629

tomcass240 opened this issue Jul 6, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@tomcass240
Copy link

I need to open this software as root because it doesn't work properly otherwise. When opening it as root with the --no-sandbox option it just opens as a completely blank white window with no associated error messages in the terminal.

Please fix.

@tomcass240 tomcass240 added the bug Something isn't working label Jul 6, 2024
@jurgelenas
Copy link
Member

jurgelenas commented Jul 9, 2024

I need to open this software as root because it doesn't work properly otherwise. When opening it as root with the --no-sandbox option it just opens as a completely blank white window with no associated error messages in the terminal.

Please fix.

Can you provide more information about your environment? Operating system/version?

Also, can you post the command output with --no-sandbox added?

You should be aware that --no-sandbox flag is implemented natively in electron.js. It is really out of our control.

@tomcass240
Copy link
Author

Hi there, I am using Debian Bookworm with KDE. I actually managed to get around it by adjusting my user permissions so I don't need to run it in root any more. The bug still occurs though when opening it with sudo.

@jurgelenas
Copy link
Member

Hi there, I am using Debian Bookworm with KDE. I actually managed to get around it by adjusting my user permissions so I don't need to run it in root any more. The bug still occurs though when opening it with sudo.

But what do you see in the logs when this bug occurs?

@tomcass240
Copy link
Author

sudo expresslrs-configurator --no-sandbox
{
  context: {
    PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
  },
  level: 'info',
  message: 'path',
  timestamp: '2024-08-11T04:22:04.806Z'
}
{
  context: undefined,
  level: 'info',
  message: 'platform: linux',
  timestamp: '2024-08-11T04:22:04.809Z'
}
{
  context: undefined,
  level: 'info',
  message: 'os release: 6.1.0-23-amd64',
  timestamp: '2024-08-11T04:22:04.809Z'
}
[89276:0811/052204.905537:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[89276:0811/052204.905828:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[89307:0811/052204.988818:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[89307:0811/052204.989054:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[89307:0811/052204.989206:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified

[89307:0811/052204.989726:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[89307:0811/052204.989846:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[89307:0811/052204.989948:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[89307:0811/052204.990019:ERROR:gl_ozone_egl.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
[89307:0811/052204.994044:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
{
  context: undefined,
  level: 'info',
  message: 'trying to get port',
  timestamp: '2024-08-11T04:22:04.996Z'
}
{
  context: { port: 3500 },
  level: 'info',
  message: 'received unused port',
  timestamp: '2024-08-11T04:22:05.002Z'
}
{
  context: undefined,
  level: 'info',
  message: 'starting server...',
  timestamp: '2024-08-11T04:22:05.003Z'
}
{
  context: {
    localesPath: '/opt/ExpressLRS Configurator/resources/i18n/locales'
  },
  level: 'info',
  message: 'localesPath',
  timestamp: '2024-08-11T04:22:05.011Z'
}
{
  context: {
    PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
  },
  level: 'info',
  message: 'local api server PATH',
  timestamp: '2024-08-11T04:22:05.012Z'
}
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[89316:0811/052205.021280:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[89316:0811/052205.021463:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[89316:0811/052205.021577:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified

[89316:0811/052205.021855:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[89316:0811/052205.021939:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[89316:0811/052205.021989:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[89316:0811/052205.022036:ERROR:gl_ozone_egl.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
[89316:0811/052205.023718:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[89323:0811/052205.045384:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[89323:0811/052205.045523:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[89323:0811/052205.045612:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified

[89323:0811/052205.052524:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[89323:0811/052205.052688:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[89323:0811/052205.052831:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[89323:0811/052205.052914:ERROR:gl_ozone_egl.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
[89323:0811/052205.054746:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set `cache: "bounded"` or `persistedQueries: false` in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
{
  context: undefined,
  level: 'info',
  message: 'server started',
  timestamp: '2024-08-11T04:22:05.133Z'
}
[89276:0811/052205.173280:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[89276:0811/052205.207790:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
APPIMAGE env is not defined, current application is not an AppImage
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[89342:0811/052205.252262:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[89342:0811/052205.252398:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[89342:0811/052205.252483:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified

[89342:0811/052205.252812:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[89342:0811/052205.252877:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[89342:0811/052205.252933:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[89342:0811/052205.252985:ERROR:gl_ozone_egl.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
[89342:0811/052205.254675:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[89354:0811/052205.303386:ERROR:vaapi_wrapper.cc(682)] Could not get a valid VA display
[89354:0811/052205.310657:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[89354:0811/052205.311589:ERROR:x11_software_bitmap_presenter.cc(141)] XGetWindowAttributes failed for window 113246211
{
  context: { arg: { buildInProgress: false } },
  level: 'info',
  message: 'received a request to update build status',
  timestamp: '2024-08-11T04:22:06.141Z'
}
{
  context: { strategy: 'BinaryFlashingStrategy' },
  level: 'info',
  message: 'picked flashing strategy',
  timestamp: '2024-08-11T04:22:06.252Z'
}
tested git exec /usr/bin/git
confirmed git exec /usr/bin/git
{
  context: { gitPath: '/usr/bin/git' },
  level: 'info',
  message: 'git path',
  timestamp: '2024-08-11T04:22:06.285Z'
}
(node:89276) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `expresslrs-configurator --trace-deprecation ...` to show where the warning was created)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants