Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when press settings icon and Edit labels #159

Closed
xoslorg opened this issue Jan 6, 2023 · 18 comments
Closed

Crash when press settings icon and Edit labels #159

xoslorg opened this issue Jan 6, 2023 · 18 comments

Comments

@xoslorg
Copy link

xoslorg commented Jan 6, 2023

/opt/PINCE/GUI/SettingsDialog.py:315: Warning: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-fallback-icon-theme'
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
error:

@xoslorg
Copy link
Author

xoslorg commented Jan 6, 2023

/opt/PINCE/./PINCE.py:1949: Warning: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-fallback-icon-theme'
self.buttonBox.addButton(button)
error:
Killed by signal 11.

@xoslorg xoslorg changed the title Crash when press settings icon Crash when press settings icon and Edit labels Jan 6, 2023
@korcankaraokcu
Copy link
Owner

I cannot seem to reproduce this bug, what's your distro?

@xoslorg
Copy link
Author

xoslorg commented Jan 6, 2023

Archlinux with gnome.

https://youtu.be/yyEl28C-Yxs

@korcankaraokcu
Copy link
Owner

I've done a clean installation of archlinux gnome and can confirm that this issue exists for the specified distro

I've fixed this issue by running export QT_QPA_PLATFORMTHEME=qt5ct on my end. Can you try running this before running pince and tell me if it works? I think you also need to install qt5ct before doing so

@xoslorg
Copy link
Author

xoslorg commented Jan 8, 2023

Thanks, the problem is solved perfectly on my laptop, at home I will try with the desktop.

@korcankaraokcu
Copy link
Owner

Thanks for confirming, apparently this is a gnome related issue. There's a PR that upgrades the pyqt version to 6, if that doesn't fix the issue I'll try to include this in the installation script. Have a nice day

@korcankaraokcu
Copy link
Owner

Apparently this issue doesn't exist in pyqt6, that's a relief

@xoslorg
Copy link
Author

xoslorg commented Jan 21, 2023

With last updates get same error.
/opt/PINCE/GUI/SettingsDialog.py:314: Warning: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-fallback-icon-theme'
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
error:
Killed by signal 6.

@korcankaraokcu
Copy link
Owner

I've done another clean installation of archlinux gnome and unfortunately cannot reproduce the bug above, it's gone after pyqt6 upgrade for me. Maybe try the solution above with qt6ct?

@xoslorg
Copy link
Author

xoslorg commented Jan 25, 2023

With clean installation
/opt/PINCE/GUI/SettingsDialog.py:314: Warning: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-fallback-icon-theme'
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
error:
Killed by signal 11.

with clean installation and qt6ct
/opt/PINCE/GUI/SettingsDialog.py:314: Warning: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-fallback-icon-theme'
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
free(): invalid pointer
error:
Killed by signal 6.

with clean installation and qt6ct & export QT_QPA_PLATFORMTHEME=qt6ct
/opt/PINCE/GUI/SettingsDialog.py:314: Warning: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-fallback-icon-theme'
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
free(): invalid pointer
error:
Killed by signal 6.

@korcankaraokcu
Copy link
Owner

#116

Apparently Offpics has been able to fix it by installing qt5ct and launching it, maybe try that with qt6ct? You probably already installed it, telling that just in case if you haven't launched yet

@xoslorg
Copy link
Author

xoslorg commented Jan 25, 2023

same result with qt5ct
/opt/PINCE/GUI/SettingsDialog.py:314: Warning: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-fallback-icon-theme'
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
free(): invalid pointer
error:
Killed by signal 6.

@korcankaraokcu
Copy link
Owner

No I meant qt6ct and launching it

@xoslorg
Copy link
Author

xoslorg commented Jan 27, 2023

Yes, first with qt6ct.

@korcankaraokcu
Copy link
Owner

Try inserting this to the beginning of pince.py

import gi

gi.require_version('Gtk', '3.0')

This apparently worked for someone else, hopefully it works for you too

@xoslorg
Copy link
Author

xoslorg commented Jan 31, 2023

Good, I just tried it and now it works, thank you very much.

@korcankaraokcu
Copy link
Owner

This will be most likely added to pince soon, I'll notify you

@korcankaraokcu
Copy link
Owner

The patch is up, you can revert your local changes and update the project with git pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants