Closed ForeverFirstDay closed 6 months ago
Well, the error you have are wine error. It bascically complains because you have 39 bits of address space only, like box64 warns you. I'm unclear if those error are fatal or if wine tries again in anouther area. If you want the error to go away, you need to patch Wine at the source level, tere is nothing box64 can do here.
The setup freezing might be because it needs to be run with BOX64_DYNAREC_SAFEFLAGS=2
and/or BOX64_DYNAREC_STRONGMEM=1
I'm unclear if those error are fatal or if wine tries again in anouther area. If you want the error to go away, you need to patch Wine at the source level, tere is nothing box64 can do here.
as I mentioned before, its a result of this change https://gitlab.winehq.org/wine/wine/-/commit/30c8da1c9dd8dcc1aee2d328a5fdf7edbf6c7978
I don't really know what the change was addressing or why it was changed since the commit message provides no meaningful information to me and there is no linked issue.
Thank you very much for your replies. I will publish this issue on winehq.org later.
upstream configuration issue (for raspberry piOS, contact your distro maintainer for other hardware and systems) https://github.com/raspberrypi/linux/issues/6261
I have gone ahead and asked for some explanation here from wine https://gitlab.winehq.org/wine/wine/-/merge_requests/3598#note_75871
Resolved with pi-apps wine build https://github.com/Pi-Apps-Coders/files/commit/d4e9180610689f09e65a8fa88121a339bce1745a
Consider adding the same patch if you build wine from source
This is now resolved in upstream wine master
Oh, that's sa good news! So it's fixed with wine9.16+?
Not yet. Next unreleased version will include it
Not yet. Next unreleased version will include it
Thanks for the info :)
@theofficialgman @ptitSeb Still seeing virtual memory allocation errors using Wine 9.17. I was hoping the fix would have made that release. This is on a Pi5 with kernel8.img:
002c:err:virtual:try_map_free_area mmap() error Cannot allocate memory, range 0x7fffb30000-0x7fffcbd000, unix_prot 0x7.
002c:err:virtual:try_map_free_area mmap() error Cannot allocate memory, range 0x7fff750000-0x7fffcb5000, unix_prot 0x7.
@theofficialgman @ptitSeb Still seeing virtual memory allocation errors using Wine 9.17. I was hoping the fix would have made that release. This is on a Pi5 with kernel8.img:
002c:err:virtual:try_map_free_area mmap() error Cannot allocate memory, range 0x7fffb30000-0x7fffcbd000, unix_prot 0x7.
002c:err:virtual:try_map_free_area mmap() error Cannot allocate memory, range 0x7fff750000-0x7fffcb5000, unix_prot 0x7.
@RandyR99 please provide a full log as well as the binary executable you are running. the issue is resolved and included in Wine 9.17 and I am unable to reproduce it occurring anymore in my test programs.
If you run WINEDBG=+virtual wine programname
you will see (similar to) the following output which shows it detected the max address space available for the system
trace:virtual:virtual_init host addr space limit: 0x7fffff0000
002c:err:virtual:try_map_free_area mmap() error Cannot allocate memory, range 0x7fffb30000-0x7fffcbd000, unix_prot 0x7.
002c:err:virtual:try_map_free_area mmap() error Cannot allocate memory, range 0x7fff750000-0x7fffcb5000, unix_prot 0x7.
these are values below 39bits I think and likely indicate wine tried to allocate memory in an area of ram that does exist but is not available (eg: due to a carveout by another process). that is unrelated and the issue where wine tried to allocate memory in an area above the address space maximum is fixed.
Ahh, I didn't look closely at the address. I should point out that when using a custom kernel with 48-bit virtual addressing I don't see any memory allocation errors. However it is not as up-to-date (it was built on 29 Apr 2024) as the latest kernel. I tried to attach the file but it is too big. Here is a link to the archive containing the file. It is the chess engine stockfish 16 (30 June 2023) run from the command line. Let me know if you still want logs.
I moved the SD card to a Pi4-8Gb to test and did not see the errors. When I moved it back to the Pi5-8Gb, the errors no longer appeared. Happy but baffled. Sorry for wasting anyone's time. Thanks for everyone's work on Box and Wine.
I use the latest box64 and wine64-stable-9.0.0.0. I meet with the following errs whenever a 64bit app installing. And the installer stuck anyway.
However, wine64 notepad work well with the similar errs.