Open etxaleku opened 3 months ago
Same error here with x64/WSL2
$ postman
The disableGPU setting is set to undefined
Not disabling GPU
[6480:1105/123806.561077:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[6480:1105/123806.561113:ERROR:env.cc(257)] The platform failed to initialize. Exiting.
[1105/123806.569050:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
Segmentation fault (core dumped)
$ DISABLE_WAYLAND=1 snap run postman
The disableGPU setting is set to undefined
Not disabling GPU
[2180:1105/125032.495313:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[2180:1105/125032.495361:ERROR:env.cc(257)] The platform failed to initialize. Exiting.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble
$ snap list postman
Name Version Rev Tracking Publisher Notes
postman 11.18.0 287 v11/stable postman-inc✓ -
Did you find a solution?
I have not found a solution and the issue still persists today.
$ snap list postman Name Version Rev Tracking Publisher Notes postman 11.18.0 288 v11/stable postman-inc** -
I saw a lot of people saying they had success with various xhost commands but I even tried
$ xhost + access control disabled, clients can connect from any host
But still no luck.
Of course the fact that postman can be run from a browser or installed locally via tarball greatly reduces the impact of this issue - but it would be nice to have it managed through the snap framework.
Is there an existing issue for this?
Describe the Issue
Environment = WSL2/Ubuntu 22.04 with ARM64 architecture
Installed postman using: sudo snap install postman
Installation went smoothly and /snap/postman/260 mounted.
Startup fails as follows:
Interestingly I noticed that the file
/snap/postman/260/usr/share/postman/resources/app/node_modules/shelljs/commands.js
contains all those "properties" in exactly the order listed in the errors above but unable to figure out what, if anything, that means.
Several other X-windows applications work smoothly, e.g. emacs, gnome-tweaks, etc. DISPLAY variable is set and exported as usual.
Tried
postman --trace-warnings
but the error message was exactly the same with no additional information.Tried
DISABLE_WAYLAND=1 snap run postman
which several others reported as helpful but again the error message was unchanged.Tried
bash --norc
to get a shell with no local profile environmental modifications (in case those were causing the issue) and then tried running postman but again the error message was unchanged.Tried to get snap logs but since postman never started I was not too surprised to see -
Snap info -
My emacs was installed via snap and it works smoothly without any issues that I can see. I mention emacs because
Steps To Reproduce
Screenshots or Videos
No response
Operating System
Linux
Postman Version
11.2.0
Postman Platform
Postman App
User Account Type
Signed In User
Additional Context?
The WSL2 environment, even on the Surface Pro 11 with ARM64 (Snapdragon), seems very stable. Able to compile gcc and emacs both from source (complex compilations done as an exercise to understand WSL2/arm64 compatibility) and have not really run into any issues other than this one with Postman and unfortunately the fact that the JetBrains IDEs IntelliJ and Pycharm snaps are not available on ARM64. :(
I really appreciate and enjoy snap, and the Snap Store just makes installation/maintenance a pleasure! I have been using snaps for about a year now on my old Intel platform and never had a need to understand more about snap than "snap install" and go! After running into this Postman issue I have had a chance to read up on snap and it is very comprehensive.