processing / processing/processing4
Using right-click 'Jump to declaration' menu item causes Processing to lock-up in some sketches.
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 494
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 3
描述
Created by: matkeane
Description
Using right-click 'Jump to declaration' menu item causes Processing 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 macOS 上使用多文件草图(包括 Generative Design 示例)复现 Processing 4.0b8 中的卡死,并比较在 Processing 3.5.4 中执行相同操作的结果。调查应缩小范围,确定是哪个草图或导入模式触发了故障;完成的标准是“Jump to declaration”保持响应并到达声明处。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- desktop-dev, developer-experience
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100