# Error in Processing 4 (freezing with show usage, jump to declaration etc.)

**URL:** <https://discourse.processing.org/t/error-in-processing-4-freezing-with-show-usage-jump-to-declaration-etc/40739>\
**Category:** Beginners\
**Created:** [January 29, 2023, 6:32pm UTC](https://discourse.processing.org/t/error-in-processing-4-freezing-with-show-usage-jump-to-declaration-etc/40739 "2023-01-29T18:32:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [March 10, 2023, 4:54pm UTC](https://discourse.processing.org/t/error-in-processing-4-freezing-with-show-usage-jump-to-declaration-etc/40739/4 "2023-03-10T16:54:41Z")

</div>

There are related Github issues reported here:

> <https://github.com/processing/processing4/issues/682>
>
> \## Description
> Pressing Ctrl-key and click on a word crashes PDE if character '…ä' is used.
> 
> \## Expected Behavior
> Pressing Ctrl-key and click on a word opens a window 'usage of ...'.
> 
> \## Current Behavior
> Sketch crashes under processing v4.x if you insert character 'ä'
> and press Ctrl-key and click on a word.
> 
> \## Steps to Reproduce
> /\* file: Processing\_v4\_bug.pde   
> Copy this example to PDE.
> Press Ctrl-key and click on word 'text'
> A window 'Usage of height' opens under processing v3.x.
> With processing v4.x the sketch crashes!
> Reason is the usage of character 'ä'.
> If you delete it, all is working fine.
> \*/
> void setup()
> { size(100, 80, P3D); }
> void draw() 
> { background (55);
> text(frameCount,22,22);
> }
> 
> \## Your Environment
> \* Processing version: 4.x
> \* Operating System and OS version: Window-10
> 
> \## Possible Causes / Solutions
> Delete character 'ä' and try again... it works fine

> <https://github.com/processing/processing4/issues/527>
>
> \## Description
> 
> 
> 
> Using right-click 'Jump to declaration' menu item causes P…rocessing to lock-up in some sketches.
> 
> When selecting a variable or function name in the UI and clicking on 'Jump to declaration' Processing locks up - No error is shown in the console but the UI becomes unresponsive, menus no longer open and windows cannot be opened or closed. I did wonder if things were just slow, but 10-15 minutes later, Activity Monitor shows Processing as 'not responding' but using between 25-25% CPU.
> 
> I first noticed the problem when working on my own projects, so it's quite possible there's something horrible about my code which is triggering this (my current project has a few thousand lines of code in 28 files, so quite likely I guess). Having said that, the same project didn't trigger this problem using Processing 3.5.4, I only encountered this after opening the project in Processing 4. Different versions of the project compile and run without errors under versions 3 & 4 of Processing.
> 
> While the problem doesn't occur when opening single-tab examples or sketches, it does happen with some of the multi-file example code from the 'Generative Design' book, but doesn't occur when testing a sketch by Marius Watz in 2 tabs.
> 
> In addition to controlP5 (which doesn't trigger the error in other sketches) my current project imports the following libraries:
> 
> \`\`\`
> import java.util.Locale;
> import java.awt.datatransfer.\*;
> import java.awt.Toolkit;
> import java.io.FileInputStream; // File Streams.
> import java.io.FileOutputStream;
> import java.util.UUID;
> import java.util.zip.ZipEntry;
> import java.util.zip.ZipOutputStream;
> \`\`\`
> 
> \## Expected Behavior
> In Processing 3, the 'Jump to declaration' menu item would jump straight to the appropriate variable/function declaration.
> 
> \## Current Behavior
> In version 4, 'Jump to declaration' sometimes causes Processing to become unresponsive.
> 
> \## Steps to Reproduce
> Some of the sketches which trigger the problem import external libraries, but I haven't found a sketch (other than my own) which always triggers the problem.
> 
> \## Your Environment
> 
>  
> 
> \* Processing version: Processing 4.0b8
> \* Operating System and OS version: Mac OS 10.15.7

`:)`

---

_[View the full topic](https://discourse.processing.org/t/error-in-processing-4-freezing-with-show-usage-jump-to-declaration-etc/40739)._
