https://bugs.winehq.org/show_bug.cgi?id=48185
Bug ID: 48185 Summary: Applications crashing with "Not enough memory to run application" Product: Wine Version: 4.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: ZenAnonX@protonmail.ch Distribution: ---
Created attachment 65821 --> https://bugs.winehq.org/attachment.cgi?id=65821 stderr+stdout
Affected Applications: Fallout New Vegas Skyrim
Happening on wine compiled from recent commit.
Commit dad14ab8331922171393d6ef75861303c8bc8d50 might be the source of this as crash doesn't happen on wine compiled before it.
https://bugs.winehq.org/show_bug.cgi?id=48185
ZenAnonX ZenAnonX@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ZenAnonX@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=48185
--- Comment #1 from ZenAnonX ZenAnonX@protonmail.ch --- On bisecting I was able to track the source of problem, reverting commit b73cfa72edaed76744cfa9a19670bff3684c66ce seems to solve the issue.
https://bugs.winehq.org/show_bug.cgi?id=48185
ZenAnonX ZenAnonX@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |kernel32
https://bugs.winehq.org/show_bug.cgi?id=48185
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |b73cfa72edaed76744cfa9a1967 | |0bff3684c66ce Keywords| |regression CC| |julliard@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=48185
Hari Saksena hari.mail@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hari.mail@protonmail.ch
--- Comment #2 from Hari Saksena hari.mail@protonmail.ch --- Created attachment 65847 --> https://bugs.winehq.org/attachment.cgi?id=65847 Patch for regression b73cfa72edaed76744cfa9a19670bff3684c66ce
Also encountering same problem.
Reverting whole commit is a bad idea imo as that's breaking a lot of other applications.
Did +virtual log and was able to pinpoint error to ullAvailPhys and ullAvailPageFile in GlobalMemoryStatusEx. Reverting just these two to old values seems to correct issue without breaking other applications.
Attaching a patch for same.
https://bugs.winehq.org/show_bug.cgi?id=48185
Hari Saksena hari.mail@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #65847|0 |1 is obsolete| |
--- Comment #3 from Hari Saksena hari.mail@protonmail.ch --- Created attachment 65851 --> https://bugs.winehq.org/attachment.cgi?id=65851 Patch for regression b73cfa72edaed76744cfa9a19670bff3684c66ce
On further investigation, error seems to be mostly due typecasting not happening properly during multiplication.
This patch should take care crashes without reverting any improvements made by the commit.
https://bugs.winehq.org/show_bug.cgi?id=48185
xpue r9ku1q@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |r9ku1q@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=48185
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |849ff3b60dd6b7d72b89f8af89e | |1a3f4963b513a
--- Comment #4 from Matteo Bruni matteo.mystral@gmail.com --- This bug should be fixed by https://source.winehq.org/git/wine.git/commitdiff/849ff3b60dd6b7d72b89f8af89e1a3f4963b513a, thank you Hari!
https://bugs.winehq.org/show_bug.cgi?id=48185
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.0-rc1.