Skip to content

MarkdownAura v1.2.0

Choose a tag to compare

@westsource westsource released this 06 Oct 10:25
· 47 commits to main since this release

MarkdownAura 1.2.0

A crash leaves evidence now. A shipped build had no way to say what went wrong: panic = "abort"
with stripped symbols, no console behind a windowed process, and no handler for anything the page threw —
so a crash on someone else's machine was a window that vanished and a reader with nothing to send. The app
keeps a runtime log now, in %LOCALAPPDATA%\MarkdownAura\logs on Windows (Linux: $XDG_STATE_HOME, i.e.
~/.local/state/MarkdownAura/logs; a new directory, and Settings can point it anywhere — a synced folder is
how a log from a second machine reaches you). One file, 1 MB rolled over four, with a five-minute heartbeat
so the log says whether the process died or only the page did. A run that ends abnormally leaves a
self-contained report in crash/: the panic message, the file:line it came from (that survives the
stripping), the thread, the environment (WebView2 version, GPU, screen, locale), and the last 50 lines. The
About sheet gained a logs row — open the folder, export a report to a file and reveal it, or copy it —
and it says so when the previous run did not shut down cleanly, naming its id.

Nothing about that leaves the machine. No server, no endpoint, no telemetry: the log is a file you
attach to an issue yourself, and the app still makes exactly one network call, the update check you click.
What goes in the file is paths, counts, sizes, durations and error kinds — never a document, and never the
arguments of a failed call.

Settings is only things you can change. The engines section and the watch-debounce read-out are gone:
the engines already live in About (badges, licences, measured sizes) and in the status bar (their live
health), and the debounce is an internal constant. Every remaining row changes something.

The About sheet's log row fits. export and copy replace the two longer labels, and the path row no
longer pushes a button onto a second line — in either sheet, at any path length.


MarkdownAura 1.2.0

崩溃现在会留下证据。 之前发布的版本没法说明出了什么事:panic = "abort" 且符号被剥离,窗口子系统的进程背后没有控制台,页面抛出的异常也无人接管——于是别人机器上的一次崩溃,就是一个窗口消失,而用户手上没有任何东西可以发给你。现在应用会写运行日志:Windows 在 %LOCALAPPDATA%\MarkdownAura\logs(Linux 为 $XDG_STATE_HOME,即 ~/.local/state/MarkdownAura/logs;这是一个新增目录,且设置里可以把日志指到任何位置——指向同步目录,另一台机器的日志就能到你手里)。单文件 1 MB、轮转保留四份,另有 5 分钟一次的心跳——用来分辨是进程死了还是只有页面死了。异常结束的那次运行会在 crash/ 留下一份自包含报告:panic 消息、它来自哪一行(file:line,符号被剥离也还在)、线程、环境(WebView2 版本、显卡、屏幕、区域),以及最后 50 行日志。关于页新增 日志 一行——打开目录、把报告导出成文件并定位、或复制——并且当上一次运行没有正常退出时,它会指名叫出那次的 run id。

这些都不会离开你的机器。 没有服务端、没有上报端点、没有遥测:日志就是你亲手附到 issue 里的那个文件,而应用仍然只有一次网络调用——你点击触发的更新检查。文件里写的是路径、计数、体积、耗时和错误类型,绝不含文档内容,也绝不含失败调用的参数。

设置里只留能改的东西。 引擎段与「监视去抖」只读行已移除:引擎信息本来就在关于页(徽章、许可证、实测体积)和状态栏(实时健康点)里,去抖则是一个内部常量。剩下每一行都真的能改。

关于页的日志行不再折行。 导出、复制 取代了两个较长的按钮文案,路径行也不会再把按钮挤到第二行——两个面板、任意长度的路径都不会。