[pygtk] Invalid matrix error for just one user!

golnaz nilieh g382nilieh at gmail.com
Wed Oct 20 14:48:40 WST 2010


Hi,
I'm writing an app in python, using pygtk and pangocairo modules.
In the app, I show a dialog to user, to set printing parameters such
as paper type, printer name and page orientation. I create this dialog
using function below:

     page_setup = gtk.print_run_page_setup_dialog()

and then assign it to my print_operation:

     print_operation.set_default_page_setup(page_setup)

But when I call get_cairo_context() function to start drawing pages,
This error appears:

     cairo.Error: invalid matrix (not invertible)

And page drawing stops.
But I printing was OK before I use gtk.print_run_page_setup_dialog() function.
The interesting part is, when I log in as a different user and execute
the code, everything works correctly, with no error!

I tried removing all configuration directories and files (all which
start with '.' ) in my home directory, But it didn't help.

When this error happens? Is there any configuration option for each
user, somewhere out of home directory?


More information about the pygtk mailing list