processing / processing/processing4

loadFont("data/fontfile.vlw") crashes in executable but not in Processing (Mac)

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

还没有人认领这个 Issue。

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

描述

If one mistakenly calls loadFont("data/Avenir-Light-48.vlw"), instead of loadFont("Avenir-Light-48.vlw"), the call with "data":

  • works in Processing
  • crashes in an exported executable

This is Processing4.3, MacOS 15.4.1. Crashes on both x86 and aarch.

To test, create a font using Tools->Generate Font, then:

PFont font;

void setup() {
  fullScreen(P2D);
  frameRate(60);
  font = loadFont("data/Avenir-Light-48.vlw");
}

void draw() {
}

贡献指南

打开贡献指南

从这里开始

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

调研方向

在 macOS 上复现 Processing 4.3 示例,比较 Processing 中的 sketch 与在两种架构上导出的可执行文件(如果可用)。追踪 loadFont 在每种环境中如何解析 data/font 路径。完成标准是错误路径不再导致导出的可执行文件崩溃,并且其行为与 Processing 一致。

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

评估

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

把新 issue 发到你的邮箱

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