Avviando Gnome software il computer non risponde più

Ho notato da qualche giorno che, quando provo ad avviare l’applicazione “Software” (gnome-software), il computer si blocca completamente. Per un po’ vedo il mouse muoversi molto lentamente, e poi c’è più nulla. L’immagine sul monitor rimane perfettamente visibile, ma tastiera e mouse (premendo CAPS LOCK la luce non si accende), e l’unico modo di riprendere il controllo è un reset brutale.
È lo stesso effetto che avevo a causa del https://bugzilla.redhat.com/show_bug.cgi?id=754882, solo che in quel caso i blocchi erano frequenti (anche 5-6 in un’ora), senza una causa apparente, e legati all’uso dei driver nouveau con la mia scheda video NVIDIA Corporation GT215.
Invece in questo caso sto usando i driver proprietari Nvidia versione 340, il computer va benissimo finchè non apro “Software”, e si blocca irrevocabilmente tutte le volte che apro l’applicazione.
Qualche giorno fa, in seguito ad uno di questi blocci, ho riavviato in Ubuntu per non aggiungere nulla al registro, e salvato la parte finale di /var/log/messages:

Dec 20 12:31:42 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.Terminal' Dec 20 12:31:42 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.Terminal' Dec 20 12:31:47 localhost /usr/libexec/gdm-x-session: (II) NVIDIA(GPU-0): Display (Samsung SyncMaster (DFP-0)) does not support NVIDIA Dec 20 12:31:47 localhost /usr/libexec/gdm-x-session: (II) NVIDIA(GPU-0): 3D Vision stereo. Dec 20 12:31:47 localhost gnome-shell.desktop: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2a0000b (MAME: Peng) Dec 20 12:31:47 localhost gnome-shell.desktop: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2a0000b (MAME: Peng) Dec 20 12:32:06 localhost kernel: perf interrupt took too long (5012 > 5000), lowering kernel.perf_event_max_sample_rate to 25000 Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.ControlCenter.SearchProvider' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.Boxes.SearchProvider' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.Calculator.SearchProvider' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.Contacts.SearchProvider' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.Documents' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.Nautilus' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.Bijiben.SearchProvider' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.clocks' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Activating service name='org.gnome.seahorse.Application' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.Calculator.SearchProvider' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.Boxes.SearchProvider' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.Nautilus' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.ControlCenter.SearchProvider' Dec 20 12:36:12 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.clocks' Dec 20 12:36:13 localhost org.gnome.Nautilus: Initializing nautilus-image-converter extension Dec 20 12:36:13 localhost org.gnome.Nautilus: Initializing nautilus-dropbox 2.10.0 Dec 20 12:36:13 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.seahorse.Application' Dec 20 12:36:13 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.Documents' Dec 20 12:36:13 localhost gnome-shell.desktop: Gjs-Message: JS LOG: Invalid result meta returned from search provider org.gnome.Nautilus.desktop Dec 20 12:36:13 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.Contacts.SearchProvider' Dec 20 12:36:13 localhost dbus[843]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' Dec 20 12:36:13 localhost systemd: Started Bluetooth service. Dec 20 12:36:13 localhost /usr/libexec/gdm-x-session: Successfully activated service 'org.gnome.Bijiben.SearchProvider' Dec 20 12:36:14 localhost org.gnome.Bijiben.SearchProvider: Unable to load location /home/marco/.local/share/bijiben: File o directory non esistente Dec 20 12:36:14 localhost org.gnome.Bijiben.SearchProvider: (bijiben-shell-search-provider:18335): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed Dec 20 12:36:14 localhost org.gnome.Bijiben.SearchProvider: (bijiben-shell-search-provider:18335): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed Dec 20 12:36:14 localhost org.gnome.Bijiben.SearchProvider: (bijiben-shell-search-provider:18335): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed Dec 20 12:36:14 localhost org.gnome.Bijiben.SearchProvider: sending the mass change Dec 20 12:36:15 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon klipper: Icona «klipper» non presente nel tema (null) Dec 20 12:36:15 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon klipper: Icona «klipper» non presente nel tema (null) Dec 20 12:36:16 localhost org.gnome.Bijiben.SearchProvider: (bijiben-shell-search-provider:18335): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed Dec 20 12:36:16 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon klipper: Icona «klipper» non presente nel tema (null) Dec 20 12:36:16 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon klipper: Icona «klipper» non presente nel tema (null) Dec 20 12:36:17 localhost PackageKit: resolve transaction /6107_eedebabb from uid 1000 finished with cancelled after 1687ms Dec 20 12:36:19 localhost PackageKit: resolve transaction /6108_cdbcadaa from uid 1000 finished with success after 1948ms Dec 20 12:36:19 localhost PackageKit: resolve transaction /6109_ecaadecd from uid 1000 finished with success after 127ms Dec 20 12:36:19 localhost PackageKit: resolve transaction /6110_aebdddde from uid 1000 finished with success after 137ms Dec 20 12:36:19 localhost PackageKit: resolve transaction /6111_adadabae from uid 1000 finished with success after 131ms Dec 20 12:36:19 localhost PackageKit: get-details transaction /6112_caeceaab from uid 1000 finished with success after 19ms Dec 20 12:36:19 localhost PackageKit: get-details transaction /6113_edcebdcb from uid 1000 finished with success after 16ms Dec 20 12:36:19 localhost PackageKit: get-details transaction /6114_ceabaedd from uid 1000 finished with success after 17ms Dec 20 12:36:19 localhost dbus[843]: [system] Activating service name='org.freedesktop.fwupd' (using servicehelper) Dec 20 12:36:20 localhost PackageKit: get-packages transaction /6115_acdaccad from uid 1000 finished with success after 276ms Dec 20 12:36:27 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon hwinfo: Icona «hwinfo» non presente nel tema (null) Dec 20 12:36:28 localhost kernel: INFO: NMI handler (perf_event_nmi_handler) took too long to run: 5.054 msecs Dec 20 12:36:28 localhost kernel: perf interrupt took too long (44266 > 9615), lowering kernel.perf_event_max_sample_rate to 13000 Dec 20 12:36:29 localhost kernel: perf interrupt took too long (43950 > 17857), lowering kernel.perf_event_max_sample_rate to 7000 Dec 20 12:36:30 localhost /usr/libexec/gdm-x-session: (II) SYN_DROPPED event from "Logitech USB Optical Mouse" - some input events have been lost. Dec 20 12:36:30 localhost kernel: perf interrupt took too long (43644 > 31250), lowering kernel.perf_event_max_sample_rate to 4000 Dec 20 12:36:36 localhost kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Dec 20 12:36:36 localhost kernel: perf interrupt took too long (80277 > 62500), lowering kernel.perf_event_max_sample_rate to 2000 Dec 20 12:36:41 localhost kernel: perf interrupt took too long (154881 > 125000), lowering kernel.perf_event_max_sample_rate to 1000 Dec 20 12:36:41 localhost dbus[843]: [system] Failed to activate service 'org.bluez': timed out Dec 20 12:37:12 localhost kernel: INFO: NMI handler (perf_event_nmi_handler) took too long to run: 5.067 msecs Dec 20 12:37:13 localhost kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Dec 20 12:37:13 localhost kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Dec 20 12:37:13 localhost kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Dec 20 12:37:13 localhost kernel: INFO: NMI handler (perf_event_nmi_handler) took too long to run: 29.621 msecs Dec 20 12:37:13 localhost dbus[843]: [system] Failed to activate service 'org.freedesktop.fwupd': timed out Dec 20 12:37:13 localhost rtkit-daemon[853]: The canary thread is apparently starving. Taking action. Dec 20 12:37:13 localhost rtkit-daemon[853]: Demoting known real-time threads. Dec 20 12:37:13 localhost rtkit-daemon[853]: Successfully demoted thread 2299 of process 2230 (/usr/bin/pulseaudio). Dec 20 12:37:13 localhost rtkit-daemon[853]: Successfully demoted thread 2296 of process 2230 (/usr/bin/pulseaudio). Dec 20 12:37:13 localhost rtkit-daemon[853]: Successfully demoted thread 2293 of process 2230 (/usr/bin/pulseaudio). Dec 20 12:37:13 localhost rtkit-daemon[853]: Successfully demoted thread 2230 of process 2230 (/usr/bin/pulseaudio). Dec 20 12:37:13 localhost rtkit-daemon[853]: Demoted 4 threads. Dec 20 12:37:13 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: Failed to start fwupd: Errore nel chiamare StartServiceByName per org.freedesktop.fwupd: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.fwupd': timed out Dec 20 12:37:34 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon ssh-askpass-gnome: Icona «ssh-askpass-gnome» non presente nel tema (null) Dec 20 12:37:34 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon logviewer: Icona «logviewer» non presente nel tema (null) Dec 20 12:37:36 localhost kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Dec 20 12:37:43 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon klipper: Icona «klipper» non presente nel tema (null) Dec 20 12:37:43 localhost systemd: dev-disk-by\x2duuid-82f4ae8a\x2db435\x2d4c9c\x2db701\x2dac49849225e5.device: Job dev-disk-by\x2duuid-82f4ae8a\x2db435\x2d4c9c\x2db701\x2dac49849225e5.device/start timed out. Dec 20 12:37:43 localhost systemd: Timed out waiting for device dev-disk-by\x2duuid-82f4ae8a\x2db435\x2d4c9c\x2db701\x2dac49849225e5.device. Dec 20 12:37:43 localhost systemd: Dependency failed for /mnt/Film/Fantascienza. Dec 20 12:37:43 localhost systemd: mnt-Film-Fantascienza.mount: Job mnt-Film-Fantascienza.mount/start failed with result 'dependency'. Dec 20 12:37:43 localhost systemd: dev-disk-by\x2duuid-82f4ae8a\x2db435\x2d4c9c\x2db701\x2dac49849225e5.device: Job dev-disk-by\x2duuid-82f4ae8a\x2db435\x2d4c9c\x2db701\x2dac49849225e5.device/start failed with result 'timeout'. Dec 20 12:37:43 localhost systemd: dev-disk-by\x2duuid-0C45C8A52349BF53.device: Job dev-disk-by\x2duuid-0C45C8A52349BF53.device/start timed out. Dec 20 12:37:43 localhost systemd: Timed out waiting for device dev-disk-by\x2duuid-0C45C8A52349BF53.device. Dec 20 12:37:43 localhost systemd: Dependency failed for /mnt/HD_USB. Dec 20 12:37:43 localhost systemd: mnt-HD_USB.mount: Job mnt-HD_USB.mount/start failed with result 'dependency'. Dec 20 12:37:43 localhost systemd: dev-disk-by\x2duuid-0C45C8A52349BF53.device: Job dev-disk-by\x2duuid-0C45C8A52349BF53.device/start failed with result 'timeout'. Dec 20 12:37:43 localhost systemd: dev-disk-by\x2duuid-e7415eb9\x2dd223\x2d4434\x2da290\x2d6be6928ca073.device: Job dev-disk-by\x2duuid-e7415eb9\x2dd223\x2d4434\x2da290\x2d6be6928ca073.device/start timed out. Dec 20 12:37:43 localhost systemd: Timed out waiting for device dev-disk-by\x2duuid-e7415eb9\x2dd223\x2d4434\x2da290\x2d6be6928ca073.device. Dec 20 12:37:43 localhost systemd: Dependency failed for /mnt/Film/AltriFilm. Dec 20 12:37:43 localhost systemd: mnt-Film-AltriFilm.mount: Job mnt-Film-AltriFilm.mount/start failed with result 'dependency'. Dec 20 12:37:43 localhost systemd: dev-disk-by\x2duuid-e7415eb9\x2dd223\x2d4434\x2da290\x2d6be6928ca073.device: Job dev-disk-by\x2duuid-e7415eb9\x2dd223\x2d4434\x2da290\x2d6be6928ca073.device/start failed with result 'timeout'. Dec 20 12:37:44 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon java: Icona «java» non presente nel tema (null) Dec 20 12:37:47 localhost kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Dec 20 12:37:52 localhost kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Dec 20 12:37:57 localhost kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Dec 20 12:37:59 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon plasma: Icona «plasma» non presente nel tema (null) Dec 20 12:38:05 localhost chronyd[878]: Source 2001:b02:400:1::1 replaced with 212.45.144.3 Dec 20 12:38:10 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon documentation: Icona «documentation» non presente nel tema (null) Dec 20 12:38:10 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon documentation: Icona «documentation» non presente nel tema (null) Dec 20 12:38:10 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon plasma: Icona «plasma» non presente nel tema (null) Dec 20 12:38:10 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon java: Icona «java» non presente nel tema (null) Dec 20 12:38:10 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon klipper: Icona «klipper» non presente nel tema (null) Dec 20 12:38:10 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon logviewer: Icona «logviewer» non presente nel tema (null) Dec 20 12:38:10 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon ssh-askpass-gnome: Icona «ssh-askpass-gnome» non presente nel tema (null) Dec 20 12:38:10 localhost gnome-software-service.desktop: (org.gnome.Software:2547): GsPlugin-WARNING **: failed to load stock icon hwinfo: Icona «hwinfo» non presente nel tema (null)

  1. Succede anche a qualcun altro?
  2. Idee sulla causa?

Mmm…

kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context

Pare ci siano altre persone che col 340 hanno lo stesso messaggio e freeze parziali o totali. Ad esempio:
https://github.com/ValveSoftware/Dota-2/issues/204

No, tutto regolare qui. Driver Intel peró…

[quote=frafra]Mmm…

kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context

Pare ci siano altre persone che col 340 hanno lo stesso messaggio e freeze parziali o totali. Ad esempio:
https://github.com/ValveSoftware/Dota-2/issues/204[/quote]

Mah, lì si parla di blocchi di pochi secondi, però, mentre i miei sono definitivi; inoltre la cosa strana è che sono sempre legati ad una specifica applicazione.

N.B. Sui portatili (uno con scheda Intel, e un altro con doppia scheda e bumblebee (la nvidia lì è una GeForce GT 630M) è tutto a posto.