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

Allocate 129630208 bytes for jit buffer: invalid argument #2269

Closed
hellojsna opened this issue Jan 12, 2021 · 3 comments
Closed

Allocate 129630208 bytes for jit buffer: invalid argument #2269

hellojsna opened this issue Jan 12, 2021 · 3 comments

Comments

@hellojsna
Copy link

hellojsna commented Jan 12, 2021

Describe the issue
A clear and concise description of what the issue is. BEFORE SUBMITTING YOUR ISSUE, PLEASE LOOK AT THE PINNED ISSUES AND USE THE SEARCH FUNCTION TO MAKE SURE IT IS NOT ALREADY REPORTED. ALWAYS COMMENT ON AN EXISTING ISSUE INSTEAD OF MAKING A NEW ONE.

When i start vm, it says

QEMU exited from an error: qemu-system: -accel tcg: allocate 129630208 bytes for jit buffer: Invalid argument

I'm trying to run android 4.0

Configuration (required)

  • UTM Version: 2.0.17

  • OS Version: iOS 12.4

  • Device Model: iPhone 6

  • Is it jailbroken (name jailbreak used)?
    Jailbroken(Unc0ver)

  • How did you install UTM?
    Cydia repo(Also tried Filza & ReProvision & AltStore)

Crash log
If the app crashed, you need a crash log. To get your crash log, open the Settings app and browse to Privacy -> Analytics & Improvements -> Analytics Data and find the latest entry for UTM. You should export the text and attach it here.

Debug log
For all issues, including crashes, you should attach a debug log. Open UTM, and open the settings for the VM you wish to launch. Near the bottom of the configuration options (or at the top of the QEMU page) is Debug Log. Turn it on and save the VM. After you experience the issue, quit the VM and re-launch UTM. Open the VM settings again and select Export Log... and attach it here.

2021-01-12 15:48:05.379 UTM[26564:2284347] appId set to allow all!
2021-01-12 15:48:05.380 UTM[26564:2284347] appId set to allow all!
-[CSConnection init]:251
2021-01-12 15:48:05.416 UTM[26564:2284347] -[CSConnection init]:251
Failed to access security scoped resource for: file:///private/var/containers/Bundle/Application/1426F8D6-1555-41A1-A18C-8F3F6A8C210E/UTM.app/qemu/
2021-01-12 15:48:05.458 UTM[26564:2284347] Failed to access security scoped resource for: file:///private/var/containers/Bundle/Application/1426F8D6-1555-41A1-A18C-8F3F6A8C210E/UTM.app/qemu/
Failed to access security scoped resource for: file:///private/var/mobile/Containers/Data/Application/F1AE803C-03F4-4FFB-AE52-6F2452BF2ACD/Documents/Virtual%20Machine%201.utm/Images/android-x86-vm-20120130.iso
Running:  -L /var/containers/Bundle/Application/1426F8D6-1555-41A1-A18C-8F3F6A8C210E/UTM.app/qemu -S -qmp tcp:127.0.0.1:4000,server,nowait -spice port=4001,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off -smp cpus=1,sockets=1,cores=1,threads=1 -machine pc, -accel tcg -vga qxl -global PIIX4_PM.disable_s3=1 -global ICH9-LPC.disable_s3=1 -boot order=d -m 512 -soundhw ac97 -name "Virtual Machine 1" -device usb-ehci -device usb-tablet -device usb-mouse -device usb-kbd -drive "if=ide,media=cdrom,id=drive0,file=/private/var/mobile/Containers/Data/Application/F1AE803C-03F4-4FFB-AE52-6F2452BF2ACD/Documents/Virtual Machine 1.utm/Images/android-x86-vm-20120130.iso,cache=writethrough" -device rtl8139,netdev=net0 -netdev user,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -uuid D6E3555B-E858-4574-90D0-2E628D0F7725 -rtc base=localtime
Loading libqemu-x86_64-softmmu.utm.dylib
2021-01-12 15:48:05.528 UTM[26564:2284347] Failed to access security scoped resource for: file:///private/var/mobile/Containers/Data/Application/F1AE803C-03F4-4FFB-AE52-6F2452BF2ACD/Documents/Virtual%20Machine%201.utm/Images/android-x86-vm-20120130.iso
2021-01-12 15:48:05.530 UTM[26564:2284347] Running:  -L /var/containers/Bundle/Application/1426F8D6-1555-41A1-A18C-8F3F6A8C210E/UTM.app/qemu -S -qmp tcp:127.0.0.1:4000,server,nowait -spice port=4001,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off -smp cpus=1,sockets=1,cores=1,threads=1 -machine pc, -accel tcg -vga qxl -global PIIX4_PM.disable_s3=1 -global ICH9-LPC.disable_s3=1 -boot order=d -m 512 -soundhw ac97 -name "Virtual Machine 1" -device usb-ehci -device usb-tablet -device usb-mouse -device usb-kbd -drive "if=ide,media=cdrom,id=drive0,file=/private/var/mobile/Containers/Data/Application/F1AE803C-03F4-4FFB-AE52-6F2452BF2ACD/Documents/Virtual Machine 1.utm/Images/android-x86-vm-20120130.iso,cache=writethrough" -device rtl8139,netdev=net0 -netdev user,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -uuid D6E3555B-E858-4574-90D0-2E628D0F7725 -rtc base=localtime
2021-01-12 15:48:05.530 UTM[26564:2284347] Loading libqemu-x86_64-softmmu.utm.dylib
Stream error Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}
QMP stream error seen: Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}
QMP connection failed, retries left: 29
2021-01-12 15:48:05.603 UTM[26564:2284385] Stream error Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}
2021-01-12 15:48:05.604 UTM[26564:2284385] QMP stream error seen: Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}
2021-01-12 15:48:05.605 UTM[26564:2284385] QMP connection failed, retries left: 29
2021-01-12 15:48:05.607 UTM[26564:2284352] appId set to allow all!
SPICE port not in use yet, retries left: 29
2021-01-12 15:48:05.618 UTM[26564:2284352] SPICE port not in use yet, retries left: 29
qemu-system: -accel tcg: allocate 129630208 bytes for jit buffer: Invalid argument
Stop operation timeout or force quit
2021-01-12 15:48:05.658 UTM[26564:2284356] Stop operation timeout or force quit
RPC: Error Domain=com.utmapp.utm Code=-1 "No connection for RPC." UserInfo={NSLocalizedDescription=No connection for RPC.}
Exit operation timeout or force quit
2021-01-12 15:48:05.659 UTM[26564:2284352] RPC: Error Domain=com.utmapp.utm Code=-1 "No connection for RPC." UserInfo={NSLocalizedDescription=No connection for RPC.}
2021-01-12 15:48:05.659 UTM[26564:2284356] Exit operation timeout or force quit

Upload VM
(Optional) If possible, upload the config.plist inside the .utm. If you do not have this, you can upload the entire .utm but note this contains your personal data. Since Github has an attachment size limit, you may want to upload to another service such as Google Drive. Link it here.

https://www.icloud.com/iclouddrive/0DQ92Hu_whmXU6eEuG8PqAq5w#Virtual_Machine_1

@osy
Copy link
Contributor

osy commented Jan 12, 2021

Can you try lowering the amount for ram?

@hellojsna
Copy link
Author

Can you try lowering the amount for ram?

It crashes even i run with 1MB of ram

I guess because of the QEMU of UTM has been updated, the argument have been removed, and the android vm was made in an older version of UTM when QEMU sees the argument as valid.

It was created on latest version of UTM

:(

@osy
Copy link
Contributor

osy commented Jan 14, 2021

Try something like 128MB ram. Does it give the same error message? (Different number of course)

@osy osy closed this as completed in 44fb454 Jan 15, 2021
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