Bug 1413 - NEWT X11Window: NewtWindows_getFrameExtends(..) may hang on XPeekEvent(..)
Summary: NEWT X11Window: NewtWindows_getFrameExtends(..) may hang on XPeekEvent(..)
Status: RESOLVED FIXED
Alias: None
Product: Newt
Classification: JogAmp
Component: x11 (show other bugs)
Version: 2.4.0
Hardware: All all
: P4 critical
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2019-12-06 08:39 CET by Sven Gothel
Modified: 2019-12-06 08:44 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
578edfc20915e2e2aa18aa06e49f7341f86990c4
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2019-12-06 08:39:58 CET
The wait loop uses XPeekEvent(dpy, &e),
which can block indefinite if queue is empty.

Replace with timeout only _and_ only wait on CreateWindow0(..)
not when queried via X11Display dispatch loop on events 
when it is assumed the information has been propagated already.
Comment 1 Sven Gothel 2019-12-06 08:44:07 CET
commit 578edfc20915e2e2aa18aa06e49f7341f86990c4 fixes this issue as described.