Bug 2222489

Summary: [abrt] meld: on_setting_changed(): settings.py:58:on_setting_changed:AttributeError: 'NoneType' object has no attribute 'props'
Product: [Fedora] Fedora Reporter: alod123
Component: meldAssignee: Dominic Hopf <dmaphy>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: alod123, dmaphy, epel-packagers-sig, lkundrak, michel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/6734a8b3ef643fb18308ec019a04d7e8fdd2554
Whiteboard: abrt_hash:0a7d2f64027b1ec0f45051800029babf14695f46;VARIANT_ID=xfce;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description alod123 2023-07-13 01:54:29 UTC
Description of problem:
When will it stop crashing on close?

Version-Release number of selected component:
meld-3.22.0-2.fc38

Additional info:
reporter:       libreport-2.17.11
kernel:         6.3.12-200.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/meld discord-0.0.28-2.spec discord-0.0.28-2.x86_64.spec
cgroup:         0::/user.slice/user-1000.slice/session-4.scope
uid:            0
reason:         settings.py:58:on_setting_changed:AttributeError: 'NoneType' object has no attribute 'props'
executable:     /usr/bin/meld
type:           Python3
package:        meld-3.22.0-2.fc38
runlevel:       N 5
exception_type: AttributeError
crash_function: on_setting_changed
interpreter:    python3-3.11.4-1.fc38.x86_64
comment:        When will it stop crashing on close?

Truncated backtrace:
settings.py:58:on_setting_changed:AttributeError: 'NoneType' object has no attribute 'props'

Traceback (most recent call last):
  File "/usr/bin/meld", line 463, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/bin/meld", line 458, in main
    setup_settings()
  File "/usr/bin/meld", line 317, in setup_settings
    meld.settings.create_settings()
  File "/usr/lib/python3.11/site-packages/meld/settings.py", line 124, in create_settings
    _meldsettings = MeldSettings()
                    ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/meld/settings.py", line 39, in __init__
    self.on_setting_changed(settings, 'prefer-dark-theme')
  File "/usr/lib/python3.11/site-packages/meld/settings.py", line 58, in on_setting_changed
    gtk_settings.props.gtk_application_prefer_dark_theme = prefer_dark
    ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'props'

Local variables in innermost frame:
self: <settings.MeldSettings object at 0x7f6dd43b4ec0 (meld+settings+MeldSettings at 0x559400b94f90)>
settings: <Gio.Settings object at 0x7f6dd43d0840 (GSettings at 0x559400b84970)>
key: 'prefer-dark-theme'
gtk_settings: None
prefer_dark: False

Comment 1 alod123 2023-07-13 01:54:33 UTC
Created attachment 1975519 [details]
File: os_info

Comment 2 alod123 2023-07-13 01:54:34 UTC
Created attachment 1975520 [details]
File: environ

Comment 3 alod123 2023-07-13 01:54:36 UTC
Created attachment 1975521 [details]
File: mountinfo

Comment 4 alod123 2023-07-13 01:54:37 UTC
Created attachment 1975522 [details]
File: open_fds

Comment 5 alod123 2023-07-13 01:54:38 UTC
Created attachment 1975523 [details]
File: namespaces

Comment 6 alod123 2023-07-13 01:54:40 UTC
Created attachment 1975524 [details]
File: backtrace

Comment 7 alod123 2023-07-13 01:54:41 UTC
Created attachment 1975525 [details]
File: cpuinfo