Infinitely shows 'Collecting information'

Bug #1280310 reported by Sergey Basalaev
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
kubuntu-driver-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Package: kubuntu-driver-manager
Version: 14.04ubuntu2

When I open Driver Manager in System Settings it just says
'Collecting information about your system' and shows loading animation infinitely.

Tags: kubuntu trusty
description: updated
Revision history for this message
Rohan Garg (rohangarg) wrote :

Could you paste this into a file, and run python3 /path/to/file.py :

#!/bin/python3
from UbuntuDrivers import detect
print(detect.system_device_drivers())

And comment back on whether the script ever completes?

Changed in kubuntu-driver-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Sergey Basalaev (sbasalaev) wrote :

Yes, completes in about 3 seconds.

Output:
{}

Revision history for this message
Rohan Garg (rohangarg) wrote :

I need some more info :)
Please go through the following steps :

1) Install & start bustle
2) Start recording a new log
3) run : qdbus org.kubuntu.DriverManager /DriverManager org.kubuntu.DriverManager.getDriverDict true
4) Stop logging
5) Attach logs here.

Thanks!

Revision history for this message
Sergey Basalaev (sbasalaev) wrote :

Hmm... qdbus prints error and bustle records no messages

$ qdbus org.kubuntu.DriverManager /DriverManager org.kubuntu.DriverManager.getDriverDict true
Cannot find 'org.kubuntu.DriverManager.getDriverDict' in object /DriverManager at org.kubuntu.DriverManager

Revision history for this message
Rohan Garg (rohangarg) wrote :

Can you check if you have both /usr/lib/kde4/libexec/DriverManager_DBus and /usr/share/dbus-1/services/org.kubuntu.DriverManager.service ?

Revision history for this message
Sergey Basalaev (sbasalaev) wrote :

> Can you check if you have both /usr/lib/kde4/libexec/DriverManager_DBus and /usr/share/dbus-1/services/org.kubuntu.DriverManager.service ?

/usr/lib/kde4/libexec/DriverManager_DBus
exists, is a Python script, is executable

/usr/share/dbus-1/services/org.kubuntu.DriverManager.service
exists, contains

[D-BUS Service]
Name=org.kubuntu.DriverManager
Exec=/usr/lib/kde4/libexec/DriverManager_DBus

Revision history for this message
Rohan Garg (rohangarg) wrote :

And can you check if running : qdbus org.kubuntu.DriverManager /DriverManager : works?

Revision history for this message
Sergey Basalaev (sbasalaev) wrote :

Seems like it does not.

$ qdbus org.kubuntu.DriverManager /DriverManager
Error: org.freedesktop.DBus.Error.Spawn.ChildExited
Process /usr/lib/kde4/libexec/DriverManager_DBus exited with status 1

Revision history for this message
Rohan Garg (rohangarg) wrote :

Aha, can you run : python3 /usr/lib/kde4/libexec/DriverManager_DBus ? If it does, please try the getDriverDict dbus query please.

Revision history for this message
Sergey Basalaev (sbasalaev) wrote :

$ python3 /usr/lib/kde4/libexec/DriverManager_DBus
Traceback (most recent call last):
  File "/usr/lib/kde4/libexec/DriverManager_DBus", line 8, in <module>
    import dbus.mainloop.qt
ImportError: No module named 'dbus.mainloop.qt'

Missing dependency. After installing python3-dbus.mainloop.qt everything works.

Revision history for this message
Rohan Garg (rohangarg) wrote :

Thanks!
Fixed in git

Changed in kubuntu-driver-manager (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Rohan Garg (rohangarg) wrote :

Fix should be released with 0ubuntu3

Changed in kubuntu-driver-manager (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
asavah (irherder) wrote :

Fix doesn't seem to be complete atm.

Same symptoms, I runned all suggested tests here are the results:

$apt-cache policy kubuntu-driver-manager
kubuntu-driver-manager:
  Installed: 14.04ubuntu4
  Candidate: 14.04ubuntu4
  Version table:
 *** 14.04ubuntu4 0
        500 http://ua.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

$python3 test.py
{'/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0': {'drivers': {'nvidia-331': {'from_distro': False, 'free': True, 'recommended': True}, 'nvidia-331-updates': {'from_distro': True, 'free': False, 'recommended': False}, 'nvidia-304': {'from_distro': False, 'free': True, 'recommended': False}, 'xserver-xorg-video-nouveau': {'from_distro': True, 'builtin': True, 'free': True, 'recommended': False}, 'nvidia-304-updates': {'from_distro': True, 'free': False, 'recommended': False}}, 'vendor': 'NVIDIA Corporation', 'model': 'GT215 [GeForce GT 240]', 'modalias': 'pci:v000010DEd00000CA3sv000010DEsd0000075Bbc03sc00i00'}}

-rwxr-xr-x 1 root root 2230 Mar 25 16:09 /usr/lib/kde4/libexec/DriverManager_DBus
-rw-r--r-- 1 root root 93 Mar 25 20:09 /usr/share/dbus-1/services/org.kubuntu.DriverManager.service

$qdbus org.kubuntu.DriverManager /DriverManager
method QDBusRawType::a{sa{sv}} org.kubuntu.DriverManager.devices()
method QString org.freedesktop.DBus.Introspectable.Introspect()

$qdbus org.kubuntu.DriverManager /DriverManager org.kubuntu.DriverManager.getDriverDict true
Cannot find 'org.kubuntu.DriverManager.getDriverDict' in object /DriverManager at org.kubuntu.DriverManager

bustle log attached

Revision history for this message
asavah (irherder) wrote :

PS:

$python3 /usr/lib/kde4/libexec/DriverManager_DBus
Exception ignored in: <bound method BusName.__del__ of <dbus.service.BusName org.kubuntu.DriverManager on <dbus._dbus.SessionBus (session) at 0x7f36bf328360> at 0x7f36bf343080>>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 169, in __del__
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 320, in release_name
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 638, in call_blocking
TypeError: 'NoneType' object is not callable

Revision history for this message
Rohan Garg (rohangarg) wrote :

Hi
Would it be possible for you to run this :

qdbus --literal org.kubuntu.DriverManager /DriverManager org.kubuntu.DriverManager.devices()

Since the method from the python script has changed.

Thanks!

Revision history for this message
asavah (irherder) wrote :

$ qdbus --literal org.kubuntu.DriverManager /DriverManager org.kubuntu.DriverManager.devices()
bash: syntax error near unexpected token `('

$ qdbus --literal org.kubuntu.DriverManager /DriverManager org.kubuntu.DriverManager.devices
[Argument: a{sa{sv}} {"/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0" = [Argument: a{sv} {"vendor" = [Variant(QString): "NVIDIA Corporation"], "model" = [Variant(QString): "GT215 [GeForce GT 240]"], "modalias" = [Variant(QString): "pci:v000010DEd00000CA3sv000010DEsd0000075Bbc03sc00i00"], "drivers" = [Variant: [Argument: a{sa{sb}} {"xserver-xorg-video-nouveau" = [Argument: a{sb} {"free" = true, "from_distro" = true, "recommended" = false, "builtin" = true}], "nvidia-331" = [Argument: a{sb} {"free" = true, "from_distro" = false, "recommended" = true}], "nvidia-331-updates" = [Argument: a{sb} {"free" = false, "from_distro" = true, "recommended" = false}], "nvidia-304" = [Argument: a{sb} {"free" = true, "from_distro" = false, "recommended" = false}], "nvidia-304-updates" = [Argument: a{sb} {"free" = false, "from_distro" = true, "recommended" = false}]}]]}]}]

Revision history for this message
Sergey Basalaev (sbasalaev) wrote :

As for me, this just hangs.

$ qdbus --literal org.kubuntu.DriverManager /DriverManager org.kubuntu.DriverManager.devices
Error: org.freedesktop.DBus.Error.NoReply
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Revision history for this message
Rohan Garg (rohangarg) wrote :

Hi
Please file a new bug with full details on steps you took to reproduce the problem , what you expected the output to be and what really happened.

Please also run kdebugdialog, enable debug output for everything and run the kcm via a console using the following command : kcmshell4 kcm_driver_manager

Revision history for this message
Rohan Garg (rohangarg) wrote :

Oh and ofcourse, please attach the debugging output from the console to the bug report ^^ :)

Revision history for this message
Rohan Garg (rohangarg) wrote :

@Sergey Could you run the script manually as mentioned before and then run the qdbus command?

Revision history for this message
Rohan Garg (rohangarg) wrote :

@asavah Figured out your issue this morning, it's fixed and will land in 14.04ubuntu5 , cheers :)

Revision history for this message
asavah (irherder) wrote :

@rohangarg
TYVM, sorry for not being to able to submit full report with kdebug,
I'm out of office atm, and the machine with fresh (k)ubuntu is there.

Revision history for this message
kmin (kang1032355997) wrote :

@asavah Whether has been resolved

Revision history for this message
asavah (irherder) wrote :

@kmin
Can't tell, sorry.
I switched to mate de more than a year ago.

Revision history for this message
Jonas Gamao (yamiyukisenpai) wrote :

This is now broken again on Kubuntu 19.10

Revision history for this message
Reuben Firmin (reubenf) wrote :

I also have this issue in Kubuntu 19.10.

Appears to be caused by:

```
qdbus org.kubuntu.DriverManager /DriverManager org.kubuntu.DriverManager.getDriverDict true
Cannot find 'org.kubuntu.DriverManager.getDriverDict' in object /DriverManager at org.kubuntu.DriverManager
```

Revision history for this message
J (metal450) wrote :

Broken still in Kubuntu 20.04. Six years and counting.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.