wine-6.0-rc5 running on ubuntu error cannot allocate memory

Questions about Wine on Linux
Locked
jaggs86
Newbie
Newbie
Posts: 4
Joined: Thu Jul 27, 2023 3:15 am

wine-6.0-rc5 running on ubuntu error cannot allocate memory

Post by jaggs86 »

Hi All

I have setup where we have ubuntu vdi machine with ram-32 gb and cpu 12. When i run a docker container linux based and run wine program.exe inside i get error " cannot allocate memory, range 0xf28a000-oxfdca1000 unix port 0x3".

vdi machine and docker has sufficient memory available but wine is restricting itself and uses only 1.9 gb of memory and throws this error.

how can i ask wine to use all available memory to run program.exe. please help
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: wine-6.0-rc5 running on ubuntu error cannot allocate memory

Post by spoon0042 »

i vaguely recall people having similar issues, never did myself but i did find this that has some possible info:

viewtopic.php?t=32854

in short it seems a 32-bit process may be limited to (slightly less than) 2 gb address space

(to be clear, is this a 32-bit program, and are you trying to run with 32- or 64-bit wine / wineprefix?)

that thread and info elsewhere mentions the possibility of patching either the executable or wine to make the full address space for a 32-bit process available

also i assume you have some reason for running an out-of-date wine, 6.0 final released january 2021 while the current devel branch is 8.13... if possible you could try to make a test environment for a newer version to see if things Just Work now
jaggs86
Newbie
Newbie
Posts: 4
Joined: Thu Jul 27, 2023 3:15 am

Re: wine-6.0-rc5 running on ubuntu error cannot allocate memory

Post by jaggs86 »

Thanks for the reply Mr.spoon0042,
I am trying to run a application which is kind of emulator, this exe is built to work with 32 bit architecture, when I run this and program starts consuming more memory I start to see memory allocation error and program crashes.
I also tried to enable large address aware = 1 but for some reason it's not working.. I tried to download source code of latest version 8.03 but it has only 64 bit of wine and I get Error when try to install wine32 as it is missing 32 bit libraries..

I am kind of new to wine, really appreciate if you could please provide your inputs which version of wine would help me which should have compatibility of both 32 & 64.
jaggs86
Newbie
Newbie
Posts: 4
Joined: Thu Jul 27, 2023 3:15 am

Re: wine-6.0-rc5 running on ubuntu error cannot allocate memory

Post by jaggs86 »

I tried to update to wine-staging 8.5 and issue remains same after program starts executing and reaches to 2 gb of memory utilization it crashes.. could some one please suggest
Locked