JoseExposito / touche

The desktop application to configure Touchégg
GNU General Public License v3.0
543 stars 26 forks source link

TypeError: Adw.Application is undefined #73

Closed neurofreak-alt closed 2 years ago

neurofreak-alt commented 2 years ago

When I run version 2.0.5, I get an error and the program crashes:

$ touche
(com.github.joseexposito.touche:43967): Gjs-CRITICAL **: 16:33:36.156: JS ERROR: TypeError: Adw.Application is undefined
main@webpack:///../src/index.js?:43:23
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/usr/bin/touche:11:17

This is the output of strace:

(com.github.joseexposito.touche:43967): Gjs-CRITICAL **: 16:33:36.156: Script /usr/bin/touche threw an exception  

strace
    108608:     calling init: /usr/lib64/libgtk-4.so.1
    108608:
    108608:     opening file=/usr/lib64/libgtk-4.so.1 [0]; direct_opencount=1
    108608:
    108608:     /usr/lib64/libgtk-4.so.1: error: symbol lookup error: undefined symbol: g_module_check_init (fatal)
    108608:     /usr/lib64/libgtk-4.so.1: error: symbol lookup error: undefined symbol: g_module_unload (fatal)
    108608:
    108608:     file=/usr/lib64/com.github.joseexposito.touche/libadwaita-1.so.0 [0];  dynamically loaded by /usr/lib64/libgmodule-2.0.so.0 [0]
    108608:
    108608:     file=libadwaita-1.so.0 [0];  dynamically loaded by /usr/lib64/libgmodule-2.0.so.0 [0]
    108608:     file=libadwaita-1.so.0 [0];  generating link map
    108608:       dynamic: 0x00007f8c6151ed20  base: 0x00007f8c613f0000   size: 0x0000000000131508
    108608:         entry: 0x00007f8c614050f0  phdr: 0x00007f8c613f0040  phnum:                  9
    108608:
    108608:
    108608:     calling init: /usr/lib64/libadwaita-1.so.0
    108608:
    108608:     opening file=/usr/lib64/libadwaita-1.so.0 [0]; direct_opencount=1
    108608:
    108608:     /usr/lib64/libadwaita-1.so.0: error: symbol lookup error: undefined symbol: g_module_check_init (fatal)
    108608:     /usr/lib64/libadwaita-1.so.0: error: symbol lookup error: undefined symbol: g_module_unload (fatal)

(com.github.joseexposito.touche:108608): Gjs-CRITICAL **: 15:06:17.606: JS ERROR: TypeError: Adw.Application is undefined
main@webpack:///../src/index.js?:43:23
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/usr/bin/touche:11:17

(com.github.joseexposito.touche:108608): Gjs-CRITICAL **: 15:06:17.606: Script /usr/bin/touche threw an exception

What can it be and what should I check?

JoseExposito commented 2 years ago

Hi! And thanks for the bug report. How did you install Touché? For Flathub?

If not, I really recommend to use the Flatpak package, as it bundles all dependencies.

The crash looks like an issue finding libadwaita, or a modern version of it.