postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.86k stars 841 forks source link

The disableGPU setting is set to undefined #11374

Open sealse opened 2 years ago

sealse commented 2 years ago

Is there an existing issue for this?

Describe the Issue

Problem with running postman

Steps To Reproduce

1) Run postman $ postman 2) I see next errors The disableGPU setting is set to undefined Not disabling GPU Gtk-Message: 00:24:48.646: Failed to load module "xapp-gtk3-module" Gtk-Message: 00:24:48.646: Failed to load module "appmenu-gtk-module" Gtk-Message: 00:24:48.646: Failed to load module "appmenu-gtk-module" Gtk-Message: 00:24:48.667: Failed to load module "canberra-gtk-module" Gtk-Message: 00:24:48.668: Failed to load module "canberra-gtk-module" [69164:1020/002448.690390:ERROR:angle_platform_impl.cc(44)] Display.cpp:878 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory [69164:1020/002448.690536:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory [69164:1020/002448.690587:ERROR:gl_surface_egl.cc(1375)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [69164:1020/002448.690817:ERROR:angle_platform_impl.cc(44)] Display.cpp:878 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory [69164:1020/002448.690854:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory [69164:1020/002448.690927:ERROR:gl_surface_egl.cc(1375)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED [69164:1020/002448.690978:ERROR:gl_initializer_linux_x11.cc(178)] GLSurfaceEGL::InitializeOneOff failed. [69164:1020/002448.691882:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization ProtocolHandler~setDefaultProtocolClient: Command failed: xdg-mime default Postman.desktop x-scheme-handler/postman /bin/sh: 1: xdg-mime: not found

[69172:1020/002448.701752:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is Error org.freedesktop.DBus.Error.Failed: cannot find desktop file "/var/lib/snapd/desktop/applications/postman_Postman.desktop" Main~createDefaultWorkingDir - Default working dir creation already attempted 1666214688726 main info "Booting Postman 9.31.0, linux-5.15.0-50-generic on x64" 1666214688727 main info "EventBus~initialize - Success" [69184:1020/002448.728835:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED [69043:1020/002448.729915:ERROR:crash_handler_host_linux.cc(444)] Failed to write crash dump for pid 69184 [69184:1020/002448.730094:ERROR:interface_endpoint_client.cc(656)] Message 413853826 rejected by interface network.mojom.NetworkService Cannot upload crash dump: failed to open 1666214688732 main info "Proxy configuration has not been setup" 1666214688732 main info "CloudProxyManager~init - Success" Cannot upload crash dump: cannot exec /usr/bin/wget

Unexpected crash report id length Failed to get crash dump id. Report Id: 1666214688740 main info "UpdateHandler~init - Success" [69043:1020/002448.740587:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service. 1666214688743 main info "LeaderSelection: Initialized successfully" 1666214688744 main info "VersionDependencyService: Initialized successfully" 1666214688751 main info "LinuxAutoUpdater~Cleanup - Initial cleanup successful" 1666214688762 main info "GPU detected VID 0 DID 0 ACTIVE false" [69197:1020/002448.763804:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED [69043:1020/002448.764865:ERROR:crash_handler_host_linux.cc(444)] Failed to write crash dump for pid 69197 [69197:1020/002448.765022:ERROR:interface_endpoint_client.cc(656)] Message 413853826 rejected by interface network.mojom.NetworkService Cannot upload crash dump: failed to open [69043:1020/002448.769067:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service. Cannot upload crash dump: cannot exec /usr/bin/wget

Screenshots or Videos

No response

Operating System

Ubuntu 22.04.1 LTS

Postman Version

9.31.0

Postman Platform

Postman App

Additional Context?

DISABLE_WAYLAND=1 snap run postman - not work for me

$ echo $DISPLAY :1 $ echo $WAYLAND_DISPLAY

$ echo $XDG_SESSION_TYPE x11

snap list | grep postman postman 9.31.0 184 v9/stable postman-inc** -

jviotti commented 2 years ago

Hey @sealse ,

Thanks for reporting this. The "disableGPU setting is set to undefined" is not the reason behind the problem. It is a warning saying that your current system is not actively disabling the GPU, therefore the app will try to make use of it.

I think the problem is around the non-existent libGL.so.1 library and xdg-mime command.

Does the Linux tarball (instead of the Snap) work for you? Do you have xdg-mime installed on your system (i.e. accessible from within the terminal)?

sealse commented 2 years ago

$xdg-mime xdg-mime - command line tool for querying information about file type handling and adding descriptions for new file types Synopsis xdg-mime query { filetype | default } ... xdg-mime default application mimetype(s) xdg-mime install [--mode mode] [--novendor] mimetypes-file xdg-mime uninstall [--mode mode] mimetypes-file xdg-mime { --help | --manual | --version } Use 'man xdg-mime' or 'xdg-mime --manual' for additional info.

libGL.so.1 should be. How to check it exactly?

jviotti commented 2 years ago

libGL.so.1 should be. How to check it exactly?

That should be in any standard library locations from your distro (i.e. usually /usr/lib, etc).

That said, if xdg-mime is accessible outside, then I wonder why the Snap cannot find it within its own environment. Just to verify that the problem is indeed Snaps, can you try running Postman from the tarball we provide on the website instead of the Snap? If that works, then we can debug the Snap further.

cc @robertgzr

sealse commented 2 years ago

start from https://dl.pstmn.io/download/latest/linux64

`./Postman The disableGPU setting is set to undefined Not disabling GPU Main~createDefaultWorkingDir - Default working dir creation already attempted 1669221164181 main info "Booting Postman 10.1.2, linux-5.15.0-53-generic on x64" 1669221164182 main info "EventBus~initialize - Success" 1669221164184 main info "Proxy configuration has not been setup" 1669221164184 main info "CloudProxyManager~init - Success" 1669221164191 main info "UpdateHandler~init - Success" 1669221164193 main info "LeaderSelection: Initialized successfully" 1669221164193 main info "VersionDependencyService: Initialized successfully" 1669221164200 main info "LinuxAutoUpdater~Cleanup - Initial cleanup successful" 1669221164222 main info "GPU detected VID 4318 DID 7888 ACTIVE true" [748631:1123/193244.349453:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service. [748631:1123/193244.417549:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service.

Unexpected crash report id length Failed to get crash dump id. Report Id: [748631:1123/193244.481968:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service. [748631:1123/193244.529285:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service. [748631:1123/193244.574920:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service.

Unexpected crash report id length Failed to get crash dump id. Report Id: [748631:1123/193244.621496:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service.

Unexpected crash report id length Failed to get crash dump id. Report Id: [748631:1123/193244.709709:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service. [748631:1123/193244.753794:ERROR:network_service_instance_impl.cc(333)] Network service crashed, restarting service. `

DarkAbhi commented 8 months ago

Getting a similar error on the latest snap installation

→ postman 
The disableGPU setting is set to undefined
Not disabling GPU
Gtk-Message: 14:53:27.897: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:53:27.898: Failed to load module "canberra-gtk-module"
Main: Starting cleanup of stale files
[208954:0313/145327.924445:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[208954:0313/145327.924560:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[208954:0313/145327.924604:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[208954:0313/145327.924743:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[208954:0313/145327.924793:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[208954:0313/145327.924831:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[208954:0313/145327.924868:ERROR:gl_ozone_egl.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
[208954:0313/145327.928068:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Main: Cleanup of stale files completed
[208966:0313/145327.940609:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[208966:0313/145327.940716:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[208966:0313/145327.940751:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[208966:0313/145327.940888:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[208966:0313/145327.940935:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[208966:0313/145327.940973:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[208966:0313/145327.941009:ERROR:gl_ozone_egl.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
[208966:0313/145327.942016:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Main~createDefaultWorkingDir - Default working dir creation already attempted
1710321807958 main info "Booting Postman 10.23.9, linux-6.5.0-25-generic on x64"
1710321807959 main info "EventBus~initialize - Success"
1710321807960 main info "Proxy configuration has not been setup"
1710321807961 main info "CloudProxyManager~init - Success"
[208977:0313/145327.966228:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
1710321807976 main info "performShellDataMigration: Migration has already been done. Bailing out"
1710321807982 main info "UpdateHandler~init - Success"
1710321807983 main info "LeaderSelection: Initialized successfully"
1710321807984 main info "VersionDependencyService: Initialized successfully"
1710321807988 main info "LinuxAutoUpdater~Cleanup - Initial cleanup successful"
1710321808002 main info "GPU detected VID 0 DID 0 ACTIVE false"
1710321808017 main info "shellController~init: Success"
1710321808021 main info "shellMeta~init: Success"
1710321808021 main info "partitionMigrationService: State of V7 partition:"
1710321808021 main info "partitionMigrationService: V7 partitions",[]
1710321808022 main info "partitionMigrationService~rectifyNamespaceOfScratchPadPartition: There is no partition with scratchpad namespace"
1710321808022 main info "partitionMigrationService~rectifyNamespaceOfScratchPadPartition: There is no transit partition which could have been used for scratchpad"
1710321808022 main info "partitionMigrationService~init: Success"
1710321808026 main info "partitionMigrationService~runV8PartitionsIntegrity: Two way migration~ removing the following partitions from v8",[]
1710321808032 main info "userPartitionService~_rectifyTheActivePartitionOfApplication: Setting the active partition to ",null
1710321808038 main info "userPartitionService~init: Success"
1710321808049 main info "userPartitionService: State of v8 partition system:"
1710321808051 main info "shell~init~getPartitionToLoad: loading scratchpad partition"
1710321808052 main info "userPartitionService: List of partitions:",[{"partitionId":"76e671a5-3aa1-4dfe-9d04-9417809d8cd4","namespace":"scratchPad","userId":0,"teamId":0,"isDirty":false}]
1710321808052 main info "userPartitionService: users global meta:",{}
1710321809687 main info "RuntimeIPCAgent~started: Success"
1710321809812 main info "Main~scratchpadThemeAction:: action: set, value: light"
1710321809814 main info "Main~scratchpadThemeAction:: action: set, value: light"
1710321809815 main info "Main~scratchpadThemeAction:: action: set, value: light"
1710321809835 main info "windowManager: First requester booted successfully."
1710321809835 main info "windowManager~restoreWindows: Restoring requester windows"
1710321809836 main info "Main~AppEvents - Received booted event for process requester.Version undefined UI Version: undefined Desktop Platform Version: 10.23.9"
^C1710321859273 main info "Quitting app"
shawnim commented 6 months ago

I have the same errors on Ubuntu 22.04.4 and postman v10. shawn@shawn-XPS-13-9310:~$ version Linux shawn-XPS-13-9310 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy shawn@shawn-XPS-13-9310:~$ xdg-mime --version xdg-mime 1.1.3 shawn@shawn-XPS-13-9310:~$ snap --version snap 2.62 snapd 2.62 series 16 ubuntu 22.04 kernel 6.5.0-28-generic shawn@shawn-XPS-13-9310:~$ snap list |grep postman postman 10.24.16 248 v10/stable postman-inc** - shawn@shawn-XPS-13-9310:~$ find /usr/lib /lib /usr/local/lib -name libGL.so.1 -print /usr/lib/x86_64-linux-gnu/libGL.so.1 shawn@shawn-XPS-13-9310:~$ which postman /snap/bin/postman

edhaller commented 4 months ago

Is this still an issue as I was unable to resolve with the above? Ubuntu 22.04.2 LTS postman (v11/stable) 11.2.0

Let me know as I tried some workarounds to no success. Will drop postman on Linux needbe.