Bug 633999

Summary: [abrt] Miro-3.0.2-1.fc13: __init__.py:52:_init:RuntimeError: could not open display
Product: [Fedora] Fedora Reporter: laurelai <artix>
Component: MiroAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: alex, michel, will.guaraldi
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard: abrt_hash:4f66cc03
Fixed In Version: Miro-3.0.3-2.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-28 05:28:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
Patch for Miro to exit gracefully when there is no available display none

Description laurelai 2010-09-14 21:28:04 UTC
abrt version: 1.1.13
architecture: i686
component: Miro
executable: /usr/lib/python2.6/site-packages/miro/plat/renderers/gst_extractor.py
kernel: 2.6.33.8-149.fc13.i686.PAE
package: Miro-3.0.2-1.fc13
reason: __init__.py:52:_init:RuntimeError: could not open display
release: Fedora release 13 (Goddard)
time: 1283647033
uid: 500

backtrace
-----
__init__.py:52:_init:RuntimeError: could not open display

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/miro/plat/renderers/gst_extractor.py", line 33, in <module>
    import gtk
  File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
    _init()
  File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display

Local variables in innermost frame:
sys: <module 'sys' (built-in)>
sys_path: ['/usr/lib/python2.6/site-packages/miro/plat/renderers', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/PIL', '/usr/lib/python2.6/site-packages/gst-0.10', '/usr/lib/python2.6/site-packages/gtk-2.0', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', '/usr/lib/python2.6/site-packages/webkit-1.0', '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']

Comment 1 laurelai 2010-09-14 21:28:06 UTC
Created an attachment (id=447327)
File: backtrace

Comment 2 Michel Lind 2010-09-20 05:41:43 UTC
Created attachment 448355 [details]
Patch for Miro to exit gracefully when there is no available display

Miro, quite obviously, needs a display to work. But perhaps this can be handled without crashing, and with a better error message?

Comment 3 Michel Lind 2010-09-20 06:21:53 UTC
Filed upstream, http://bugzilla.pculture.org/show_bug.cgi?id=14610

Comment 4 Fedora Update System 2010-09-20 06:42:14 UTC
Miro-3.0.3-2.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/Miro-3.0.3-2.fc13

Comment 5 Fedora Update System 2010-09-20 06:42:18 UTC
Miro-3.0.3-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/Miro-3.0.3-2.fc14

Comment 6 will kahn-greene 2010-09-20 13:07:57 UTC
(In reply to comment #2)
> Created attachment 448355 [details]
> Patch for Miro to exit gracefully when there is no available display
> 
> Miro, quite obviously, needs a display to work. But perhaps this can be handled
> without crashing, and with a better error message?

As a side note, there's a curses interface for Miro:

    miro --frontend=cli

It's a feature we don't spend a ton of time on, but I'm pretty sure someone goes through to make sure it mostly works for each release.  This interface does not require a working DISPLAY.

Comment 7 Michel Lind 2010-09-20 17:55:32 UTC
(In reply to comment #6)
> (In reply to comment #2)
> > Created attachment 448355 [details] [details]
> > Patch for Miro to exit gracefully when there is no available display
> > 
> > Miro, quite obviously, needs a display to work. But perhaps this can be handled
> > without crashing, and with a better error message?
> 
> As a side note, there's a curses interface for Miro:
> 
>     miro --frontend=cli
> 
Hi Will,

Interesting. Two thoughts:
1. how useful is this front-end?
2. should running miro without $DISPLAY set provide a suggestion that the CLI option is used? I won't pull the update I've already pushed out, but perhaps the wording could be changed upstream for 3.0.4 or whatever number ended up on the next release.

Comment 8 Michel Lind 2010-09-20 17:57:38 UTC
Hm, interesting.

$ miro --frontend=cli
ImportError on miro.plat.frontends.cli: No Module named cli


Startup success.
Startup complete.
> _

But it works after that, more or less (the testdialog command goes into an infinite Q-and-A loop)

Comment 9 Fedora Update System 2010-09-20 18:40:03 UTC
Miro-3.0.3-2.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update Miro'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/Miro-3.0.3-2.fc14

Comment 10 will kahn-greene 2010-09-20 20:55:33 UTC
(In reply to comment #7)
> Interesting. Two thoughts:
> 1. how useful is this front-end?

Not to be coy, but it depends on what your needs are.


> 2. should running miro without $DISPLAY set provide a suggestion that the CLI
> option is used? I won't pull the update I've already pushed out, but perhaps
> the wording could be changed upstream for 3.0.4 or whatever number ended up on
> the next release.

I don't think it should.  I applied the patch and it'll come out in Miro 3.5.


(In reply to comment #8)
> Hm, interesting.
> 
> $ miro --frontend=cli
> ImportError on miro.plat.frontends.cli: No Module named cli
> 
> 
> Startup success.
> Startup complete.
> > _
> 
> But it works after that, more or less (the testdialog command goes into an
> infinite Q-and-A loop)

I can't remember if I did the pass for Miro 3.0, but I think I did previous passes.  I tend to flit through the interface and make sure it can do the things I tend to do.

This frontend is not well supported and definitely needs more attention.  I just wanted to point out that it does exist, so if someone needed to use Miro over ssh without forwarding x, they could do so--albeit limitedly.

The ImportError is just logging that Miro does as it looks for the cli frontends.  Miro allows for arbitrary frontends.

I'd love to get some help with this frontend if anyone is interested.

Regardless, this bug will be fixed upstream in 3.5.

Comment 11 Michel Lind 2010-09-20 21:23:17 UTC
(In reply to comment #10)

> I'd love to get some help with this frontend if anyone is interested.
> 
I am certainly interested. Perhaps you could mail me off-list (well, off this bug entry) and we can talk about what you plan for the CLI frontend in the 3.5 development cycle?

Thanks -- Michel

Comment 12 Fedora Update System 2010-09-21 14:22:05 UTC
Miro-3.0.3-2.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/Miro-3.0.3-2.fc12

Comment 13 Fedora Update System 2010-09-28 05:28:35 UTC
Miro-3.0.3-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2010-09-28 05:47:15 UTC
Miro-3.0.3-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2010-09-30 10:24:56 UTC
Miro-3.0.3-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.