Bug 2217099

Summary: [abrt] variety: on_copyto_changed(): PreferencesVarietyDialog.py:1257:on_copyto_changed:FileNotFoundError: [Errno 2] No such file or directory: '/home/mianosm/Pictures/Wallpapers'
Product: [Fedora] Fedora Reporter: Steven Miano <mianosm>
Component: varietyAssignee: MartinKG <mgansser>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 38CC: mgansser, mianosm
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/1728a476d006fc7ea872c2b924795d6f50ed71b
Whiteboard: abrt_hash:c4672df1c8a3b267974da0c750ef74a36d07bb27;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-08 13:06:01 UTC 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 Steven Miano 2023-06-23 21:33:03 UTC
Description of problem:
Killed off the 'variety' application, and then attempted to reluanch it through GNOME. Immediately crashed.

Version-Release number of selected component:
variety-0.8.10-1.fc38

Additional info:
reporter:       libreport-2.17.10
kernel:         6.3.6-200.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/variety --profile /home/mianosm/.config/variety/
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-variety-3198.scope
uid:            1000
reason:         PreferencesVarietyDialog.py:1257:on_copyto_changed:FileNotFoundError: [Errno 2] No such file or directory: '/home/mianosm/Pictures/Wallpapers'
executable:     /usr/bin/variety
type:           Python3
package:        variety-0.8.10-1.fc38
runlevel:       N 5
exception_type: FileNotFoundError
crash_function: on_copyto_changed
interpreter:    python3-3.11.3-2.fc38.x86_64
comment:        Killed off the 'variety' application, and then attempted to reluanch it through GNOME. Immediately crashed.

Truncated backtrace:
PreferencesVarietyDialog.py:1257:on_copyto_changed:FileNotFoundError: [Errno 2] No such file or directory: '/home/mianosm/Pictures/Wallpapers'

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/variety/VarietyWindow.py", line 181, in _delayed
    self.create_preferences_dialog()
  File "/usr/lib/python3.11/site-packages/variety/VarietyWindow.py", line 218, in create_preferences_dialog
    self.preferences_dialog = PreferencesVarietyDialog(parent=self)  # pylint: disable=E1102
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/variety_lib/PreferencesDialog.py", line 40, in __new__
    new_object.finish_initializing(builder, parent)
  File "/usr/lib/python3.11/site-packages/variety/PreferencesVarietyDialog.py", line 94, in finish_initializing
    self.reload()
  File "/usr/lib/python3.11/site-packages/variety/PreferencesVarietyDialog.py", line 354, in reload
    self.on_copyto_enabled_toggled()
  File "/usr/lib/python3.11/site-packages/variety/PreferencesVarietyDialog.py", line 1243, in on_copyto_enabled_toggled
    self.on_copyto_changed()
  File "/usr/lib/python3.11/site-packages/variety/PreferencesVarietyDialog.py", line 1257, in on_copyto_changed
    can_read = os.stat(folder).st_mode | stat.S_IROTH
               ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/mianosm/Pictures/Wallpapers'

Local variables in innermost frame:
self: <PreferencesVarietyDialog.PreferencesVarietyDialog object at 0x7ff6b8ab0200 (PreferencesVarietyDialog at 0x55c63982bf70)>
folder: '/home/mianosm/Pictures/Wallpapers'
under_encrypted: False
can_write: False

Comment 1 Steven Miano 2023-06-23 21:33:06 UTC
Created attachment 1972323 [details]
File: os_info

Comment 2 Steven Miano 2023-06-23 21:33:07 UTC
Created attachment 1972324 [details]
File: environ

Comment 3 Steven Miano 2023-06-23 21:33:09 UTC
Created attachment 1972325 [details]
File: mountinfo

Comment 4 Steven Miano 2023-06-23 21:33:10 UTC
Created attachment 1972326 [details]
File: open_fds

Comment 5 Steven Miano 2023-06-23 21:33:11 UTC
Created attachment 1972327 [details]
File: namespaces

Comment 6 Steven Miano 2023-06-23 21:33:12 UTC
Created attachment 1972328 [details]
File: backtrace

Comment 7 Steven Miano 2023-06-23 21:33:14 UTC
Created attachment 1972329 [details]
File: cpuinfo

Comment 8 Steven Miano 2023-06-23 21:38:37 UTC
This can be closed (possibly as a WONTFIX), ABRT wasn't as straightforward as Bugzilla on the missing directory, though I do wonder if there shouldn't be some better user interaction and try/catch if a directory is missing.