"failed to create drawable" error on multiple apps

Everything related to Installing and maintaining software.
Post Reply
liber
Posts: 4
Joined: Mon Mar 18, 2024 11:56 am

"failed to create drawable" error on multiple apps

Post by liber »

Hello,

This is my first post on this forum, so bear with me please.

I first encountered the issue when installing calibre, and trying to open a book in the viewer. Since the viewer appeared to start and then immediately crash, I tried to launch the application from the terminal. This is the output (application crashing right after drawing the frame):

Code: Select all

ebook-viewer
failed to create drawable
[2287:1900093440:0318/172038.737613:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
failed to create drawable
[2287:2043150848:0318/172038.827715:ERROR:gl_surface_glx_qt.cpp(159)] glXCreatePbuffer failed.
[2287:2043150848:0318/172038.827737:ERROR:gpu_info_collector.cc(80)] gl::GLContext::CreateOffscreenGLSurface failed
[2287:2043150848:0318/172038.827749:ERROR:gpu_info_collector.cc(401)] Could not create surface for info collection.
failed to create drawable
[2287:2043150848:0318/172038.829462:ERROR:gl_surface_glx_qt.cpp(159)] glXCreatePbuffer failed.
failed to create drawable
[2287:2043150848:0318/172038.830793:ERROR:gl_surface_glx_qt.cpp(159)] glXCreatePbuffer failed.
[2287:2043150848:0318/172038.830809:ERROR:gpu_info_collector.cc(80)] gl::GLContext::CreateOffscreenGLSurface failed
[2287:2043150848:0318/172038.830817:ERROR:gpu_info_collector.cc(401)] Could not create surface for info collection.
libva error: vaGetDriverNames() failed with unknown libva error
failed to create drawable
failed to create drawable
fish: Job 1, 'ebook-viewer' terminated by signal SIGSEGV (Address boundary error)
Very similar output for ebook-edit:

Code: Select all

ebook-edit 
failed to create drawable
[2373:174137344:0318/172118.739855:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
failed to create drawable
[2373:325650432:0318/172118.765600:ERROR:gl_surface_glx_qt.cpp(159)] glXCreatePbuffer failed.
[2373:325650432:0318/172118.765655:ERROR:gpu_info_collector.cc(80)] gl::GLContext::CreateOffscreenGLSurface failed
[2373:325650432:0318/172118.765691:ERROR:gpu_info_collector.cc(401)] Could not create surface for info collection.
failed to create drawable
[2373:325650432:0318/172118.767379:ERROR:gl_surface_glx_qt.cpp(159)] glXCreatePbuffer failed.
failed to create drawable
[2373:325650432:0318/172118.768615:ERROR:gl_surface_glx_qt.cpp(159)] glXCreatePbuffer failed.
[2373:325650432:0318/172118.768633:ERROR:gpu_info_collector.cc(80)] gl::GLContext::CreateOffscreenGLSurface failed
[2373:325650432:0318/172118.768640:ERROR:gpu_info_collector.cc(401)] Could not create surface for info collection.
libva error: vaGetDriverNames() failed with unknown libva error
failed to create drawable
failed to create drawable
fish: Job 1, 'ebook-edit' terminated by signal SIGSEGV (Address boundary error)
I tried to move to another app, foliate. This one starts, but it shows the same error (while still running):

Code: Select all

foliate

(com.github.johnfactotum.Foliate:2399): Gjs-WARNING **: 17:21:30.233: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
  main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24
  run@resource:///org/gnome/gjs/modules/script/package.js:206:19
  @/usr/local/bin/foliate:9:17

failed to create drawable
After going to the library in foliate and opening a book, a couple of times, it crashes too:

Code: Select all

(com.github.johnfactotum.Foliate:3774): Gjs-WARNING **: 17:40:19.046: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
  main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24
  run@resource:///org/gnome/gjs/modules/script/package.js:206:19
  @/usr/local/bin/foliate:9:17

failed to create drawable
fish: Job 1, 'foliate' terminated by signal SIGBUS (Misaligned address error)
Finally, I tried to open an .EPUB file with atril (this one starts, but crashes when trying to open a file):

Code: Select all

atril
fish: Job 1, 'atril' terminated by signal SIGBUS (Misaligned address error)
GhostBSD was installed pretty recently, minimal additions to the list of default apps.

Code: Select all

ghostbsd-version -fkov
14.0-STABLE
1400501
24.01.1
24.01.1
Since some of the errors mentioned glx, I checked the logs to see if the module is loaded. The relevant section of the /var/log/Xorg.0.log file:

Code: Select all

[    11.653] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    11.653] (II) LoadModule: "glx"
[    11.654] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    11.723] (II) Module glx: vendor="NVIDIA Corporation"
[    11.723] 	compiled for 4.0.2, module version = 1.0.0
[    11.723] 	Module class: X.Org Server Extension
[    11.723] (II) NVIDIA GLX Module  390.154  Wed Jun 22 04:44:23 UTC 2022
[    11.724] (II) LoadModule: "nvidia"
I saw the bugs and issues should be posted on Github, but considering my problem appears to involve multiple apps (on multiple toolkits, as far as I can tell), I figured it's a good chance there's some configuration problem that I'm missing. Though those errors look like something that shouldn't appear on a fresh install of an app.

All the applications were installed with pkg, not ports. So, for the applications mentioned here, my commands were basically:

Code: Select all

pkg install calibre
pkg install foliate
RodMyers
Posts: 87
Joined: Sat Nov 27, 2021 8:16 pm

Re: "failed to create drawable" error on multiple apps

Post by RodMyers »

How did you install calibre?

pkg or source?
liber
Posts: 4
Joined: Mon Mar 18, 2024 11:56 am

Re: "failed to create drawable" error on multiple apps

Post by liber »

I installed from packages - commands in the last paragraph above.
I haven't installed anything from source, so no mixed install on the system.
chadbsd
Posts: 45
Joined: Thu Oct 05, 2023 8:53 pm

Re: "failed to create drawable" error on multiple apps

Post by chadbsd »

Make the software maintainers aware of the issue.
They would be very interested in this issue and be
able to resolve the issue.

(1) Calibre's maintainer is [email protected]
(2) Foliate's maintainer is [email protected].
User avatar
neville
Developer
Posts: 144
Joined: Fri Aug 13, 2021 10:27 am
Location: Japan

Re: "failed to create drawable" error on multiple apps

Post by neville »

Have you tried okular?
nevets
Posts: 163
Joined: Tue Jun 23, 2020 3:54 am

Re: "failed to create drawable" error on multiple apps

Post by nevets »

There's on old issue with incompatibility with LibreOffice too.
https://forums.ghostbsd.org/viewtopic.p ... 370#p11370
Not sure if this remains in current OS version.
liber
Posts: 4
Joined: Mon Mar 18, 2024 11:56 am

Re: "failed to create drawable" error on multiple apps

Post by liber »

chadbsd wrote: Mon Mar 18, 2024 6:45 pm Make the software maintainers aware of the issue.
They would be very interested in this issue and be
able to resolve the issue.
I will definitely do that, but I'd like to have confirmation that this happens to other people too (with a similar GhostBSD 24.01.1 install maybe) - to eliminate the possibility of a misconfiguration on my side.
It's very easy to test - simply pkg install, then launch ebook-viewer. No need for a calibre database.
Also, before reporting upstream I should probably try to see if it works in a fresh FreeBSD install, but that would take quite a bit of time to test.
RodMyers
Posts: 87
Joined: Sat Nov 27, 2021 8:16 pm

Re: "failed to create drawable" error on multiple apps

Post by RodMyers »

liber wrote: Mon Mar 18, 2024 3:37 pm I installed from packages - commands in the last paragraph above.
I haven't installed anything from source, so no mixed install on the system.
Weird, I installed the same and from the terminal for both calibre & ebook-viewer;

[rodney@watton] calibre
failed to authenticate magic 1
failed to load driver: iris

[rodney@watton] ebook-viewer
failed to authenticate magic 1
failed to load driver: iris
[89759:-1488904192:0319/091230.364416:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
failed to authenticate magic 1
failed to load driver: iris
libva error: vaGetDriverNames() failed with unknown libva error
[89783:1799129088:0319/091230.873090:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
liber
Posts: 4
Joined: Mon Mar 18, 2024 11:56 am

Re: "failed to create drawable" error on multiple apps

Post by liber »

I tested all the apps mentioned above in:
- fresh FreeBSD 14.0 install with KDE (latest)
- fresh FreeBSD 14.0 install with Mate (latest)
- fresh FreeBSD 14.0 install with Mate (quarterly)
In all scenarios, the errors persisted.
So, the problems are definitely upstream, not GhostBSD specific.

It took a while. I'll try to report it upstream.
Post Reply