-
Notifications
You must be signed in to change notification settings - Fork 186
[GTK4] Fix segmentation fault when creating multiple displays #1832
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
[GTK4] Fix segmentation fault when creating multiple displays #1832
Conversation
|
See eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java Lines 3774 to 3806 in 857ac0b
Two questions though:
|
Probably leak, but can wait for 4.36 as not new.
This patch seem to be safe for GTK3, and only improves (anyway bad state of) GTK4, so would be OK for RC1. On the other side, there is no reason to rush for exact same reason, so I would propose to wait for 4.36 too. I know at least one company with patches for SWT Display class, and last minute changes are always disruptive. |
Test Results 381 files - 129 381 suites - 129 6m 18s ⏱️ - 2m 9s Results for commit f95cb6b. ± Comparison against base commit cc4c178. This pull request removes 19 tests.♻️ This comment has been updated with latest results. |
That's a fair point. Then I'll wait for the start of the next release cycle. |
Then this company should at best contribute the patches so it becomes less disruptive for them.
I agree and would vote for merging this ASAP, it is not an "improvement" if the process crash with a core dump but a server bug. |
e50069d to
c3cccad
Compare
|
Lets see if it already improves the situation, I added the gtk4 label so it should run the tests with gtk4 enabled. |
|
The segmentation fault is gone, good job, now there are new error that popup but I think that's kind of expected. |
|
At least from my side, the main motivation was to fix the early crash of the test suite. So this is not something I need to have in the RC1. And if the only benefit or merging this is to disrupt someone elses workflow, then I'm also leaning towards postponing this for the next release.
I don't think (or rather hope) there is anyone who uses the GTK4 productively. Especially since e.g. the UnsatisfiedLinkError when handling Expose events made the port effectively unusable, outside of the Snippets. So whether this is merged or not would hardly make a difference.
That is true, though now it seems like the run gets stuck while executing the Browser tests. 😦 |
Every change breaks someones workflow :-P |
I think it would be fine to skip the browsertest with an |
c3cccad to
061b6c1
Compare
|
@ptziegler What do you mean by "Subclasses are not created in GTK4" ? |
This method is effectively skipped in GTK4. It's not the Java inheritance I'm talking about, but e.g. the Pango Layout subclasses that are set when the Display is created. Perhaps I can rephrase it to make it less confusing. eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java Lines 3774 to 3806 in 32032fb
|
Subclasses are not created in GTK4, leading to the assignment of NULL pointers when disposing the display. If a second display is created afterwards, this leads to a segmentation fault. Contributes to eclipse-platform#1663
061b6c1 to
f95cb6b
Compare
|
Jenkins succeeds. Merging. |


Subclasses are not created in GTK4, leading to the assignment of NULL pointers when disposing the display. If a second display is created afterwards, this leads to a segmentation fault.
Contributes to
#1663