Skip to content

Image loading with scaling different than 100% causes crash of CDT (GTK Linux) #3404

Description

@VK2BEA

There are actions using CDT that cause a null pointer exception when window scaling is other than 100%.
A developer of CDT attributes this to a problem with image loading using SWT.

!ENTRY org.eclipse.jface 4 2 2026-06-26 18:35:49.404
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/java.util.ImmutableCollections$ListN.get(ImmutableCollections.java:687)
at org.eclipse.jface.resource.URLImageDescriptor.loadImageFromStream(URLImageDescriptor.java:151)
at org.eclipse.jface.resource.URLImageDescriptor.getImageData(URLImageDescriptor.java:136)
at org.eclipse.jface.resource.URLImageDescriptor.getImageData(URLImageDescriptor.java:108)

This may be specifically for Linux/GTK which uses gdk-pixbuf. The potentially significant parameters that trigger this issue appear to be:

Xubuntu 26.04 & Fedora 44
Wayland
Scaling not 100%
GIF image (image file provided by CDT)

If you are reporting a crash on Linux, please check if webkit is mentioned in the crash file.
If yes, please try to set WEBKIT_DISABLE_COMPOSITING_MODE=1 and/or WEBKIT_DISABLE_DMABUF_RENDERER=1 environment variables.

This makes no difference.

Please see eclipse-cdt/cdt#1481 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions