Rotor Control window displays with missing knob(s) and crashes when tracking.
还没有人认领这个 Issue。
评估
调研方向
错误位于函数 gtk_rot_knob_update 中,其中局部缓冲区 b 的大小对于 g_ascii_formatd 的输出和数字标签循环来说太小。先比较缓冲区大小、传给 g_ascii_formatd 的格式宽度以及循环上界,然后检查标签索引是否仍与 knob->digits 对齐。完成的标准是:打开 Rotor Control 时显示 Az 和 El 旋钮,跟踪期间它们持续更新,且没有溢出。
由索引模型根据 Issue 内容生成。
描述
I am new to GPredict and wanted a new compile (post 3.2.37) in order to avoid wrap around tracking. I followed directions for installing MSYS2 and with only minor fussing was able to compile for windows. The program appears generally in good order (some config defaults seem off). The main issue is that when I open Rotor Control, the Az/El knobs don't show up (Az is always missing, El is usually missing). I've tracked this down to the length of the b[7] array definition, which I believe should be 8. Just to be extra safe I set it to b[9] (not familiar with g_ascii_formatd and termination etc.) and it appears to work as intended on initial opening and tracking updates.
static void gtk_rot_knob_update(GtkRotKnob * knob)
{
gchar b[7]; //<-------- Here
gchar *buff;
guint i;
g_ascii_formatd(b, 8, "%6.2f", fabs(knob->value));
/* set label markups */
for (i = 0; i < 6; i++)
{
buff = g_strdup_printf(FMTSTR, b[i]);
gtk_label_set_markup(GTK_LABEL(knob->digits[i + 1]), buff);
g_free(buff);
}
if (knob->value < 0)
buff = g_strdup_printf(FMTSTR, '-');
else
buff = g_strdup_printf(FMTSTR, ' ');
gtk_label_set_markup(GTK_LABEL(knob->digits[0]), buff);
g_free(buff);
}
- 主要语言
- C
- 星标
- 1.2k
- 派生
- 305
- 平均合并
- 8 小时 48 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
csete/gpredict 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 78/100
-
rotator
难度 4/5 3-5 天 新手友好度 30/100
相似的 Issue
-
bug low priority rt_lib wasm
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
quickjs-ng/quickjs#1836 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
open-quantum-safe/liboqs#2637 ·
维护者通常 1 天内回复
-
Go device SDK: Whisper transcriber keeps buffering and transcribing audio appended after Stop()可能已有人在做 @apoorvdarshan 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
BasedHardware/omi#22770 ·
维护者通常 1 天内回复
-
fido_do_ecdh() reports any getKeyAgreement failure as FIDO_ERR_INTERNAL可能已有人在做 @brlumen 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复