Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/acme: panic switching between fonts #104

Open
ammantesfaye opened this issue Feb 8, 2023 · 1 comment
Open

cmd/acme: panic switching between fonts #104

ammantesfaye opened this issue Feb 8, 2023 · 1 comment

Comments

@ammantesfaye
Copy link

ammantesfaye commented Feb 8, 2023

Using Font causes acme to crash when changing from a fixed font to a variable width font.

`panic: fixi

goroutine 13 [running]:
9fans.net/go/cmd/acme/internal/adraw.FindFont(0x7c?, 0x0?, 0x0?, {0x140000d8060?, 0x1f?})
/usr/local/plan9/go/cmd/acme/internal/adraw/font.go:31 +0x66c
9fans.net/go/cmd/acme/internal/ui.Fontx(0x140007f4000?, 0x1f?, 0x140007f4000?, 0x24?, 0x0?, {0x140007f4014?, 0x24?, 0x24?})
/usr/local/plan9/go/cmd/acme/internal/ui/arg.go:71 +0x340
9fans.net/go/cmd/acme/internal/exec.Execute(0x14000b34010, 0x24, 0x24, 0x0, 0x0?)
/usr/local/plan9/go/cmd/acme/internal/exec/exec.go:221 +0x930
main.mousethread()
/usr/local/plan9/go/cmd/acme/acme.go:568 +0xc80
created by main.main
/usr/local/plan9/go/cmd/acme/acme.go:218 +0xf80`

@pedramos
Copy link

I think I have a fix for this in my repo.
pedramos/9fans@90248db

Or the patch version:
https://github.com/pedramos/9fans/commit/90248db1713143f03cc4dbcb40f3d1a05115e9e8.patch

I don't know if the code is any good but it does seem to work in my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants