Skip to content

No stack trace or thrower position highlighting on exception #1153

Open
@lammich

Description

@lammich

Most appropriate sub-area of Processing 4?

PDE

Processing version

4.4.4

Operating system

Ubuntu 24.04, Windows 10

Bug description

The location of an exception (e.g. NullPointerException) is not highlighted, nor is a stack trace printed. The only information printed is a red NullPointerException message at the bottom. There is no obvious way how to find out where this was thrown.

This seems to be a regression to earlier 3.x versions, where the line of the thrower would be at least highlighted.

Steps to reproduce this

"1. open the below snippet in PDE

  1. run the snippet

  2. observe that the error message (NullPointerException) is not linked to any position in the code, nor is any position in the code highlighted, nor is a stack-trace or similar printed anywhere"

snippet

PVector [] vs = new PVector[10];
for (int i=0;i<vs.length;++i)
  vs[i].set(0,0);   // <-- this position should be contained in the error message

Additional context

real showstopper when trying to debug any bigger program in PDE!

Would you like to work on the issue?

No, I’m just reporting the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is neededpdeProcessing Development Environment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions