| Summary: | Disposing a widgets parent during event processing like focusLost is causing a gpf | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Philipp Simon <philipp_simon> | ||||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | ericwill, ipun, melickm, Silenio_Quarti | ||||||
| Version: | 4.7 | Keywords: | triaged | ||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux-GTK | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Philipp Simon
Created attachment 111253 [details]
snippet showing the problem + snippet showing the workaround + gpf data
Adding the attachment failed the first time. Trying a second time.
Bogdan, could you investigate this one? I can reproduce this on versions of GTK equal or less than 2.8.x. For versions greater than 2.8.x it doesn't GP. Can you verify this on your system? Hi Bogdan, i will try to verify this asap, but since i have to get some sort of vm image or set up a machine with a higher gtk version it might take some time. Thanks so far, Philipp Created attachment 264574 [details]
Snippet reproducing the focus issue
I can't reproduce the crash, *however* I can reproduce the focus issue.
Running the snippet attached and clicking between the two text boxes causes the focus to be lost in between them. If you click a second time the focus returns.
Adjusting priority as well, since this doesn't cause a crash anymore. After looking at this closer I do not think it's reasonable to fix this issue. Strictly speaking, the original widgets that had focus were disposed, so it's not really a bug that they don't have focus again when being recreated. Since the crash is no longer happening I am marking this as WORKSFORME. |