FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-31-2012, 02:47 PM
Vratislav Podzimek
 
Default Bug in newui and python-meh problem

When trying to make python-meh exception handling work, I've hit a
traceback [1]. It happens every time, but since it is in separate
thread, without python-meh everything else goes on. I've used the
updates.img to use up to date code.

Another problem is, that if unhandled exception appears in a separate
thread, python-meh displays the mainExceptionWindow, but then
immediately whole Gtk crashes with many error messages on tty1. I guess
the problem is that python-meh runs another Gtk main loop from a different
thread. Any ideas how to resolve that?
Appart from that, I added some patches that make python-meh work
(posted on our patches list).

[1] http://fpaste.org/Fbiu/

--
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 07-31-2012, 02:59 PM
Martin Sivak
 
Default Bug in newui and python-meh problem

Hi,

It might be possible to try equivalent of Gtk2 locking stuff:

gdk.threads_init() // this we probably do

gtk.threads_enter() // this might be used to get a lock on Gtk internals
gtk.threads_leave() // around the meh code in the separate thread

I can't promise it will work though

Martin

----- Original Message -----
> When trying to make python-meh exception handling work, I've hit a
> traceback [1]. It happens every time, but since it is in separate
> thread, without python-meh everything else goes on. I've used the
> updates.img to use up to date code.
>
> Another problem is, that if unhandled exception appears in a separate
> thread, python-meh displays the mainExceptionWindow, but then
> immediately whole Gtk crashes with many error messages on tty1. I
> guess
> the problem is that python-meh runs another Gtk main loop from a
> different
> thread. Any ideas how to resolve that?
> Appart from that, I added some patches that make python-meh work
> (posted on our patches list).
>
> [1] http://fpaste.org/Fbiu/
>
> --
> Vratislav Podzimek
>
> Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
>
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 07-31-2012, 03:33 PM
David Lehman
 
Default Bug in newui and python-meh problem

On Tue, 2012-07-31 at 16:47 +0200, Vratislav Podzimek wrote:
> When trying to make python-meh exception handling work, I've hit a
> traceback [1]. It happens every time, but since it is in separate
> thread, without python-meh everything else goes on. I've used the
> updates.img to use up to date code.

It looks like your updates are messed up. That options keyword argument
was added in commit 36d82ee415e (from 18 July).

David

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 08-01-2012, 08:59 AM
Vratislav Podzimek
 
Default Bug in newui and python-meh problem

On Tue, 2012-07-31 at 10:33 -0500, David Lehman wrote:
> On Tue, 2012-07-31 at 16:47 +0200, Vratislav Podzimek wrote:
> > When trying to make python-meh exception handling work, I've hit a
> > traceback [1]. It happens every time, but since it is in separate
> > thread, without python-meh everything else goes on. I've used the
> > updates.img to use up to date code.
>
> It looks like your updates are messed up. That options keyword argument
> was added in commit 36d82ee415e (from 18 July).
May be, the whole image seems to be messed up. Sorry for the noise
then.

--
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 08-01-2012, 02:24 PM
Chris Lumens
 
Default Bug in newui and python-meh problem

> When trying to make python-meh exception handling work, I've hit a
> traceback [1]. It happens every time, but since it is in separate
> thread, without python-meh everything else goes on. I've used the
> updates.img to use up to date code.

I subclassed the python Thread class to make sure that an exception in
one thread brings down the whole process. By default, an exception in
one thread will just make everything look like it's fine still. So if
you're seeing weird behavior with exceptions in threads not bringing
down all of anaconda, make sure everything is using AnacondaThread.

> Another problem is, that if unhandled exception appears in a separate
> thread, python-meh displays the mainExceptionWindow, but then
> immediately whole Gtk crashes with many error messages on tty1. I guess
> the problem is that python-meh runs another Gtk main loop from a different
> thread. Any ideas how to resolve that?
> Appart from that, I added some patches that make python-meh work
> (posted on our patches list).
>
> [1] http://fpaste.org/Fbiu/

Like Martin said, you could try wrapping it in threads_enter and
threads_leave. See gdk_threaded in pyanaconda/ui/gui/utils.py for a
contextmanager that does just that.

If that doesn't work, we might need to add some additional
communications channel between threads so the subthread can alert the
thread running the UI and it can do the graphical handling.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org