Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 486069

Summary: [GTK3] NullPointerException in TabFolder when running ControlExample
Product: [Eclipse Project] Platform Reporter: Eric Williams <ericwill>
Component: SWTAssignee: Eric Williams <ericwill>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ar.dev, eclipse-bugs, error-reports-inbox, gamuruva, kwpolska, maritumaa, mistria, nicola.buso, peter, psoujany, shallpion
Version: 4.6   
Target Milestone: 4.6 M6   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/64695
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=1a375bfbb7dca92b102db09891a18eeb80d671f2
Whiteboard:
Bug Depends on:    
Bug Blocks: 474628, 480889    

Description Eric Williams CLA 2016-01-18 16:04:57 EST
On GTK3.19.5 (dev branch), launching ControlExample leads to a NullPointerException with the following stack trace:


Exception in thread "main" java.lang.NullPointerException
        at org.eclipse.swt.widgets.TabFolder.gtk_switch_page(TabFolder.java:572)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2019)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4736)
        at org.eclipse.swt.internal.gtk.OS._gtk_widget_show(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_widget_show(OS.java:14956)
        at org.eclipse.swt.widgets.TabFolder.createItem(TabFolder.java:311)
        at org.eclipse.swt.widgets.TabItem.createWidget(TabItem.java:123)
        at org.eclipse.swt.widgets.TabItem.<init>(TabItem.java:75)
        at org.eclipse.swt.examples.controlexample.ControlExample.<init>(ControlExample.java:58)
        at org.eclipse.swt.examples.controlexample.ControlExample.main(ControlExample.java:217)

This doesn't happen on GTK3.18.
Comment 1 Eclipse Genie CLA 2016-01-19 15:23:11 EST
New Gerrit change created: https://git.eclipse.org/r/64695
Comment 3 Eric Williams CLA 2016-02-10 09:35:53 EST
In master now. Fixes ControlExample on both both Wayland and X11 for GTK3.20+.
Comment 4 Alexander Kurtakov CLA 2016-04-15 13:27:50 EDT
*** Bug 491753 has been marked as a duplicate of this bug. ***
Comment 5 Peter Wu CLA 2016-04-29 08:35:08 EDT
Arch Linux user here, looks like there won't be updates for the 4.5 branch anymore[1], can we expect a fix before June or is there a workaround for this issue?

 [1]: https://wiki.eclipse.org/Simultaneous_Release
Comment 6 Eric Williams CLA 2016-05-09 10:43:31 EDT
*** Bug 493245 has been marked as a duplicate of this bug. ***
Comment 7 Dawid Pakula CLA 2016-05-18 09:47:19 EDT
*** Bug 493891 has been marked as a duplicate of this bug. ***
Comment 8 Mickael Istria CLA 2016-06-02 17:49:09 EDT
*** Bug 491414 has been marked as a duplicate of this bug. ***
Comment 9 Mickael Istria CLA 2016-06-02 17:50:43 EDT
(In reply to Peter Wu from comment #5)
> Arch Linux user here, looks like there won't be updates for the 4.5 branch
> anymore[1], can we expect a fix before June or is there a workaround for
> this issue?
> 
>  [1]: https://wiki.eclipse.org/Simultaneous_Release

You can already get this fix in the milestones/release candidate builds that occur after patch is merged: https://www.eclipse.org/downloads/index-developer.php
Comment 10 Patrik Suzzi CLA 2016-06-02 17:52:40 EDT
*** Bug 493454 has been marked as a duplicate of this bug. ***
Comment 11 Carsten Reckord CLA 2016-06-03 06:41:04 EDT
*** Bug 495374 has been marked as a duplicate of this bug. ***
Comment 12 Patrik Suzzi CLA 2016-06-04 03:19:01 EDT
*** Bug 495368 has been marked as a duplicate of this bug. ***
Comment 13 Alexander Kurtakov CLA 2016-07-03 02:54:56 EDT
*** Bug 497150 has been marked as a duplicate of this bug. ***
Comment 14 Dani Megert CLA 2017-03-29 05:08:17 EDT
*** Bug 514291 has been marked as a duplicate of this bug. ***
Comment 15 Dani Megert CLA 2018-05-04 05:17:29 EDT
*** Bug 534355 has been marked as a duplicate of this bug. ***