Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Crash when using recent versions of SWT on Linux
  • From: "Rogers, Will (DLSLtd,RAL,LSCI)" <will.rogers@xxxxxxxxxxxxx>
  • Date: Mon, 16 Nov 2020 15:29:16 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=diamond.ac.uk; dmarc=pass action=none header.from=diamond.ac.uk; dkim=pass header.d=diamond.ac.uk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ew4MMFi+RnmuwJE6KX/5r/vcFhqW+hG/U5Qi0Ene684=; b=c4qnrm+LIlgjvDn43KaXJMaXFOAxPWgXwSNjaPqNxOtOFbN9xhOgyMBJ8RYji1/eiWFuoQfqNY0DODqsc5MbWdl3mXNokQclWT/fZOMgX6Qfdo/Iy40grReTx0XO0TII6SZpIBTthQ1R8DxSJlH8ob6YNqg7AqqB5uFxFO+WPECUI/YwXmT1Fxi8u0Yj5DLKH9vZiOs8qEsJOl/PUvKiJz8bvxZm5wf/7g0jo/cvB+uC53F1hchMvi6OuvR9F9h6O09idnbuSubrAH67S+eJIaomPQ4Z1Mb5jYcWwJz0qLFE9c16UOX3ExSIROne8ljEG76DfQhZavDL9rXrcIEdCQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gvwe7Rbt9a7nlN8OaNO/Nl25wfFhvibl5OGu8xlXh8vixmO02VoitzdwxHR+xmKTzYfccxvkL3lvDO9skaHAMa7/q54mSzsljJdcYV22wawjXo6iwZVOe5wWvnjcgRDGeuajxhvge2LMHCcE9k6GsMmQd46pAbM9lHue42/3yf2qxmqfRWA1NPoMZ4/q0dnbsf4bqo/myOLcPUJdk6xjyJ7LTI3eOKPUkI8161rFaZvdSj8qwK5pDWrU4IvjVDWpB9KJ/oRvlidjDFBUjVqbk5c3SsLMYe88nzWTr/SNb5O8Vl/Jyl6YMHDUdoCVK5h9G/lHpPaDIsiGFAtpasberA==
  • Delivered-to: eclipse-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/eclipse-dev>
  • List-help: <mailto:eclipse-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/eclipse-dev>, <mailto:eclipse-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/eclipse-dev>, <mailto:eclipse-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWqIDyu0ORDn/gukGpKFGfWv+NHanLBy0AgAABKfs=
  • Thread-topic: [eclipse-dev] Crash when using recent versions of SWT on Linux

Hi,

I will open a bug report, but


describes my problem exactly. I will refer to that comment in my bug report.

Thanks,
Will


From: eclipse-dev-bounces@xxxxxxxxxxx <eclipse-dev-bounces@xxxxxxxxxxx> on behalf of Andrey Loskutov <loskutov@xxxxxx>
Sent: 16 November 2020 15:21
To: eclipse-dev@xxxxxxxxxxx <eclipse-dev@xxxxxxxxxxx>
Subject: Re: [eclipse-dev] Crash when using recent versions of SWT on Linux
 
Hi Will,
 
In general most of SWT code expects to be executed on UI (main) thread only, but you seem to work on non UI thread?
If you can provide a standalone reproducer example, please create bug for that, we should discuss on bug.
I guess the new behavior is related to removing locks around native GTK calls.
See 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=546743#c17
https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/155907
https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/155989 .
 
Kind regards,
Andrey Loskutov

Спасение утопающих - дело рук самих утопающих

https://www.eclipse.org/user/aloskutov
 
 
Gesendet: Donnerstag, 22. Oktober 2020 um 15:46 Uhr
Von: "Rogers, Will (DLSLtd,RAL,LSCI)" <will.rogers@xxxxxxxxxxxxx>
An: "eclipse-dev@xxxxxxxxxxx" <eclipse-dev@xxxxxxxxxxx>
Betreff: [eclipse-dev] Crash when using recent versions of SWT on Linux
Hi,
 
I have an Eclipse RCP application that has been around for several years. When updating from Eclipse 2018-12 to 2020-12 I suddenly get a complete crash on Linux (GTK3) when opening a particular editor.
 
Debugging suggests that I get problems when either creating a new SWT Image object or using a GC to draw on that image when not on the main UI thread. redraw() is always called on the UI thread. I can't recreate this in simple SWT applications.
 
When doing this I get a variety of problems including 1) complete crashes with the below message and 2) deadlocks, possibly causing my entire Gnome session to lock up.
 
Has something changed about SWT that causes this problem? Or were we lucky not to see it before?
 
Thanks in advance,
Will Rogers
 
---
 
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
java: xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.

 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 

_______________________________________________ eclipse-dev mailing list eclipse-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev

 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 


Back to the top