Bug 527693 - [Wayland] TextTransfer crash (libX11.so) due to an x11 call gdk_x11_display_utf8_to_compound_text
Summary: [Wayland] TextTransfer crash (libX11.so) due to an x11 call gdk_x11_display_u...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, triaged
: 526002 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-23 15:04 EST by Leo Ufimtsev CLA
Modified: 2018-02-26 23:13 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Ufimtsev CLA 2017-11-23 15:04:25 EST
As reported in RedHat bugzilla:
Bug 1516961 – Eclipse crash after a while of work 
https://bugzilla.redhat.com/show_bug.cgi?id=1516961

There's an unguarded x11 call that's reached by wayland, which leads to a crash.

Probably when user does a drag and drop of text.

TextTransfer.java ... gdk_x11_display_utf8_to_compound_text(..)

We should investigate how to replace that with a call that doesn't use x11.
Comment 1 Leo Ufimtsev CLA 2017-11-23 15:09:22 EST
*** Bug 526002 has been marked as a duplicate of this bug. ***
Comment 2 Leo Ufimtsev CLA 2017-11-23 15:10:01 EST
Additional info in:
Bug 526002 - Eclipse crashes in Wayland. Often if PyDev in Debug mode. 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=526002
Comment 3 Leo Ufimtsev CLA 2017-11-23 15:12:45 EST
If anyone knows a way to reproduce in a stable way. (some DnD operation?), it would help to have the steps listed.
Comment 4 Alexander Kurtakov CLA 2017-11-27 07:48:54 EST
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=fa50d3f2eca0386f99312210ce0d759d45631ef4 should fix the issue.
Compound text is dead nowadays so clients under wayland should not claim support for it. Please reopen if one can still hits it with tomorrow's and any other build after that.
Comment 5 Daniel Heller CLA 2018-02-26 23:13:10 EST
I am very happy to see this type article. it is very useful and exciting. the best blessings of this article is giving properly idea to each and every readers and also it's giving correct impressions. Looking forward to new article. https://rospher.com/services/