crash while searching for old kernels to clean

Bug #998742 reported by FippiKo on 2012-05-13
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Medium
Ding Zhou

Bug Description

Distribution: Ubuntu 12.04 precise
Application: Ubuntu Tweak 0.7.1-1~precise1
Desktop:ubuntu-2d

When I search for old kernels in the janitor tab, ubuntu-tweak just crashes and disappears.

following ist the output in the console:

[OldKernelPlugin][ERROR]
Distribution: Ubuntu 12.04 precise
Application: Ubuntu Tweak 0.7.1-1~precise1
Desktop:ubuntu-2d

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/janitor/oldkernel_plugin.py", line 40, in get_cruft
    self.emit('scan_finished', True, count, size)
TypeError: could not convert type long to (null) required for parameter 2
 (oldkernel_plugin.py:43)

and following the last lines when running ubuntu-tweak in debug-mode:

[OldKernelPlugin][DEBUG] Find old kernerl: linux-image-3.0.0-17-generic-pae (oldkernel_plugin.py:33)
[OldKernelPlugin][DEBUG] <function _compare_kernel_version at 0x99feaac>: (debug.py:182)
[OldKernelPlugin][DEBUG] args-1: <OldKernelPlugin object at 0x9b9e0f4 (oldkernel_plugin+OldKernelPlugin at 0x9b59e60)> (debug.py:184)
[OldKernelPlugin][DEBUG] args-2: 3.2.0-24 (debug.py:184)
[OldKernelPlugin][DEBUG] <function _compare_kernel_version at 0x99feaac>: (debug.py:182)
[OldKernelPlugin][DEBUG] args-1: <OldKernelPlugin object at 0x9b9e0f4 (oldkernel_plugin+OldKernelPlugin at 0x9b59e60)> (debug.py:184)
[OldKernelPlugin][DEBUG] args-2: 3.2.0-24 (debug.py:184)

(ubuntu-tweak:4915): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion `values != NULL' failed

(ubuntu-tweak:4915): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion `values != NULL' failed

(ubuntu-tweak:4915): Pango-CRITICAL **: pango_layout_new: assertion `context != NULL' failed
Segmentation fault (core dumped)

Related branches

Ding Zhou (tualatrix) on 2012-05-14
Changed in ubuntu-tweak:
milestone: none → 0.7.2
assignee: nobody → Ding Zhou (tualatrix)
importance: Undecided → Medium
status: New → Confirmed
status: Confirmed → Fix Committed
Ding Zhou (tualatrix) on 2012-06-03
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
FippiKo (fippi-ko) wrote :

i updated ubuntu-tweak to the version 0.7.2 but the bug still affects me.

when searching for old kernels, the window just dissapear with following output in the console (after listing some old kernels):

(ubuntu-tweak:5125): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion `values != NULL' failed

(ubuntu-tweak:5125): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion `values != NULL' failed

(ubuntu-tweak:5125): Pango-CRITICAL **: pango_layout_new: assertion `context != NULL' failed

Ding Zhou (tualatrix) wrote :

@fippi-ko

Could you put the full message here? Run Ubuntu Tweak with the debug mode:

ubuntu-tweak -d

FippiKo (fippi-ko) wrote :

full output of "ubuntu-tweak -d"

Ding Zhou (tualatrix) wrote :

No thing wrong with the output.

Could you try to create a new user with administrator permission then try to run Ubuntu Tweak in this account?

FippiKo (fippi-ko) wrote :

Ok, i created a new user "ubuntu-tweak" and ran with it following command: "sudo ubuntu-tweak -d" (and then tried to clean the old kernels)
as attachment the output of the terminal.
(is this what you need?)

If I run "ubuntu-tweak" without sudo, following happen:

No protocol specified
No protocol specified
Traceback (most recent call last):
  File "/usr/bin/ubuntu-tweak", line 29, in <module>
    from gi.repository import Unique, GObject, Gdk, Gtk
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 76, in load_module
    dynamic_module._load()
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 224, in _load
    overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gdk.py", line 349, in <module>
    raise RuntimeError("Gdk couldn't be initialized")
RuntimeError: Gdk couldn't be initialized

Ding Zhou (tualatrix) wrote :

So have you clean the old kernels successfully by ""sudo ubuntu-tweak -d" in the new user?

FippiKo (fippi-ko) wrote :

no, i got the same problem as before (as you see in the output I attached)

Ding Zhou (tualatrix) wrote :

I really have no idea about this...

If you want to clean old kernels, try to run this command under your terminal:

   sudo apt-get remove linux-headers-2.6.38-10 linux-headers-2.6.38-10-generic linux-headers-2.6.38-10-generic-pae linux-headers-2.6.38-11 linux-headers-2.6.38-11-generic linux-headers-2.6.38-11-generic-pae linux-headers-3.0.0-13 linux-headers-3.0.0-13-generic linux-headers-3.0.0-13-generic-pae linux-headers-3.0.0-14 linux-headers-3.0.0-14-generic linux-headers-3.0.0-14-generic-pae linux-headers-3.0.0-15 linux-headers-3.0.0-15-generic linux-headers-3.0.0-15-generic-pae linux-headers-3.0.0-16 linux-headers-3.0.0-16-generic linux-headers-3.0.0-16-generic-pae linux-headers-3.0.0-17 linux-headers-3.0.0-17-generic linux-headers-3.0.0-17-generic-pae linux-image-2.6.38-10-generic linux-image-2.6.38-10-generic-pae linux-image-2.6.38-11-generic linux-image-2.6.38-11-generic-pae linux-image-2.6.38-8-generic linux-image-2.6.38-8-generic-pae linux-image-3.0.0-12-generic linux-image-3.0.0-12-generic-pae linux-image-3.0.0-13-generic linux-image-3.0.0-13-generic-pae linux-image-3.0.0-14-generic linux-image-3.0.0-14-generic-pae linux-image-3.0.0-15-generic linux-image-3.0.0-15-generic-pae linux-image-3.0.0-16-generic linux-image-3.0.0-16-generic-pae linux-image-3.0.0-17-generic linux-image-3.0.0-17-generic-pae

Angel Guzman Maeso (shakaran) wrote :

With Quantal it seems broken:

(ubuntu-tweak:804): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion `values != NULL' failed
[OldKernelPlugin][ERROR]
Distribution: Ubuntu 12.10 quantal
Application: Ubuntu Tweak 0.7.3-0~bzr1869+20120706~quantal1
Desktop:ubuntu-2d

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/janitor/oldkernel_plugin.py", line 40, in get_cruft
    self.emit('scan_finished', True, count, size)
TypeError: could not convert type long to (null) required for parameter 2
 (oldkernel_plugin.py:43)

boskysquelch (boskysquelch) wrote :

it's also still broken in Precise

Ding Zhou (tualatrix) wrote :

@boskysquelch

Did you change your system theme?

walter simens (vienoktaviani) wrote :

the janitor was error on my ubuntu 12.04 LTS
always close unexpectedly

[Janitor][DEBUG] left_view_width is: 235, max_janitor_view_width is: 233 (__init__.py:410)
[Janitor][DEBUG] on_move_handle: 237 (__init__.py:324)
[GSetting][DEBUG] The the value for type: None and value: 237 (gsettings.py:52)
[Janitor][INFO] Scan cruft for all plugins (__init__.py:541)
[Janitor][DEBUG] do_scan_task for chrome_plugin for status: True (__init__.py:568)
[Janitor][INFO] Scan cruft for plugin: ChromiumCachePlugin (__init__.py:571)
[Janitor][DEBUG] Disconnect the cleaned signal, or it will clean many times: chrome_plugin (__init__.py:623)
[Janitor][DEBUG] Pending scan tasks: 2 (__init__.py:631)
[Janitor][DEBUG] do_scan_task for mozilla_plugin for status: True (__init__.py:568)
[Janitor][INFO] Scan cruft for plugin: FirefoxCachePlugin (__init__.py:571)
[Janitor][DEBUG] Disconnect the cleaned signal, or it will clean many times: mozilla_plugin (__init__.py:623)
[Janitor][DEBUG] Pending scan tasks: 1 (__init__.py:631)
[Janitor][DEBUG] do_scan_task for softwarecenter_plugin for status: True (__init__.py:568)
[Janitor][INFO] Scan cruft for plugin: SoftwareCenterCachePlugin (__init__.py:571)
[Janitor][DEBUG] Disconnect the cleaned signal, or it will clean many times: softwarecenter_plugin (__init__.py:623)
[Janitor][DEBUG] total_count is: 1 (__init__.py:634)
[Janitor][INFO] Scan cruft for all plugins (__init__.py:541)
[Janitor][DEBUG] do_scan_task for thumbnailcache_plugin for status: True (__init__.py:568)
[Janitor][INFO] Scan cruft for plugin: ThumbnailCachePlugin (__init__.py:571)
[Janitor][DEBUG] scroll_to_cell: 1 (__init__.py:434)
**
Gtk:ERROR:/build/buildd/gtk+3.0-3.4.2/./gtk/gtktreestore.c:597:gtk_tree_store_get_path: assertion failed: (G_NODE (iter->user_data)->parent != NULL)
Aborted (core dumped)

what happen?

HousieMousie2 (housiemousie2) wrote :

Ubuntu 12.04.2 LTS 3.2.0-51-generic

Bug still present. Dbug attached.

Indio_lmd (indiosster) wrote :

Distribution: Ubuntu 12.04 precise LTS 3.2.0-54-generic
Desktop: gnome-classic
Ubuntu Tweak 0.8.5-1~precise2

Ciao, ho lo stesso problema, appena parte la scansione dei kernel si arresta.
Allegato output di "ubuntu-tweak -d"
---
(ubuntu-tweak:2171): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion `values != NULL' failed

(ubuntu-tweak:2171): Gtk-CRITICAL **: gtk_text_attributes_ref: assertion `values != NULL' failed

(ubuntu-tweak:2171): Pango-CRITICAL **: pango_layout_new: assertion `context != NULL' failed
---

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

Other bug subscribers