termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.98k stars 2.98k forks source link

spice reports memslot too big then closes qemu #7251

Open ghost opened 3 years ago

ghost commented 3 years ago

Problem description i'm trying to have the good qemu audio quality from guest via spice audiodev and proxy it through aspice, somehow qemu crashes with memslot errors when -spice is specified

Screenshot_2021-08-04-11-22-13-65_84d3000e3f4017145260f7618db1d683.jpg

Steps to Reproduce

  1. Install qemu-system-x86-64-headless
  2. run qemu command with:
    qemu-system-x86_64 -spice port=5901,disable-ticketing

Expected Behavior It should run without issues

Additional information

Application version:
0.117
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://deb.kcubeterm.me/termux-main/ stable main
# x11-repo (sources.list.d/x11.list)
deb https://packages.termux.org/apt/termux-x11 x11 main
# game-repo (sources.list.d/game.list)
deb https://packages.termux.org/apt/termux-games games stable
# unstable-repo (sources.list.d/unstable.list)
deb https://packages.termux.org/apt/termux-unstable unstable main
# root-repo (sources.list.d/root.list)
deb https://packages.termux.org/apt/termux-root root stable
# science-repo (sources.list.d/science.list)
deb https://packages.termux.org/apt/termux-science science stable
Updatable packages:
All packages up to date
Android version:
11
Kernel build information:
Linux localhost 4.14.180-perf+ #1 SMP PREEMPT Tue Jun 22 11:10:36 CST 2021 aarch64 Android
Device manufacturer:
OPPO
Device model:
CPH1933
mjuned47 commented 3 years ago

-spice only this argument was specified ? I haven't faced any issue with spice. My termux app version : 0.101

ghost commented 3 years ago

@mjuned47 not only that, but i was using spice audiodev to get good audio quality, here is my argument should look like

-audiodev spice,id=snd0 -soundhw sb16 -spice port=5901,disable-ticketing

then it got errors regarding memslot error

stale[bot] commented 2 years ago

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Ilya114 commented 2 years ago

I'm a newbie here, but I realized that my bug report was a duplicate and was sent here. Is qemu spice not working in termux?

ghost commented 2 years ago

I just installed 32-bit Termux app from actions artifacts page. seems QEMU with spice works but not arm64. seems has something to do with it

Clockiscool1234 commented 1 year ago

where do you get the termux 32bit app?

evren320 commented 1 year ago

i get this error with: qemu-system-i386 -device qxl-vga

Using anything other than qxl-vga works fine

mjuned47 commented 1 year ago

I got the same issue , but not on older version of android (10>). And i don't know how to produce log can you help? @xtkoba

zavocc commented 1 year ago

I have tested other QEMU guest targets (on arm64 Android 11 host) and they do seem to work fine with SPICE without triggering memslot too big errors with -spice port=5901,disable-ticketing argument.

! qemu-system-m68k is untested

image

But not on

image

mjuned47 commented 9 months ago

I would like to request to developers and pro coders to debug & count down this issue

zavocc commented 9 months ago

I don't think that would help as it is "Labelled Help wanted for a reason"

Maybe reporting this to upstream might help identify the root cause

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Momin Juned @.> Sent: Thursday, November 30, 2023 12:54:58 AM To: termux/termux-packages @.> Cc: marcusz @.>; Comment @.> Subject: Re: [termux/termux-packages] spice reports memslot too big then closes qemu (#7251)

I would like to request to developers and pro coders to debug & count down this issue

— Reply to this email directly, view it on GitHubhttps://github.com/termux/termux-packages/issues/7251#issuecomment-1832330531, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4QQBQLGJMPPVHJ2VUCPBATYG5SGFAVCNFSM5BQEPWBKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBTGIZTGMBVGMYQ. You are receiving this because you commented.Message ID: @.***>

mjuned47 commented 9 months ago

Can i debug on this in termux to help developer ?

truboxl commented 9 months ago

Any patches that fix the issue are welcomed. You don't have to explicit ask permission to help since the issue is already labelled with help wanted.

spz2020 commented 4 months ago

Is there any news?

zavocc commented 4 months ago

This has something to do with android's libc. Which using qemu spice in proot distros seem to work fine regardless.

Strace output (strace -o logs.txt qemu-system-x86_64 -spice port=5901) in case anyone needs it logs.txt

Looking at the end of the log file, it seems to be related to malloc in bionic libc which causes spice to fail to create a server