Bug 1038114

Summary: Tkinter in PyPy throws "error: release unlocked lock"
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: pypyAssignee: Matej Stuchlik <mstuchli>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: jberan, mstuchli, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-01 08:19:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miro Hrončok 2013-12-04 13:03:08 UTC
Description of problem:
Skeinforge uses PyPy and Tkinter. Everithing works, but when I want to close a particular window, it is nto closed and I get the following error:

From callback <function PythonCmd at 0x00007f8064935cb8>:
Traceback (most recent call last):
  File "/usr/lib64/pypy-2.2.0/lib_pypy/_tkinter/app.py", line 56, in PythonCmd
    with self.app._tcl_lock_released():
  File "/usr/lib64/pypy-2.2.0/lib-python/2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/usr/lib64/pypy-2.2.0/lib_pypy/_tkinter/app.py", line 164, in _tcl_lock_released
    self._tcl_lock.release()
error: release unlocked lock

Version-Release number of selected component (if applicable):
pypy-2.2.0-1.fc20.x86_64

How reproducible:
Repeats always on my machine.

Steps to Reproduce:
1. Install pypy 2.2.0, tk-devel, skeinforge
2. Run pypy as root, import Tkinter (to bytecompile it) (shouldn't be necessary in 2.2.1)
3. Run the following command (as regular user):

pypy /usr/lib/python2.7/site-packages/skeinforge/skeinforge_application/skeinforge.py

4. In the left lover corner push Skeinforge button and select an STL file

If you need any, grab: http://churchyard.fedorapeople.org/pypy-test.stl

5. Let Skeinforge slice it (app has no response, progress is written in the console)
6. After the slciing a window is open with visualisation of the Gcode
7. Close the new window by clicking on your's window manager close button or hitting Alt+F4 (or in any other regular way of closing the window)

Actual results:
Nothing happens with the window, an error is thrown into the console

Expected results:
Window closes

Additional info:
Works well with Python instead of PyPy (start with step 3. and replace pypy command with python).

Comment 1 Miro Hrončok 2013-12-04 14:18:47 UTC
As Tkinter in PyPy is packaged for Ubuntu (pypy-tk) I've tested the case on Ubuntu 14.04 as well. Their version of PyPy is 2.2.1 with GCC 4.8.2. The bug is not present there.

Comment 2 Fedora End Of Life 2015-05-29 09:54:58 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Miro Hrončok 2015-05-29 10:10:19 UTC
No longer an issue on F21 with pypy 2.4.0.

Comment 4 Matej Stuchlik 2015-06-01 08:19:54 UTC
(In reply to Miro Hrončok from comment #3)
> No longer an issue on F21 with pypy 2.4.0.

Good to hear that :)