Anki hangs at startup and disrupts Unity

Bug #843341 reported by Holger Knust
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
anki (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

1) lsb_relase info:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu oneiric (development branch)
Release: 11.10
Codename: oneiric

2) Package info:
anki:
  Installed: 1.2.8-1
  Candidate: 1.2.8-1
  Version table:
 *** 1.2.8-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages
        100 /var/lib/dpkg/status

3) Anki main menu is expected to show once the splash screen is showing 100%

4) The main menu of Anki never shows. The whole desktop UI become unresponsive. I had to manually kill the process.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: anki 1.2.8-1
ProcVersionSignature: Ubuntu 3.0.0-9.15-generic 3.0.3
Uname: Linux 3.0.0-9-generic x86_64
Architecture: amd64
Date: Tue Sep 6 18:22:15 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110804)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: anki
UpgradeStatus: Upgraded to oneiric on 2011-08-27 (10 days ago)

Revision history for this message
Holger Knust (hknust) wrote :
Revision history for this message
Rodney Lorrimar (rodney-rodney) wrote :

I think I have the same problem with oneiric. Except when this happens to me it brings down my computer and I have to reboot (see bug #843265).

If you run anki from the terminal, do you see this message?

QWidget::setMinimumSize: (MainWindow/AnkiQt) The largest allowed size is (16777215,16777215)

For me anki works fine under metacity but not unity or gnome-shell. It used to work in natty (but with a 1.2.8 deb downloaded from the anki website).

Changed in anki (Ubuntu):
status: New → Confirmed
Revision history for this message
Rodney Lorrimar (rodney-rodney) wrote :

Oh and I tried commenting out all calls to setMinimumSize or setMaximumSize in anki.

dpkg -L anki | grep '\.py' | xargs sed -i.bak -e 's/\(^.*setM[ai][xn]imumSize\)/#\1/'

But it still had the same problem.

Revision history for this message
Holger Knust (hknust) wrote :

I did not see the minimum size message you described, but I am getting an assertion failure message repeatedly

(python:3175): Gtk-CRITICAL **: IA___gtk_widget_style_get: assertion 'GTK_IS_WIDGET (widget)' failed

and then it hangs.

Revision history for this message
Rodney Lorrimar (rodney-rodney) wrote : Re: [Bug 843341] Re: Anki hangs at startup and disrupts Unity

I get the gtk_widget_style_get() GTK_IS_WIDGET(widget) assertions as well as the QWidget::setMinimumSize() error. Perhaps we have separate problems then, I don't know.

Revision history for this message
Holger Knust (hknust) wrote :

No, I think they are related. I copied standard err/out to a file (see attached) and I see the same messages you were reporting.

Revision history for this message
rnsmith2 (rnsmith2) wrote :

This appears to be a bug related to: https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/805303

Work around:

1.) install package qt4-qtconfig

2.) using qtconfig change GUI style to something other than default or GTK+ (recommended: oxygen or motif)

3.) start Anki

Revision history for this message
Holger Knust (hknust) wrote :

I tried the work around suggested by rnsmith2 and it did not work. The Anki GUI does not show and disrupts all other running programs.

Revision history for this message
Rodney Lorrimar (rodney-rodney) wrote :

Thanks Ryan, works for me.

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

Other bug subscribers

Remote bug watches

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