Bug 2260135 - [abrt] bottles: set_manager(): main_window.py:172:set_manager:AttributeError: 'NoneType' object has no attribute 'runners_available'
Summary: [abrt] bottles: set_manager(): main_window.py:172:set_manager:AttributeError:...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bottles
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:45e8f34abc1caea221409333a5f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-24 16:06 UTC by bdp
Modified: 2024-03-23 00:33 UTC (History)
8 users (show)

Fixed In Version: bottles-51.11-3.fc39 bottles-51.11-3.fc38 bottles-51.11-3.fc40
Clone Of:
Environment:
Last Closed: 2024-03-19 01:10:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2024-01-24 16:06 UTC, bdp
no flags Details
File: environ (1.70 KB, text/plain)
2024-01-24 16:06 UTC, bdp
no flags Details
File: mountinfo (6.16 KB, text/plain)
2024-01-24 16:06 UTC, bdp
no flags Details
File: open_fds (2.88 KB, text/plain)
2024-01-24 16:06 UTC, bdp
no flags Details
File: namespaces (171 bytes, text/plain)
2024-01-24 16:06 UTC, bdp
no flags Details
File: backtrace (656 bytes, text/plain)
2024-01-24 16:06 UTC, bdp
no flags Details
File: cpuinfo (2.83 KB, text/plain)
2024-01-24 16:06 UTC, bdp
no flags Details

Description bdp 2024-01-24 16:06:48 UTC
Version-Release number of selected component:
bottles-1:51.10-2.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.6.9-200.fc39.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bottles
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-com.usebottles.bottles-67415.scope
uid:            1000
reason:         main_window.py:172:set_manager:AttributeError: 'NoneType' object has no attribute 'runners_available'
executable:     /usr/bin/bottles
type:           Python3
package:        bottles-1:51.10-2.fc39
runlevel:       N 5
exception_type: AttributeError
crash_function: set_manager
interpreter:    python3-3.12.1-2.fc39.x86_64

Truncated backtrace:
main_window.py:172:set_manager:AttributeError: 'NoneType' object has no attribute 'runners_available'

Traceback (most recent call last):
  File "/usr/share/bottles/bottles/frontend/windows/main_window.py", line 172, in set_manager
    tmp_runners = [x for x in self.manager.runners_available if not x.startswith('sys-')]
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'runners_available'

Local variables in innermost frame:
result: None
error: AttributeError("'NoneType' object has no attribute 'get'")
self: <main_window.MainWindow object at 0x7fae57676080 (MainWindow at 0x55da6edcde20)>

Comment 1 bdp 2024-01-24 16:06:51 UTC
Created attachment 2010248 [details]
File: os_info

Comment 2 bdp 2024-01-24 16:06:52 UTC
Created attachment 2010249 [details]
File: environ

Comment 3 bdp 2024-01-24 16:06:53 UTC
Created attachment 2010250 [details]
File: mountinfo

Comment 4 bdp 2024-01-24 16:06:54 UTC
Created attachment 2010251 [details]
File: open_fds

Comment 5 bdp 2024-01-24 16:06:56 UTC
Created attachment 2010252 [details]
File: namespaces

Comment 6 bdp 2024-01-24 16:06:57 UTC
Created attachment 2010253 [details]
File: backtrace

Comment 7 bdp 2024-01-24 16:06:58 UTC
Created attachment 2010254 [details]
File: cpuinfo

Comment 8 Sandro 2024-03-04 20:05:30 UTC
I've got an idea for a fix. How would I reproduce this issue to see if my idea fixes it?

Comment 9 bdp 2024-03-04 22:06:14 UTC
opened bottles and crashed 

can diagnose if needed 


reporter:       libreport-2.17.11
kernel:         6.7.7-200.fc39.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bottles
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-com.usebottles.bottles-146506.scope
uid:            1000
reason:         main_window.py:172:set_manager:AttributeError: 'NoneType' object has no attribute 'runners_available'
executable:     /usr/bin/bottles
type:           Python3
package:        bottles-1:51.10-2.fc39
runlevel:       N 5
exception_type: AttributeError
crash_function: set_manager
interpreter:    python3-3.12.2-2.fc39.x86_64

Comment 10 bdp 2024-03-04 22:08:39 UTC
Official Package: false
Version: '51.10'
DE/WM: gnome-classic
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
Graphics:
    vendors:
        intel:
            vendor: intel
            envs:
                DRI_PRIME: '1'
            icd: /usr/share/vulkan/icd.d/intel_hasvk_icd.x86_64.json:/usr/share/vulkan/icd.d/intel_icd.x86_64.json:/usr/share/vulkan/icd.d/intel_hasvk_icd.i686.json:/usr/share/vulkan/icd.d/intel_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.7.7-200.fc39.x86_64
Disk:
    Total: 5615901474816
    Free: 4790272704512
RAM:
    MemTotal: 31.2GiB
    MemAvailable: 26.5GiB
Bottles_envs: null
Tools and Libraries:
    cabextract: true
    p7zip: true
    patool: true
    glibc_min: '2.38'
    icoextract: true
    pefile: true
    orjson: true
    markdown: true
    ImageMagick: true
    FVS: true
    xdpyinfo: true

Comment 11 Sandro 2024-03-04 23:31:49 UTC
I think I have it covered in the coming release. Just a safety belt in the form of a try except wrapper around the crashing call. I plan to push the update within a week. Thanks for the extra info.

Comment 12 bdp 2024-03-06 11:46:55 UTC
'NoneType' object has no attribute 'get'  File "/usr/share/bottles/bottles/backend/utils/threading.py", line 59, in __target
    result = self.task_func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/share/bottles/bottles/frontend/windows/main_window.py", line 231, in get_manager
    mng = Manager(g_settings=self.settings, check_connection=self.utils_conn.aborted_connections == 0)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/share/bottles/bottles/backend/utils/singleton.py", line 6, in __call__
    cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/share/bottles/bottles/backend/managers/manager.py", line 150, in __init__
    times.update(self.checks(install_latest=False, first_run=True).data)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/share/bottles/bottles/backend/managers/manager.py", line 187, in checks
    self.check_runtimes(install_latest) or rv.set_status(False)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/share/bottles/bottles/backend/managers/manager.py", line 462, in check_runtimes
    version = data.get("version")
              ^^^^^^^^


reporter:       libreport-2.17.11
kernel:         6.7.7-200.fc39.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bottles
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-org.gnome.Nautilus
uid:            1000
reason:         main_window.py:172:set_manager:AttributeError: 'NoneType' object has no attribute 'runners_available'
executable:     /usr/bin/bottles
type:           Python3
package:        bottles-1:51.10-2.fc39
runlevel:       N 5
exception_type: AttributeError
crash_function: set_manager
interpreter:    python3-3.12.2-2.fc39.x86_64

Comment 13 Sandro 2024-03-06 17:22:57 UTC
That's a different issue, albeit similar. Any particular steps you took? I'm asking, because "opened bottles and crashed" is a) not very specific and b) not reproducible on my end. I happen to be able to open Bottles just fine on a freshly installed Fedora.

Comment 14 bdp 2024-03-06 19:38:58 UTC
corrupted system is doing this i guess 

I'll fix it when fedora 40 comes out and i reinstall the OS

Comment 15 bdp 2024-03-10 02:37:38 UTC
simple starting of botthes causes crash


reporter:       libreport-2.17.11
kernel:         6.7.7-200.fc39.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bottles
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-adcb246c-ac6e-4474-bbd9-5be662cf820c.scope
uid:            1000
reason:         main_window.py:172:set_manager:AttributeError: 'NoneType' object has no attribute 'runners_available'
executable:     /usr/bin/bottles
type:           Python3
package:        bottles-1:51.10-2.fc39
runlevel:       N 5
exception_type: AttributeError
crash_function: set_manager
interpreter:    python3-3.12.2-2.fc39.x86_64
comment:        simple starting of botthes causes crash

Comment 16 bdp 2024-03-10 19:16:04 UTC
sent in case  this happened to be new 


going to see if fedora 40 solves this 

but may be corruption in my copy of fedora 39

Comment 17 Fedora Update System 2024-03-10 19:40:22 UTC
FEDORA-2024-0dfcd5ea8e (bottles-51.11-3.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0dfcd5ea8e

Comment 18 Fedora Update System 2024-03-10 19:40:34 UTC
FEDORA-2024-5445da7373 (bottles-51.11-3.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-5445da7373

Comment 19 Fedora Update System 2024-03-10 19:40:46 UTC
FEDORA-2024-5932cac21c (bottles-51.11-3.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-5932cac21c

Comment 20 Sandro 2024-03-10 19:45:09 UTC
(In reply to bdp from comment #16)
> sent in case  this happened to be new 
> 
> 
> going to see if fedora 40 solves this 
> 
> but may be corruption in my copy of fedora 39

Feel free to try the update I just pushed from Bodhi. However, with your issue not being reproducible on my end, it's kinda hard to track this down. Should this still happen on a freshly installed system, please open a new issue with as much detail as you have.

Comment 21 Fedora Update System 2024-03-11 00:44:21 UTC
FEDORA-2024-5932cac21c has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5932cac21c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5932cac21c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2024-03-11 01:17:12 UTC
FEDORA-2024-5445da7373 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5445da7373`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5445da7373

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 23 Fedora Update System 2024-03-11 01:39:56 UTC
FEDORA-2024-0dfcd5ea8e has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0dfcd5ea8e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0dfcd5ea8e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 24 Fedora Update System 2024-03-19 01:10:33 UTC
FEDORA-2024-0dfcd5ea8e (bottles-51.11-3.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 25 Fedora Update System 2024-03-19 02:00:14 UTC
FEDORA-2024-5445da7373 (bottles-51.11-3.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 26 Fedora Update System 2024-03-23 00:33:10 UTC
FEDORA-2024-5932cac21c (bottles-51.11-3.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.