xdm icon indicating copy to clipboard operation
xdm copied to clipboard

Gtk-CRITICAL **: 16:07:07.797: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

Open AA1999 opened this issue 1 year ago • 7 comments

XDM is currently being re-written to be more user friendly and performant, please refer to (https://github.com/subhra74/xdm/discussions/768) for more information

PLEASE DO NOT JUST SAY "It does not work, or something not working etc." Provide enough relevent details so that the issue can be analyzed and reproduced easily

Describe the bug After turning on system tray on the setting the app no longer runs and just closes Running it using the terminal:

❯ xdman-beta
[xdm-15:24:29] Loading config...
[xdm-15:24:29] Application_Startup
[xdm-15:24:30] Loading languages...
[xdm-15:24:30] Language loading ...
[xdm-15:24:30] Loading lang files from: /opt/xdman/Lang/English.txt
[xdm-15:24:30] Loading lang files from: /opt/xdman/Lang/English.txt
[xdm-15:24:30] Language loaded.

(xdm-app:79554): Gtk-CRITICAL **: 15:24:30.426: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
/usr/bin/xdman-beta: line 3: 79554 Segmentation fault      (core dumped) /opt/xdman/xdm-app $@

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings
  2. Click on Show on system tray
  3. See error

Expected behavior The application to launch

Screenshots If applicable, add screenshots to help explain your problem.

please complete the following information:

  • OS: Archkinux
  • Browser Firefox Dev
  • XDM addon Version 2.2
  • XDM Version 8

Generated log using below method

  • https://github.com/subhra74/xdm/wiki/Generate-log-for-troubleshooting

Additional context Add any other context about the problem here.

AA1999 avatar Mar 14 '24 12:03 AA1999

The issue seems to persist regardless of if the system-tray is enabled or not

AA1999 avatar Mar 23 '24 15:03 AA1999

I am having the same issue as well it just appeared randomly. It still downloads files it catches from the browser but wont open the main window

yehoshu1 avatar Apr 12 '24 07:04 yehoshu1

+1, Currently my problem. Running it as a superuser seems to work but a dangerous way to do.

vbatecan avatar May 08 '24 11:05 vbatecan

I resolve this issue by installing libappindicator OS : Ubuntu 24.04

sudo apt install libappindicator3-1

and then modify file /usr/share/applications/xdm-app.desktop, add GDK_BACKEND=x11

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Exec=env GTK_USE_PORTAL=1 GDK_BACKEND=x11 /opt/xdman/xdm-app %U
Type=Application
Terminal=false
Name=Xtreme Download Manager
Comment=Xtreme Download Manager
Categories=Network;
Icon=/opt/xdman/xdm-logo.svg
MimeType=application/xdm-app;x-scheme-handler/xdm-app;
StartupNotify=true

after that, kill xdm process using following command :

ps aux | grep xdm
kill {proccess id}

i remove XDM and added back startup application from Gnome Tweak Tools to prevent issue in next reboot

reference : #1056 (comment)

yogi-satya avatar May 24 '24 12:05 yogi-satya

I resolve this issue by installing libappindicator OS : Ubuntu 24.04

sudo apt install libappindicator3-1

and then modify file /usr/share/applications/xdm-app.desktop, add GDK_BACKEND=x11

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Exec=env GTK_USE_PORTAL=1 GDK_BACKEND=x11 /opt/xdman/xdm-app %U
Type=Application
Terminal=false
Name=Xtreme Download Manager
Comment=Xtreme Download Manager
Categories=Network;
Icon=/opt/xdman/xdm-logo.svg
MimeType=application/xdm-app;x-scheme-handler/xdm-app;
StartupNotify=true

after that, kill xdm process using following command :

ps aux | grep xdm
kill {proccess id}

i remove XDM and added back startup application from Gnome Tweak Tools to prevent issue in next reboot

reference : #1056 (comment)

This solution also works for RedHat 9.4 but GDK_BACKEND=wayland. Thanks!

31i45 avatar Aug 17 '24 14:08 31i45