ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
6.98k stars 228 forks source link

QEGPlatformContext: Failed to create context:3009 #1128

Open EssenSea opened 2 months ago

EssenSea commented 2 months ago

it seems like relative to nvidia config in optimus-manager, I Guess. Caused by changed /etc/optimus-manager/optimus-manger.conf.

Here are bug message:

QEGLPlatformContext: Failed to create context: 3009 default_config_path: /etc/sioyek/prefs.config default_keys_path: /etc/sioyek/keys.config user_config_path: [ 0 ] /etc/xdg/sioyek/prefs_user.config user_config_path: [ 1 ] /home/nhp/.config/sioyek/prefs_user.config user_keys_path: [ 0 ] /etc/xdg/sioyek/keys_user.config user_keys_path: [ 1 ] /home/nhp/.config/sioyek/keys_user.config database_file_path: /home/nhp/.local/share/sioyek/test.db local_database_file_path: /home/nhp/.local/share/sioyek/local.db global_database_file_path: /home/nhp/.local/share/sioyek/shared.db tutorial_path: /usr/share/sioyek/tutorial.pdf last_opened_file_address_path: /home/nhp/.local/share/sioyek/last_document_path.txt shader_path: /usr/share/sioyek/shaders QEGLPlatformContext: Failed to create context: 3009 QRhiGles2: Failed to create temporary context QEGLPlatformContext: Failed to create context: 3009 QRhiGles2: Failed to create context Failed to create QRhi for QBackingStoreRhiSupport QEGLPlatformContext: Failed to create context: 3009 QOpenGLWidget: Failed to create context QEGLPlatformContext: Failed to create context: 3009 QOpenGLWidget: Failed to create context QEGLPlatformContext: Failed to create context: 3009 QOpenGLWidget: Failed to create context warning: found duplicate fz_icc_link in the store QEGLPlatformContext: Failed to create context: 3009 QOpenGLWidget: Failed to create context

EssenSea commented 2 months ago

I'v change all "startup_mode*" to nvidia

EssenSea commented 2 months ago

here is bug message after I've recompiled git version

QEGLPlatformContext: Failed to create context: 3009 default_config_path: /etc/sioyek/prefs.config default_keys_path: /etc/sioyek/keys.config user_config_path: [ 0 ] /etc/xdg/sioyek/prefs_user.config user_config_path: [ 1 ] /home/nhp/.config/sioyek/prefs_user.config user_keys_path: [ 0 ] /etc/xdg/sioyek/keys_user.config user_keys_path: [ 1 ] /home/nhp/.config/sioyek/keys_user.config database_file_path: /home/nhp/.local/share/sioyek/test.db local_database_file_path: /home/nhp/.local/share/sioyek/local.db global_database_file_path: /home/nhp/.local/share/sioyek/shared.db tutorial_path: /usr/share/sioyek/tutorial.pdf last_opened_file_address_path: /home/nhp/.local/share/sioyek/last_document_path.txt shader_path: /usr/share/sioyek/shaders

ahrm commented 2 months ago

I am not familiar with optimus-manager, but the issue seems to be that whatever graphics driver you are using doesn't support opengl 3.2 .

EssenSea commented 1 month ago

There is a way to made sioyek work smoothly with optimus-manager, but I'm not sure whether it could reproduce in some other's working environment. I hope it could be helpful for others who encounter the same problem.

  1. Uninstall optimus-manager.
  2. complie sioyek-git version without optimus-manager. check whether sioyek work, and it should be.
  3. reinstall optimus-manager-git
  4. edit /etc/optimus-manager/optimus-manager.conf and all startup-mode* =nvidia.
  5. check whether sioyek work successfully, and I hope it could be.