processing / processing/processing4

Every time I try to switch from Java Mode to Android Mode

未关闭
#1,410 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
Java
星标
497
派生
183
平均合并
4 小时 39 分钟
30 天内合并 PR
3

描述

Most appropriate sub-area of Processing 4?

I'm not sure

Processing version

4.5.2

Operating system

Linux mint 22.1 Xia

Bug description

I get the following error: "java.awt.IllegalComponentStateException: The frame is displayable".
​This happens on both my desktop and my laptop. It seems to be related to java.awt.Frame.setUndecorated being called while the frame is already visible.
​Steps to reproduce:
​Open Processing.
​Click on the "Java" mode button to switch to "Android".
​The error window pops up immediately.

Steps to reproduce this
snippet

// Paste your code below :)

void setup() {

}

void draw() {

}
Additional context

No response

Would you like to work on the issue?

No, I’m just reporting the issue

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 Linux Mint 上使用 Processing 4.5.2,通过从 Java 模式切换到 Android 模式来复现该问题。跟踪 java.awt.Frame.setUndecorated 附近的模式切换路径,并验证模式切换能够在不出现 IllegalComponentStateException 的情况下完成,同时显示 Android 模式。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。