Bug 1349006

Summary: [abrt] arandr: xrandr.py:42:__init__:Exception: XRandR 1.2/1.3 required.
Product: [Fedora] Fedora Reporter: Sam Roza <sroza>
Component: arandrAssignee: Maros Zatko <mzatko>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: charims, darthludi, mastaizawfm, me, mvanross, mzatko, pfpschneider, thrcka
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/3ea34665330ac211da8cbe493b3de024ce7a309b
Whiteboard: abrt_hash:e640c20ea8b1ab35f7152cc86de8ba4d577fca08;VARIANT_ID=workstation;
Fixed In Version: arandr-0.1.9-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-24 19:22:25 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
File: environ none

Description Sam Roza 2016-06-22 13:43:51 UTC
Description of problem:
Was opening ARandR using "windows" key menu. It was immediately closed as crashed.

Version-Release number of selected component:
arandr-0.1.7.1-6.fc24

Additional info:
reporter:       libreport-2.7.1
cmdline:        /usr/bin/python /usr/bin/arandr
executable:     /usr/bin/arandr
kernel:         4.5.7-300.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
reproducible:   The problem is reproducible
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
xrandr.py:42:__init__:Exception: XRandR 1.2/1.3 required.

Traceback (most recent call last):
  File "/usr/bin/arandr", line 42, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/screenlayout/gui.py", line 318, in main
    force_version=options.force_version
  File "/usr/lib/python2.7/site-packages/screenlayout/gui.py", line 157, in __init__
    self.widget = widget.ARandRWidget(display=randr_display, force_version=force_version)
  File "/usr/lib/python2.7/site-packages/screenlayout/widget.py", line 48, in __init__
    self._xrandr = XRandR(display=display, force_version=force_version)
  File "/usr/lib/python2.7/site-packages/screenlayout/xrandr.py", line 42, in __init__
    raise Exception("XRandR 1.2/1.3 required.")
Exception: XRandR 1.2/1.3 required.

Local variables in innermost frame:
self: <screenlayout.xrandr.XRandR object at 0x7f4238795090>
force_version: None
version_output: 'xrandr program version       1.5.0\nServer reports RandR version 1.5\n'
display: None

Potential duplicate: bug 922336

Comment 1 Sam Roza 2016-06-22 13:43:55 UTC
Created attachment 1170753 [details]
File: backtrace

Comment 2 Sam Roza 2016-06-22 13:43:57 UTC
Created attachment 1170754 [details]
File: environ

Comment 3 Chad Hirsch 2016-07-06 17:20:02 UTC
Affects me as well.

Comment 4 Wei-Lun Chao 2016-07-11 02:25:39 UTC
*** Bug 1353892 has been marked as a duplicate of this bug. ***

Comment 5 Peter F. Patel-Schneider 2016-07-18 05:40:49 UTC
Similar problem has been detected:

I just tried to start arandr 

reporter:       libreport-2.7.1
cmdline:        /usr/bin/python /usr/bin/arandr
event_log:      2016-07-17-22:38:58> ('report_uReport' completed successfully)
executable:     /usr/bin/arandr
kernel:         4.6.3-300.fc24.x86_64
package:        arandr-0.1.7.1-6.fc24
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
reason:         xrandr.py:42:__init__:Exception: XRandR 1.2/1.3 required.
reproducible:   Not sure how to reproduce the problem
runlevel:       N 5
type:           Python
uid:            1316

Comment 6 Mark van Rossum 2017-06-23 17:56:22 UTC
Trivial version problem that you can fix
by editing line 41 of /usr/lib/python2.7/site-packages/screenlayout/xrandr.py
For instance by replacing 1.2 with 1.5


Still it is a bug of course...

Comment 7 Mark van Rossum 2017-06-23 18:04:59 UTC
PS  bit odd to get this error in FC24, which presumably still has an old version of xrandr.

I got it with FC26 beta which has xrandr 1.5

Comment 8 Fedora Update System 2017-07-20 18:35:12 UTC
arandr-0.1.9-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bc77b98fda

Comment 9 Fedora Update System 2017-07-23 09:58:15 UTC
arandr-0.1.9-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-bc77b98fda

Comment 10 Fedora Update System 2017-07-24 19:22:25 UTC
arandr-0.1.9-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.