Gambas3 fails to launch - why?

After updating to Fedora 41 KDE workstation I find that Gambas3 IDE can not launch successfully. dnf reports that gambas3-ide-3.20.1-1.fc41.x86_64 is installed and the Application Launcher shows the Gambas3 application but when invoked the G3 icon "bounces for a few seconds and then disappears without any error message. It does not count as a “crash” in Problem Reporting so i mention it here.

I recall this issue surfacing in an earlier release - 37 to 39, I think. It was resolved once before, how I don’t know.

Try running gambas3 from the terminal command line.
Does it print any useful information?

Invoking “gambas3” from a bash terminal I get the response:

gbr3: unable to load component: gb.hash

thanks, -CH-

I can reproduce the error, it is not just affecting you.

I suggest you raise a bug against this component in the fedora bug tracker
with the error you are seeing so the maintainer knows there is an issue.

Try installing gambas3-gb-hash

That would mean the rpm spec is missing a Requires: then.

I followed Leigh’s suggestion and installed gambas3-gb-hash, successfully, then invoked gambas3 from the command line once again. Below is the terminal output:

chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ sudo dnf install gambas3-gb-hash
[sudo] password for chudson: 
Updating and loading repositories:
 Fedora 41 - x86_64 - Updates                                                                      100% |  98.9 KiB/s |  28.3 KiB |  00m00s
 Fedora 41 - x86_64 - Updates                                                                      100% |   1.3 MiB/s |   2.7 MiB |  00m02s
Repositories loaded.
Package                                       Arch        Version                                        Repository                    Size
Installing:
 gambas3-gb-hash                              x86_64      3.20.1-1.fc41                                  updates                   25.0 KiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 20 KiB. Need to download 20 KiB.
After this operation, 25 KiB extra will be used (install 25 KiB, remove 0 B).
Is this ok [y/N]: y
[1/1] gambas3-gb-hash-0:3.20.1-1.fc41.x86_64                                                       100% |  89.1 KiB/s |  20.1 KiB |  00m00s
-------------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total                                                                                        100% |  27.9 KiB/s |  20.1 KiB |  00m01s
Running transaction
[1/3] Verify package files                                                                         100% | 111.0   B/s |   1.0   B |  00m00s
[2/3] Prepare transaction                                                                          100% |   0.0   B/s |   1.0   B |  00m03s
[3/3] Installing gambas3-gb-hash-0:3.20.1-1.fc41.x86_64                                            100% |   9.1 KiB/s |  26.6 KiB |  00m03s
Complete!
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ gambas3
gb.gui: warning: 'gb.qt6' component not found, using 'gb.gtk3' instead

** (org.gambas.10368:10368): WARNING **: 15:53:39.575: Disabled hardware acceleration because GTK failed to initialize GL: Unable to create a GL context.
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ 

Note the warnings. However, Gambas3 launched, i.e. opened a GUI window and presented the “tips” splash screen. Looks like some maintenance is required on the rpm to make it plug-n-play but thanks to you both for your suggestions.

-CH-

Please report in the fedora bug tracker. This package clearly needs maintainer attention.

Filed a bug report, thanks.

-CH-

Maybe install gambas3-gb-qt6 if your running plasma DE

I am running Plasma on a KDE desktop. After installing gambas3-gb-qt6 I get:

chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ sudo dnf install gambas3-gb-qt6
[sudo] password for chudson:
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
gambas3-gb-qt6 x86_64 3.20.1-1.fc41 updates 750.9 KiB
Installing dependencies:
gambas3-gb-qt6-wayland x86_64 3.20.1-1.fc41 updates 21.2 KiB
gambas3-gb-qt6-x11 x86_64 3.20.1-1.fc41 updates 29.2 KiB

Transaction Summary:
Installing: 3 packages

Total size of inbound packages is 289 KiB. Need to download 289 KiB.
After this operation, 801 KiB extra will be used (install 801 KiB, remove 0 B).
Is this ok [y/N]: y
[1/3] gambas3-gb-qt6-x11-0:3.20.1-1.fc41.x86_64 100% | 81.1 KiB/s | 20.9 KiB | 00m00s
[2/3] gambas3-gb-qt6-wayland-0:3.20.1-1.fc41.x86_64 100% | 62.8 KiB/s | 17.4 KiB | 00m00s
[3/3] gambas3-gb-qt6-0:3.20.1-1.fc41.x86_64 100% | 533.2 KiB/s | 250.6 KiB | 00m00s

[3/3] Total 100% | 286.1 KiB/s | 289.0 KiB | 00m01s
Running transaction
[1/5] Verify package files 100% | 214.0 B/s | 3.0 B | 00m00s
[2/5] Prepare transaction 100% | 1.0 B/s | 3.0 B | 00m02s
[3/5] Installing gambas3-gb-qt6-wayland-0:3.20.1-1.fc41.x86_64 100% | 356.6 KiB/s | 22.8 KiB | 00m00s
[4/5] Installing gambas3-gb-qt6-x11-0:3.20.1-1.fc41.x86_64 100% | 788.9 KiB/s | 30.8 KiB | 00m00s
[5/5] Installing gambas3-gb-qt6-0:3.20.1-1.fc41.x86_64 100% | 440.3 KiB/s | 752.5 KiB | 00m02s
Complete!
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ gambas3
gb.gui: warning: ‘gb.qt6.webview’ component not found, using ‘gb.gtk3’ instead

** (org.gambas.14811:14811): WARNING **: 17:57:48.452: Disabled hardware acceleration because GTK failed to initialize GL: Unable to create a GL context.
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$

A qt6 component is missing, reverts to gtk and then fails that. But Gambas3 still launches.

-CH-

Maybe try installing gambas3-gb-qt6-opengl

One failed attempt and two updates of qt6 components. Still not happy, but Gambas3 still launches:
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ sudo dnf install gambas3-gb-qt6-opengl
[sudo] password for chudson:

Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
gambas3-gb-qt6-opengl x86_64 3.20.1-1.fc41 updates 25.7 KiB
Installing dependencies:
gambas3-gb-opengl x86_64 3.20.1-1.fc41 updates 125.2 KiB

Transaction Summary:
Installing: 2 packages

Total size of inbound packages is 56 KiB. Need to download 56 KiB.
After this operation, 151 KiB extra will be used (install 151 KiB, remove 0 B).
Is this ok [y/N]: Operation aborted by the user.
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ y
bash: y: command not found…
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ sudo dnf install gambas3-gb-qt6-opengl
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
gambas3-gb-qt6-opengl x86_64 3.20.1-1.fc41 updates 25.7 KiB
Installing dependencies:
gambas3-gb-opengl x86_64 3.20.1-1.fc41 updates 125.2 KiB

Transaction Summary:
Installing: 2 packages

Total size of inbound packages is 56 KiB. Need to download 56 KiB.
After this operation, 151 KiB extra will be used (install 151 KiB, remove 0 B).
Is this ok [y/N]: y
[1/2] gambas3-gb-qt6-opengl-0:3.20.1-1.fc41.x86_64 100% | 34.3 KiB/s | 17.4 KiB | 00m01s
[2/2] gambas3-gb-opengl-0:3.20.1-1.fc41.x86_64 100% | 60.9 KiB/s | 38.3 KiB | 00m01s

[2/2] Total 100% | 46.5 KiB/s | 55.7 KiB | 00m01s
Running transaction
[1/4] Verify package files 100% | 222.0 B/s | 2.0 B | 00m00s
[2/4] Prepare transaction 100% | 1.0 B/s | 2.0 B | 00m02s
[3/4] Installing gambas3-gb-opengl-0:3.20.1-1.fc41.x86_64 100% | 1.4 MiB/s | 126.7 KiB | 00m00s
[4/4] Installing gambas3-gb-qt6-opengl-0:3.20.1-1.fc41.x86_64 100% | 15.1 KiB/s | 27.2 KiB | 00m02s
Complete!
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ gambas3
gb.gui: warning: ‘gb.qt6.webview’ component not found, using ‘gb.gtk3’ instead

** (org.gambas.17055:17055): WARNING **: 18:33:30.189: Disabled hardware acceleration because GTK failed to initialize GL: Unable to create a GL context.
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ sudo dnf install gambas3-gb-qt6-webview
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
gambas3-gb-qt6-webview x86_64 3.20.1-1.fc41 updates 69.2 KiB

Transaction Summary:
Installing: 1 package

Total size of inbound packages is 33 KiB. Need to download 33 KiB.
After this operation, 69 KiB extra will be used (install 69 KiB, remove 0 B).
Is this ok [y/N]: y
[1/1] gambas3-gb-qt6-webview-0:3.20.1-1.fc41.x86_64 100% | 97.6 KiB/s | 32.9 KiB | 00m00s

[1/1] Total 100% | 36.2 KiB/s | 32.9 KiB | 00m01s
Running transaction
[1/3] Verify package files 100% | 111.0 B/s | 1.0 B | 00m00s
[2/3] Prepare transaction 100% | 0.0 B/s | 1.0 B | 00m02s
[3/3] Installing gambas3-gb-qt6-webview-0:3.20.1-1.fc41.x86_64 100% | 37.5 KiB/s | 70.8 KiB | 00m02s
Complete!
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ gambas3
libva error: /usr/lib64/dri/iHD_drv_video.so init failed
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$

Is libva-intel-media-driver installed?

chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$ dnf list libva-intel-media-driver
Updating and loading repositories:
Fedora 41 - x86_64 - Updates 100% | 53.5 KiB/s | 28.8 KiB | 00m01s
Fedora 41 - x86_64 - Updates 100% | 1.1 MiB/s | 3.3 MiB | 00m03s
Repositories loaded.
Installed packages
libva-intel-media-driver.x86_64 24.4.4-1.fc41 updates

Available packages
libva-intel-media-driver.i686 24.4.4-1.fc41 updates
chudson@syn-2603-6010-dc40-b500-09ae-3449-973e-1811:~$

This is x86_64 architecture.

Does your hardware have a intel GPU?
Run vainfo to confirm libva is working

$ vainfo
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri-nonfree/radeonsi_drv_video.so
libva info: Trying to open /usr/lib64/dri-freeworld/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 25.0.1 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.14.0-0.rc6.49.fc42.x86_64)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

Maybe the qt6 backend is broken, if so you could remove gambas3-gb-qt6 and use gtk3

bash does not recognize vainfo