-
Notifications
You must be signed in to change notification settings - Fork 6
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
panic: interface conversion: interface {} is string, not uint32 #38
Comments
No idea. Can you reproduce from a shell and provide the elisp incantations you're using to run host-spawn? |
It's a complicated setup, I'll try to simplify a bit in the next days and see what happens. Do I understand correctly that, even if the panic was handled, the command is still closing with HostCommandExited signal? |
Ok I simplified my tries until this:
|
I cannot reproduce. From Flathub's Emacs (started with a bare config), within a term, host-spawn is able to spawn an host shell, top works correctly for me, etc. Can you provide any details about your linux distro? Can you reproduce the problem from inside a toolbox or distrobox container? Your error seems to be caused by the fact that host-spawn, subscribed only to HostCommandExited DBus messages, receives an unexpected message and doesn't handle this case very well; it certainly should print a more helpful message than just panicking. I have seen weird errors from people using niche distros with missing or misconfigured flatpak/dbus. If you are able to use git and compile go software, I can push some changes for you to test with. |
Please try the |
Thanks for taking your time to look into it. I failed to mention that the issue appears after a lot of time, randomly between 10 minutes to some hour. It seems worse when the PC is used intensively. What do you mean inside a distrobox? Instead of flatpak? I never tried compile a Go program, but I will try later today. I replicated the issue both on Fedora Silverblue and Fedora Workstation. Both updated to the lastest version |
Here we go Here the error after the above ~ 20 minutes later
It is very similar but it seems that the parameter of Body are swapped, I don't know what that means. At the same time I had a distrobox open similarly (distrobox->host-spawn->top) but without emacs and there was no problem. Update:
|
Not sure what this message means, but I reckon host-spawn should check if it got the expected message, and ignored everything else.
I'll work on a fix, thanks
On Tue, 12 Nov 2024, at 18:29, matperc wrote:
`unexpected DBus message &dbus.Signal{Sender:"org.freedesktop.DBus", Path:"/org/freedesktop/DBus", Name:"org.freedesktop.DBus.NameOwnerChanged", Body:[]interface {}{"org.freedesktop.portal.Flatpak", "", ":1.123"}, Sequence:0x5}
`
… Here we go
—
Reply to this email directly, view it on GitHub <#38 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFIPSDH72BBCIMC5LBTEL32AJCI3AVCNFSM6AAAAABRSAZVLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZRGI3TINBSGA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Can you please try again with the latest commit on the |
Thanks for the fix, I have been working the whole day with no problem. I also applied a similar patch yesterday and the issue never occurred. I am not sure if |
Yes the fix is pretty straightforward, so I guess it won't crash again. I'll be merging into master and cutting a new release soon. |
Fix released with version 1.6.1 (sorry for the delay) |
I use
host-spawn
to run commands from flatpak Emacs. Sometimes it crashes with this error. What could it be?The text was updated successfully, but these errors were encountered: