blog_os: QEMU Bug in macOS 14: No "Hello, World" in `post-02` - just a black screen.
Having issue with “Hello, World!” now being displayed in QEMU.
Didn’t work with my own code - tried the post-02 branch as a sanity check but it didn’t work there either.
OS: MacOS Sonoma 14.0
rustc Version: rustc 1.75.0-nightly (475c71da0 2023-10-11)
QEMU Version: 8.1.1
Video:
https://github.com/phil-opp/blog_os/assets/34107736/f5f207be-b469-4e58-9f98-c1ef20f27b18
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Reactions: 3
- Comments: 23 (6 by maintainers)
The line width is different (
160, not80as the code in post 3 assumes), and the first line is invisible. If you change the function toYou get the first fully visible line
And:
gives
Looking at the code of
post 3I see that it starts writing from column23. So yeah, that’s the problem. Maybe qemu has an ability to specify different settings for VGA, but it seems that it just doesn’t display the0line with in the current setupTo anybody that stumbled upon this via a google search or because of a pinned comment, here’s a quick rundown:
Now, if you are on MacOS newer than than version 14, and you are using Qemu, listen up. There is a window-sizing bug in Qemu that will shift text up, preventing you from being able to see some of it. It is fixed in Qemu 9.0. Bellow are package managers and latest version of Qemu available:
9.0.0)9.0.0)Edit: The package managers have updated their packages. Both of them are now up to date. To fix the big, just update Qemu!
I have opened this issue: https://gitlab.com/qemu-project/qemu/-/issues/1994
DrDonk seems to he working on it, it will hopefully be in the upstream Qemu soon…
Looks like both homebrew and macPorts provide v0.9 now, do I see that right?
Works for me, thanks!
macOS Sonoma 14.1.1
Latest stable QEMU build also has the first 20-ish pixels at the top of the output window hidden by the window’s title bar:
Quite interesting… so this verifies that it is not the os code. It is an issue related to Qemu on MacOS.