subhra74 / xdm

Powerfull download accelerator and video downloader
https://xtremedownloadmanager.com/
GNU General Public License v2.0
6.41k stars 1.07k forks source link

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

Open AA1999 opened 3 months ago

AA1999 commented 3 months ago

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:

Generated log using below method

Additional context Add any other context about the problem here.

AA1999 commented 3 months ago

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

yehoshu1 commented 2 months ago

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

llTheBlankll commented 1 month ago

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

yogi-satya commented 1 month ago

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)