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

spice reports memslot too big then closes qemu #7251

Open
ghost opened this issue Aug 4, 2021 · 15 comments
Open

spice reports memslot too big then closes qemu #7251

ghost opened this issue Aug 4, 2021 · 15 comments
Labels
bug report Something is not working properly help wanted Help is wanted in order to solve the issue inactive No activity in a certain period of time

Comments

@ghost
Copy link

ghost commented Aug 4, 2021

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
Copy link
Contributor

mjuned47 commented Aug 5, 2021

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

@ghost
Copy link
Author

ghost commented Aug 6, 2021

@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

This comment has been minimized.

@stale stale bot added the wontfix Issue won't be fixed label Nov 18, 2021
@thunder-coding thunder-coding added bug report Something is not working properly help wanted Help is wanted in order to solve the issue not stale and removed wontfix Issue won't be fixed labels Nov 18, 2021
@Ilya114
Copy link

Ilya114 commented Dec 22, 2021

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
Copy link
Author

ghost commented Dec 26, 2021

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

@xtkoba xtkoba removed the not stale label Dec 24, 2022
@Clockiscool1234
Copy link

where do you get the termux 32bit app?

@evren320
Copy link

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

Using anything other than qxl-vga works fine

@stale stale bot added the inactive No activity in a certain period of time label Jun 10, 2023
@mjuned47
Copy link
Contributor

mjuned47 commented Aug 11, 2023

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

@stale stale bot removed the inactive No activity in a certain period of time label Aug 11, 2023
@zavocc
Copy link
Contributor

zavocc commented Aug 21, 2023

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-riscv(32/64)
  • qemu-system-arm(aarch64)

! qemu-system-m68k is untested

image

But not on

  • qemu-system-ppc(64)
  • qemu-system-i386(x86_64)

image

@stale stale bot added the inactive No activity in a certain period of time label Nov 4, 2023
@mjuned47

This comment was marked as off-topic.

@stale stale bot removed the inactive No activity in a certain period of time label Nov 29, 2023
@zavocc

This comment was marked as off-topic.

@mjuned47
Copy link
Contributor

mjuned47 commented Dec 2, 2023

Can i debug on this in termux to help developer ?

@truboxl
Copy link
Contributor

truboxl commented Dec 2, 2023

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.

@stale stale bot added the inactive No activity in a certain period of time label Feb 16, 2024
@spz2020
Copy link

spz2020 commented May 1, 2024

Is there any news?

@stale stale bot removed the inactive No activity in a certain period of time label May 1, 2024
@zavocc
Copy link
Contributor

zavocc commented May 10, 2024

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

@stale stale bot added the inactive No activity in a certain period of time label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly help wanted Help is wanted in order to solve the issue inactive No activity in a certain period of time
Projects
None yet
Development

No branches or pull requests

9 participants