Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x11 cleanup must still be done in the UI thread #582

Closed
totaam opened this issue May 28, 2014 · 10 comments
Closed

x11 cleanup must still be done in the UI thread #582

totaam opened this issue May 28, 2014 · 10 comments

Comments

@totaam
Copy link
Collaborator

totaam commented May 28, 2014

Issue migrated from trac ticket # 582

component: server | priority: minor | resolution: fixed

2014-05-28 04:45:16: totaam created the issue


Which is more difficult when we exit on a signal..

[[BR]]

Found this stacktrace in some automated test samples:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/xpra/gtk_common/gobject_util.py", line 30, in do_get_property
    return getattr(self, getter)(pspec.name)
  File "/usr/lib64/python2.7/site-packages/xpra/x11/gtk_x11/composite.py", line 205, in do_get_property_contents_handle
    trap.swallow_synced(set_pixmap)
  File "/usr/lib64/python2.7/site-packages/xpra/gtk_common/error.py", line 136, in swallow_synced
    self.call_synced(fun, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/xpra/gtk_common/error.py", line 119, in call_synced
    return self._call(True, fun, args, kwargs)
  File "/usr/lib64/python2.7/site-packages/xpra/gtk_common/error.py", line 111, in _call
    raise e
AttributeError: 'NoneType' object has no attribute 'xid'

Which can only occur if self._window is set to None by destroy concurrently with a call to do_get_property_contents_handle...

@totaam
Copy link
Collaborator Author

totaam commented Jul 10, 2014

2014-07-10 22:27:17: totaam changed priority from major to minor

@totaam
Copy link
Collaborator Author

totaam commented Jul 10, 2014

2014-07-10 22:27:17: totaam changed status from new to assigned

@totaam
Copy link
Collaborator Author

totaam commented Jul 10, 2014

2014-07-10 22:27:17: totaam edited the issue description

@totaam
Copy link
Collaborator Author

totaam commented Jul 10, 2014

2014-07-10 22:27:17: totaam changed owner from antoine to totaam

@totaam
Copy link
Collaborator Author

totaam commented Jul 10, 2014

2014-07-10 22:27:17: totaam commented


This particular error will no longer be shown as of r6888.

But the underlying issue remains... I am lowering the priority as this only affects exit-on-signal, which makes it less important. See also #626

@totaam
Copy link
Collaborator Author

totaam commented Jan 18, 2015

2015-01-18 10:55:18: totaam commented


See also #626

@totaam
Copy link
Collaborator Author

totaam commented Apr 29, 2015

2015-04-29 09:19:46: antoine changed status from assigned to closed

@totaam
Copy link
Collaborator Author

totaam commented Apr 29, 2015

2015-04-29 09:19:46: antoine set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented Apr 29, 2015

2015-04-29 09:19:46: antoine commented


A similar problem was solved in r9190, I think that r9194 does the same thing for the regular server process. (not needed for the proxy server code)

Closing, will re-open if this breaks anything.

@totaam totaam closed this as completed Apr 29, 2015
@totaam
Copy link
Collaborator Author

totaam commented May 12, 2015

2015-05-12 19:02:16: antoine commented


Note: as per #626#comment:9, we don't cleanup from the UI thread when we exit from the signal handler... it seems we just can't have everything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant