Wine 5.22 and FL Studio 20 startup error every time

Questions about Wine on Linux
Locked
863127
Newbie
Newbie
Posts: 1
Joined: Wed Dec 16, 2020 3:34 pm

Wine 5.22 and FL Studio 20 startup error every time

Post by 863127 »

I installed PlayOnLinux 4.3.4, and Wine 5.22 in that, to run the Windows version of FL Studio 20 (https://www.image-line.com/fl-studio-download/), following these instructions:

https://www.reddit.com/r/FL_Studio/comm ... _on_linux/

I got through making a shortcut before running it (step 12 in those instructions). But when I open FL Studio, I get this error message:

"FL Studio (20.8.0.2115) has encountered an error and needs to restart.

...

Exception:
List index out of bounds (5)
Callstack:
0000000000450000:00000000004F4A17: FLEngine.dll
0000000000450000:00000000004F4C80: FLEngine.dll
0000000000450000:00000000004F4DAA: FLEngine.dll
0000000000450000:0000000000751242: FLEngine.dll
0000000000450000:000000000088061D: FLEngine.dll
0000000000450000:00000000008803A2: FLEngine.dll
0000000000450000:00000000006FC529: FLEngine.dll
0000000000450000:0000000000B3DCDF: FLEngine.dll
0000000000450000:0000000000B4785A: FLEngine.dll
0000000000450000:0000000001C38B5B: FLEngine.dll
0000000000450000:0000000000CA9A73: FLEngine.dll
0000000000400000:0000000000403985: FL.exe
0000000000400000:0000000000403E5E: FL.exe
0000000000400000:0000000000404D3F: FL.exe
000000007B420000:000000007B4539B1: kernel32.dll
000000007B420000:000000007B453E88: kernel32.dll
000000007B420000:000000007B4539C2: kernel32.dll
0000000000000000:0000000000000000: "

Ideas how to fix that?
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by L. Rahyen »

Instructions you mentioned are 4 years old for FL Studio 12. I suggest to start from scratch and install FL Studio 20 in plain Wine. When done it is important not to start it like "wine FL64.exe" or you will hit this bug: https://bugs.winehq.org/show_bug.cgi?id=47989. Either start FL Studio 20 like in Windows via its shortcut on the desktop or from the menu, or if you want to start it from the terminal, do it via "start" command like this:

Code: Select all

wine start /unix "$HOME/.wine/drive_c/Program Files/Image-Line/FL Studio 20/FL64.exe"
Praash
Newbie
Newbie
Posts: 1
Joined: Fri Dec 18, 2020 2:54 am

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by Praash »

I talked about this in the Image-Line forums and found that this is an issue with dlls/kernelbase/locale.c :
FL 20.8 RC5/6 crashes immediately after the floating logo:

Code: Select all

FL Studio (20.8.0.2108) has encountered an error and needs to restart.

Crash log saved to C:\users\praash\My Documents\Image-Line\FL Studio\Support\Logs\Crash\ folder.

Please use Ctrl+C to copy this message and report to support.

Exception: 
List index out of bounds (5)
Callstack: 
00000000006E0000:0000000000D325BC: FLEngine_x64.dll
00000000006E0000:00000000007219D7: FLEngine_x64.dll
00000000006E0000:00000000007222DB: FLEngine_x64.dll
00000000006E0000:00000000006F1586: FLEngine_x64.dll
00000000006E0000:00000000007D28A1: FLEngine_x64.dll
00000000006E0000:00000000007D4F87: FLEngine_x64.dll
00000000006E0000:00000000008D179D: FLEngine_x64.dll
00000000006E0000:00000000007D533E: FLEngine_x64.dll
00000000006E0000:00000000007D552B: FLEngine_x64.dll
00000000006E0000:0000000000B5154E: FLEngine_x64.dll
00000000006E0000:0000000000B518EF: FLEngine_x64.dll
00000000006E0000:0000000000D3BA32: FLEngine_x64.dll
00000000006E0000:0000000000D3B5BE: FLEngine_x64.dll
00000000006E0000:0000000000ADD5D0: FLEngine_x64.dll
00000000006E0000:00000000010D396F: FLEngine_x64.dll
00000000006E0000:00000000010E01A7: FLEngine_x64.dll
00000000006E0000:00000000034C3F89: FLEngine_x64.dll
00000000006E0000:00000000012B1302: FLEngine_x64.dll
00000000006E0000:00000000012B1D9B: FLEngine_x64.dll
0000000140000000:0000000140003BE7: FL64.exe
0000000140000000:000000014000400B: FL64.exe
0000000140000000:0000000140005287: FL64.exe
000000007B600000:000000007B62C729: kernel32.dll
000000007BC00000:000000007BC58033: ntdll.dll
0000000000000000:0000000000000000: 
0000000140000000:00000001400052DC: FL64.exe
00007FFFFFBB0000:00007FFFFFDAF000: FL64.exe
0000000000000000:0000000000000000: 
I run FL Studio on Manjaro Linux using Wine. I've tested running the 20.8 RC5 and RC6 versions on at least Wine 5.7 and 5.22, switching between emulating Windows 10 and Windows 7.
FL 20.7.3 did not have this problem.
Praash wrote: Mon Dec 14, 2020 5:41 am I've done some debugging and now I'm sure it has something to do with locales.

The crash log with WINEDEBUG=+relay,+pid,+seh :

Code: Select all

Ret  KERNEL32.FindNextFileW() retval=00000000 ret=007170e5
Call KERNEL32.GetLastError() ret=007170f8
Ret  KERNEL32.GetLastError() retval=00000012 ret=007170f8
Call KERNEL32.CompareStringW(00000800,00000008,0f3ae310 L"FL Studio homepage",00000012,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3add50 L"FL Studio Mobile",00000010,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3adb50 L"FL Studio tutorials",00000013,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3ad8d0 L"Support - Forum",0000000f,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0691aed0 L"Support - Knowledgebase",00000017,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a

Call user32.LoadStringW(006e0000,0000ff62,05b62850,00000400) ret=00811b50
Based on my previous debugging, the last call with LoadStringW is responsible for loading the error message string "List index out of bounds (%d)". So the error happens immediately after the string comparison result. CompareStringW should return 2 when two strings are equal.
The comparison flag 0x8 (SORT_DIGITSASNUMBERS), is (for really unknown reasons) unsupported by WINE.
User "johnzoro" already submitted a patch to upstream wine: https://source.winehq.org/patches/data/197508

This fix is very small and essentially makes Wine ignore the flag's presence instead of throwing an unexpected string comparison error.
I think the patch should be accepted quickly, or we should quickly submit it to wine-staging if it's being ignored in the main branch.
Related bug report: https://bugs.winehq.org/show_bug.cgi?id=46782

Johnzoro built a pacman package with a patched wine version: https://drive.google.com/file/d/1WO9IFd ... sp=sharing
To help some Ubuntu/LM users, I tried converting the package to .deb with alien, but didn't test it myself yet: https://drive.google.com/file/d/15I_B1q ... sp=sharing
nazray
Newbie
Newbie
Posts: 1
Joined: Thu Dec 24, 2020 11:12 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by nazray »

I'm having the exact same problem, nothing I do seems to remedy the situation. I'm not quite sure how to run the pacman package Praash has included, any tips?
bbmian
Newbie
Newbie
Posts: 2
Joined: Sun Dec 20, 2020 7:31 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by bbmian »

I am having the same problem. Using the patched kernelbase.dll's allows me to launch and largely use FL 20.8 (and all plugins), but the plugin manager crashes with the following error:

Code: Select all

wine '/home/bbmian/.wine/drive_c/Program Files/Image-Line/FL Studio 20/System/Tools/Plugin Manager/PluginManager.exe' 
00fc:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
00fc:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
00fc:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
00fc:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0104:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0104:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0104:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0104:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0104:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0104:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00fc:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00fc:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00fc:fixme:thread:GetThreadUILanguage : stub, returning default language.
00fc:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0031D9B8, 00000000 0031D9E0
00fc:fixme:nls:get_dummy_preferred_ui_language (0x38 0031D9B8 00000000 0031D9E0) returning a dummy value (current locale)
00fc:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0031D9B8, 019019B0 0031D9E0
00fc:fixme:nls:get_dummy_preferred_ui_language (0x38 0031D9B8 019019B0 0031D9E0) returning a dummy value (current locale)
00fc:fixme:wtsapi:WTSRegisterSessionNotification Stub 00020070 0x00000000
00fc:fixme:uxtheme:BufferedPaintInit Stub ()
00fc:fixme:thread:GetThreadUILanguage : stub, returning default language.
00fc:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0031D29C, 00000000 0031D2C4
00fc:fixme:nls:get_dummy_preferred_ui_language (0x38 0031D29C 00000000 0031D2C4) returning a dummy value (current locale)
00fc:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0031D29C, 01C93350 0031D2C4
00fc:fixme:nls:get_dummy_preferred_ui_language (0x38 0031D29C 01C93350 0031D2C4) returning a dummy value (current locale)
00fc:fixme:thread:GetThreadUILanguage : stub, returning default language.
00fc:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0031D25C, 00000000 0031D284
00fc:fixme:nls:get_dummy_preferred_ui_language (0x38 0031D25C 00000000 0031D284) returning a dummy value (current locale)
00fc:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0031D25C, 021E3350 0031D284
00fc:fixme:nls:get_dummy_preferred_ui_language (0x38 0031D25C 021E3350 0031D284) returning a dummy value (current locale)
00fc:fixme:font:freetype_set_outline_text_metrics failed to read full_nameW for font L"Ani"!

chungjryan
Newbie
Newbie
Posts: 1
Joined: Thu Jan 14, 2021 12:29 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by chungjryan »

nazray wrote: Thu Dec 24, 2020 11:28 pm I'm having the exact same problem, nothing I do seems to remedy the situation. I'm not quite sure how to run the pacman package Praash has included, any tips?
I'm a bit late, but use

Code: Select all

sudo pacman -U /path/to/pkg.tar.zst
that worked for me
mitzuki
Newbie
Newbie
Posts: 1
Joined: Wed Feb 03, 2021 3:06 am

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by mitzuki »

Praash wrote: Fri Dec 18, 2020 3:43 am I talked about this in the Image-Line forums and found that this is an issue with dlls/kernelbase/locale.c :
FL 20.8 RC5/6 crashes immediately after the floating logo:

Code: Select all

FL Studio (20.8.0.2108) has encountered an error and needs to restart.

Crash log saved to C:\users\praash\My Documents\Image-Line\FL Studio\Support\Logs\Crash\ folder.

Please use Ctrl+C to copy this message and report to support.

Exception: 
List index out of bounds (5)
Callstack: 
00000000006E0000:0000000000D325BC: FLEngine_x64.dll
00000000006E0000:00000000007219D7: FLEngine_x64.dll
00000000006E0000:00000000007222DB: FLEngine_x64.dll
00000000006E0000:00000000006F1586: FLEngine_x64.dll
00000000006E0000:00000000007D28A1: FLEngine_x64.dll
00000000006E0000:00000000007D4F87: FLEngine_x64.dll
00000000006E0000:00000000008D179D: FLEngine_x64.dll
00000000006E0000:00000000007D533E: FLEngine_x64.dll
00000000006E0000:00000000007D552B: FLEngine_x64.dll
00000000006E0000:0000000000B5154E: FLEngine_x64.dll
00000000006E0000:0000000000B518EF: FLEngine_x64.dll
00000000006E0000:0000000000D3BA32: FLEngine_x64.dll
00000000006E0000:0000000000D3B5BE: FLEngine_x64.dll
00000000006E0000:0000000000ADD5D0: FLEngine_x64.dll
00000000006E0000:00000000010D396F: FLEngine_x64.dll
00000000006E0000:00000000010E01A7: FLEngine_x64.dll
00000000006E0000:00000000034C3F89: FLEngine_x64.dll
00000000006E0000:00000000012B1302: FLEngine_x64.dll
00000000006E0000:00000000012B1D9B: FLEngine_x64.dll
0000000140000000:0000000140003BE7: FL64.exe
0000000140000000:000000014000400B: FL64.exe
0000000140000000:0000000140005287: FL64.exe
000000007B600000:000000007B62C729: kernel32.dll
000000007BC00000:000000007BC58033: ntdll.dll
0000000000000000:0000000000000000: 
0000000140000000:00000001400052DC: FL64.exe
00007FFFFFBB0000:00007FFFFFDAF000: FL64.exe
0000000000000000:0000000000000000: 
I run FL Studio on Manjaro Linux using Wine. I've tested running the 20.8 RC5 and RC6 versions on at least Wine 5.7 and 5.22, switching between emulating Windows 10 and Windows 7.
FL 20.7.3 did not have this problem.
Praash wrote: Mon Dec 14, 2020 5:41 am I've done some debugging and now I'm sure it has something to do with locales.

The crash log with WINEDEBUG=+relay,+pid,+seh :

Code: Select all

Ret  KERNEL32.FindNextFileW() retval=00000000 ret=007170e5
Call KERNEL32.GetLastError() ret=007170f8
Ret  KERNEL32.GetLastError() retval=00000012 ret=007170f8
Call KERNEL32.CompareStringW(00000800,00000008,0f3ae310 L"FL Studio homepage",00000012,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3add50 L"FL Studio Mobile",00000010,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3adb50 L"FL Studio tutorials",00000013,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3ad8d0 L"Support - Forum",0000000f,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0691aed0 L"Support - Knowledgebase",00000017,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a

Call user32.LoadStringW(006e0000,0000ff62,05b62850,00000400) ret=00811b50
Based on my previous debugging, the last call with LoadStringW is responsible for loading the error message string "List index out of bounds (%d)". So the error happens immediately after the string comparison result. CompareStringW should return 2 when two strings are equal.
The comparison flag 0x8 (SORT_DIGITSASNUMBERS), is (for really unknown reasons) unsupported by WINE.
User "johnzoro" already submitted a patch to upstream wine: https://source.winehq.org/patches/data/197508

This fix is very small and essentially makes Wine ignore the flag's presence instead of throwing an unexpected string comparison error.
I think the patch should be accepted quickly, or we should quickly submit it to wine-staging if it's being ignored in the main branch.
Related bug report: https://bugs.winehq.org/show_bug.cgi?id=46782

Johnzoro built a pacman package with a patched wine version: https://drive.google.com/file/d/1WO9IFd ... sp=sharing
To help some Ubuntu/LM users, I tried converting the package to .deb with alien, but didn't test it myself yet: https://drive.google.com/file/d/15I_B1q ... sp=sharing

I created an account just to say Thank you very much!!!
I was struggling to get it to run in Kubuntu 20.10, 5.8.0-41-generic 64bit.
After dirty copying the files from the compressed archive, I was able to run it like it charm!!

Note: when I ran FL Studio from the shortcut, it asked me to install a few packages through wine, then it ran FL Studio without a problem.
bbmian
Newbie
Newbie
Posts: 2
Joined: Sun Dec 20, 2020 7:31 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by bbmian »

Looks like the patch didn't make it in to 6.0 Is anybody looking at getting it merged?
kajlanko
Level 1
Level 1
Posts: 5
Joined: Sun Feb 28, 2021 8:34 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by kajlanko »

The bug has been confirmed and even a patch has been submitted
https://bugs.winehq.org/show_bug.cgi?id=50362
but for some odd reason it hasn't been merged yet...
Currently the hope is in forks such as Lutris Wine or Wine-tkg. Create an issue on their GitHubs!
kajlanko
Level 1
Level 1
Posts: 5
Joined: Sun Feb 28, 2021 8:34 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by kajlanko »

So the fix was implemented in wine-tkg 6.4 (fork) although I still get this error:
FL Studio (20.8.2.2247) has encountered an error and needs to restart.
....
Exception:
List index out of bounds (100)
Callstack:
00000000006F0000:0000000000D48CDC: FLEngine_x64.dll
00000000006F0000:00000000007319F7: FLEngine_x64.dll
00000000006F0000:00000000007322FB: FLEngine_x64.dll
00000000006F0000:0000000000701586: FLEngine_x64.dll
00000000006F0000:00000000007E2981: FLEngine_x64.dll
00000000006F0000:00000000007E5067: FLEngine_x64.dll
00000000006F0000:00000000008E191D: FLEngine_x64.dll
00000000006F0000:00000000007E541E: FLEngine_x64.dll
00000000006F0000:00000000007E560B: FLEngine_x64.dll
00000000006F0000:0000000000B67679: FLEngine_x64.dll
00000000006F0000:0000000000B6792F: FLEngine_x64.dll
00000000006F0000:000000000110C50E: FLEngine_x64.dll
00000000006F0000:000000000354BE90: FLEngine_x64.dll
00000000006F0000:00000000012E2082: FLEngine_x64.dll
00000000006F0000:00000000012E2BA9: FLEngine_x64.dll
0000000140000000:0000000140003BE7: FL64.exe
0000000140000000:000000014000400B: FL64.exe
0000000140000000:0000000140005287: FL64.exe
000000007B600000:000000007B62C9D9: kernel32.dll
000000007BC00000:000000007BC5A48C: ntdll.dll
0000000000000000:0000000000000000:
0000000140000000:00000001400052DC: FL64.exe
000000013FE00000:000000013FFFF000: FL64.exe
0000000000000000:0000000000000000:
____
I don't know if it's a fault of implementation or fix itself.
kajlanko
Level 1
Level 1
Posts: 5
Joined: Sun Feb 28, 2021 8:34 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by kajlanko »

Okay so all you have to do is build wine or wine-tkg with this patch yourself (only tar.zst I don't how to build .deb).
__
Here are already compiled package (by me):
https://github.com/kajlando/wine-tkg-git/releases
__
kajlanko
Level 1
Level 1
Posts: 5
Joined: Sun Feb 28, 2021 8:34 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by kajlanko »

Willz256
Newbie
Newbie
Posts: 3
Joined: Wed Mar 24, 2021 7:10 am

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by Willz256 »

mitzuki wrote: Wed Feb 03, 2021 3:12 am
Praash wrote: Fri Dec 18, 2020 3:43 am I talked about this in the Image-Line forums and found that this is an issue with dlls/kernelbase/locale.c :
FL 20.8 RC5/6 crashes immediately after the floating logo:

Code: Select all

FL Studio (20.8.0.2108) has encountered an error and needs to restart.

Crash log saved to C:\users\praash\My Documents\Image-Line\FL Studio\Support\Logs\Crash\ folder.

Please use Ctrl+C to copy this message and report to support.

Exception: 
List index out of bounds (5)
Callstack: 
00000000006E0000:0000000000D325BC: FLEngine_x64.dll
00000000006E0000:00000000007219D7: FLEngine_x64.dll
00000000006E0000:00000000007222DB: FLEngine_x64.dll
00000000006E0000:00000000006F1586: FLEngine_x64.dll
00000000006E0000:00000000007D28A1: FLEngine_x64.dll
00000000006E0000:00000000007D4F87: FLEngine_x64.dll
00000000006E0000:00000000008D179D: FLEngine_x64.dll
00000000006E0000:00000000007D533E: FLEngine_x64.dll
00000000006E0000:00000000007D552B: FLEngine_x64.dll
00000000006E0000:0000000000B5154E: FLEngine_x64.dll
00000000006E0000:0000000000B518EF: FLEngine_x64.dll
00000000006E0000:0000000000D3BA32: FLEngine_x64.dll
00000000006E0000:0000000000D3B5BE: FLEngine_x64.dll
00000000006E0000:0000000000ADD5D0: FLEngine_x64.dll
00000000006E0000:00000000010D396F: FLEngine_x64.dll
00000000006E0000:00000000010E01A7: FLEngine_x64.dll
00000000006E0000:00000000034C3F89: FLEngine_x64.dll
00000000006E0000:00000000012B1302: FLEngine_x64.dll
00000000006E0000:00000000012B1D9B: FLEngine_x64.dll
0000000140000000:0000000140003BE7: FL64.exe
0000000140000000:000000014000400B: FL64.exe
0000000140000000:0000000140005287: FL64.exe
000000007B600000:000000007B62C729: kernel32.dll
000000007BC00000:000000007BC58033: ntdll.dll
0000000000000000:0000000000000000: 
0000000140000000:00000001400052DC: FL64.exe
00007FFFFFBB0000:00007FFFFFDAF000: FL64.exe
0000000000000000:0000000000000000: 
I run FL Studio on Manjaro Linux using Wine. I've tested running the 20.8 RC5 and RC6 versions on at least Wine 5.7 and 5.22, switching between emulating Windows 10 and Windows 7.
FL 20.7.3 did not have this problem.
Praash wrote: Mon Dec 14, 2020 5:41 am I've done some debugging and now I'm sure it has something to do with locales.

The crash log with WINEDEBUG=+relay,+pid,+seh :

Code: Select all

Ret  KERNEL32.FindNextFileW() retval=00000000 ret=007170e5
Call KERNEL32.GetLastError() ret=007170f8
Ret  KERNEL32.GetLastError() retval=00000012 ret=007170f8
Call KERNEL32.CompareStringW(00000800,00000008,0f3ae310 L"FL Studio homepage",00000012,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3add50 L"FL Studio Mobile",00000010,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3adb50 L"FL Studio tutorials",00000013,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3ad8d0 L"Support - Forum",0000000f,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0691aed0 L"Support - Knowledgebase",00000017,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a

Call user32.LoadStringW(006e0000,0000ff62,05b62850,00000400) ret=00811b50
Based on my previous debugging, the last call with LoadStringW is responsible for loading the error message string "List index out of bounds (%d)". So the error happens immediately after the string comparison result. CompareStringW should return 2 when two strings are equal.
The comparison flag 0x8 (SORT_DIGITSASNUMBERS), is (for really unknown reasons) unsupported by WINE.
User "johnzoro" already submitted a patch to upstream wine: https://source.winehq.org/patches/data/197508

This fix is very small and essentially makes Wine ignore the flag's presence instead of throwing an unexpected string comparison error.
I think the patch should be accepted quickly, or we should quickly submit it to wine-staging if it's being ignored in the main branch.
Related bug report: https://bugs.winehq.org/show_bug.cgi?id=46782

Johnzoro built a pacman package with a patched wine version: https://drive.google.com/file/d/1WO9IFd ... sp=sharing
To help some Ubuntu/LM users, I tried converting the package to .deb with alien, but didn't test it myself yet: https://drive.google.com/file/d/15I_B1q ... sp=sharing

I created an account just to say Thank you very much!!!
I was struggling to get it to run in Kubuntu 20.10, 5.8.0-41-generic 64bit.
After dirty copying the files from the compressed archive, I was able to run it like it charm!!

Note: when I ran FL Studio from the shortcut, it asked me to install a few packages through wine, then it ran FL Studio without a problem.

Okay I'm a toootal newb and would like a step by step guide on applying this on my ubuntu18.04 installation
Is this even possible? Thanks in advance
Mk_91205
Newbie
Newbie
Posts: 1
Joined: Wed Aug 18, 2021 6:41 am

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by Mk_91205 »

Praash wrote: Fri Dec 18, 2020 3:43 am I talked about this in the Image-Line forums and found that this is an issue with dlls/kernelbase/locale.c :
FL 20.8 RC5/6 crashes immediately after the floating logo:

Code: Select all

FL Studio (20.8.0.2108) has encountered an error and needs to restart.

Crash log saved to C:\users\praash\My Documents\Image-Line\FL Studio\Support\Logs\Crash\ folder.

Please use Ctrl+C to copy this message and report to support.

Exception: 
List index out of bounds (5)
Callstack: 
00000000006E0000:0000000000D325BC: FLEngine_x64.dll
00000000006E0000:00000000007219D7: FLEngine_x64.dll
00000000006E0000:00000000007222DB: FLEngine_x64.dll
00000000006E0000:00000000006F1586: FLEngine_x64.dll
00000000006E0000:00000000007D28A1: FLEngine_x64.dll
00000000006E0000:00000000007D4F87: FLEngine_x64.dll
00000000006E0000:00000000008D179D: FLEngine_x64.dll
00000000006E0000:00000000007D533E: FLEngine_x64.dll
00000000006E0000:00000000007D552B: FLEngine_x64.dll
00000000006E0000:0000000000B5154E: FLEngine_x64.dll
00000000006E0000:0000000000B518EF: FLEngine_x64.dll
00000000006E0000:0000000000D3BA32: FLEngine_x64.dll
00000000006E0000:0000000000D3B5BE: FLEngine_x64.dll
00000000006E0000:0000000000ADD5D0: FLEngine_x64.dll
00000000006E0000:00000000010D396F: FLEngine_x64.dll
00000000006E0000:00000000010E01A7: FLEngine_x64.dll
00000000006E0000:00000000034C3F89: FLEngine_x64.dll
00000000006E0000:00000000012B1302: FLEngine_x64.dll
00000000006E0000:00000000012B1D9B: FLEngine_x64.dll
0000000140000000:0000000140003BE7: FL64.exe
0000000140000000:000000014000400B: FL64.exe
0000000140000000:0000000140005287: FL64.exe
000000007B600000:000000007B62C729: kernel32.dll
000000007BC00000:000000007BC58033: ntdll.dll
0000000000000000:0000000000000000: 
0000000140000000:00000001400052DC: FL64.exe
00007FFFFFBB0000:00007FFFFFDAF000: FL64.exe
0000000000000000:0000000000000000: 
I run FL Studio on Manjaro Linux using Wine. I've tested running the 20.8 RC5 and RC6 versions on at least Wine 5.7 and 5.22, switching between emulating Windows 10 and Windows 7.
FL 20.7.3 did not have this problem.
Praash wrote: Mon Dec 14, 2020 5:41 am I've done some debugging and now I'm sure it has something to do with locales.

The crash log with WINEDEBUG=+relay,+pid,+seh :

Code: Select all

Ret  KERNEL32.FindNextFileW() retval=00000000 ret=007170e5
Call KERNEL32.GetLastError() ret=007170f8
Ret  KERNEL32.GetLastError() retval=00000012 ret=007170f8
Call KERNEL32.CompareStringW(00000800,00000008,0f3ae310 L"FL Studio homepage",00000012,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3add50 L"FL Studio Mobile",00000010,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3adb50 L"FL Studio tutorials",00000013,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0f3ad8d0 L"Support - Forum",0000000f,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a
Call KERNEL32.CompareStringW(00000800,00000008,0691aed0 L"Support - Knowledgebase",00000017,0f3adb50 L"FL Studio tutorials",00000013) ret=008d180a
Ret  KERNEL32.CompareStringW() retval=00000000 ret=008d180a

Call user32.LoadStringW(006e0000,0000ff62,05b62850,00000400) ret=00811b50
Based on my previous debugging, the last call with LoadStringW is responsible for loading the error message string "List index out of bounds (%d)". So the error happens immediately after the string comparison result. CompareStringW should return 2 when two strings are equal.
The comparison flag 0x8 (SORT_DIGITSASNUMBERS), is (for really unknown reasons) unsupported by WINE.
User "johnzoro" already submitted a patch to upstream wine: https://source.winehq.org/patches/data/197508

This fix is very small and essentially makes Wine ignore the flag's presence instead of throwing an unexpected string comparison error.
I think the patch should be accepted quickly, or we should quickly submit it to wine-staging if it's being ignored in the main branch.
Related bug report: https://bugs.winehq.org/show_bug.cgi?id=46782

Johnzoro built a pacman package with a patched wine version: https://drive.google.com/file/d/1WO9IFd ... sp=sharing
To help some Ubuntu/LM users, I tried converting the package to .deb with alien, but didn't test it myself yet: https://drive.google.com/file/d/15I_B1q ... sp=sharing
Hey I tried to install the .deb package but it shows this error:
dpkg: error processing archive /home/<username>/Downloads/winetest_6.0-2_all.deb (--unpa
ck):
trying to overwrite '/usr/share/wine/fonts/coue1255.fon', which is also in package fonts-wine 5.0-3ubuntu1
Any idea?
kajlanko
Level 1
Level 1
Posts: 5
Joined: Sun Feb 28, 2021 8:34 pm

Re: Wine 5.22 and FL Studio 20 startup error every time

Post by kajlanko »

[/quote]
Hey I tried to install the .deb package but it shows this error:
dpkg: error processing archive /home/<username>/Downloads/winetest_6.0-2_all.deb (--unpa
ck):
trying to overwrite '/usr/share/wine/fonts/coue1255.fon', which is also in package fonts-wine 5.0-3ubuntu1
Any idea?
[/quote]
Install from here with Lutris:
https://lutris.net/games/fl-studio/
Lutris should use Wine version which already has patch built-in (Wine team added it in 6.5).
Locked