Gcenx / WineskinServer

Wineskin
GNU Lesser General Public License v2.1
2.4k stars 167 forks source link

WinSCP Portable crash on 23.7.1 #540

Closed niphor closed 4 months ago

niphor commented 4 months ago

Environment (please complete the following information):

Describe the bug This application runs normally on Wine7.x with the OS version set to Win7, but it crashes on Wine8.x.

Wrapper Engine OS Result
2.9.2.0 WS11WineCX64Bit23.7.1 Win10 crash in most cases
2.9.2.0 WS11WineCX64Bit23.7.1 Win7 crash
2.9.2.0 WS11WineCX64Bit22.1.1-16 Win10 ListItem not render Properly
2.9.2.0 WS11WineCX64Bit22.1.1-16 Win7 work

I would like to ask how to run it with WS11WineCX64Bit23.7.1 or how to properly run with WS11WineCX64Bit22.1.1-16(Win10).

To Reproduce

  1. Download WinSCP Portable and extract it.
  2. Set the WineCfg system version to Windows7.
  3. Run the program.

Expected behavior WinSCP_working

Screenshots Engine OS Result
WS11WineCX64Bit23.7.1 Win10 WinSCP_StackTrace_Error
WS11WineCX64Bit23.7.1 Win7 WinSCP_StackTrace_Error
WS11WineCX64Bit22.1.1-16 Win10 WinSCP_Listview_not_visiable WinSCP_Listview_not_visiable2
WS11WineCX64Bit22.1.1-16 Win7 work

LastRunWine.log WS11WineCX64Bit23.7.1

❯ cd /Users/xxx/Applications/Wineskin/MyCoolWrapper.app/drive_c
❯ wine  ./Program\ Files/WinSCP-6.3-Portable/WinSCP.exe
wineserver: using server-side synchronization.
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00cc:err:environ:init_peb starting L"C:\\Program Files\\WinSCP-6.3-Portable\\WinSCP.exe" in experimental wow64 mode
00cc:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
00cc:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
00cc:fixme:thread:GetThreadUILanguage : stub, returning default language.
00cc:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0012D9C0, 00000000 0012D9E8
00cc:fixme:nls:get_dummy_preferred_ui_language (0x38 0x804 0012D9C0 00000000 0012D9E8) returning a dummy value (current locale)
00cc:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0012D9C0, 03883480 0012D9E8
00cc:fixme:nls:get_dummy_preferred_ui_language (0x38 0x804 0012D9C0 03883480 0012D9E8) returning a dummy value (current locale)
00cc:fixme:wtsapi:WTSRegisterSessionNotification Stub 0001007E 0x00000000
00cc:fixme:uxtheme:BufferedPaintInit Stub ()
00cc:fixme:ver:GetCurrentPackageFamilyName (0012FB40 00000000): stub
0118:fixme:shell:CustomDestinationList_BeginList 02097010 (0449FFF4 {92ca9dcd-5622-4bba-a805-5e9f541bd8c9} 044A0008): stub
00cc:fixme:thread:get_thread_times not implemented on this platform
00cc:fixme:msg:ChangeWindowMessageFilterEx 0001007E c04c 1 00000000
00cc:fixme:dwmapi:DwmSetWindowAttribute (000100B6, 14, 0012F264, 4) stub
00cc:fixme:win:NtUserFlashWindowEx 0x1b8f320 - semi-stub
00d4:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
00d4:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub
00cc:fixme:imm:ImeSetActiveContext (00010076, 1): stub
00cc:fixme:imm:ImmReleaseContext (000500CA, 00010076): stub
00cc:fixme:win:WINNLSEnableIME hwnd 000500CA enable -1: stub!
00cc:fixme:win:WINNLSEnableIME hwnd 000500CA enable -1: stub!
00cc:fixme:win:WINNLSEnableIME hwnd 000500CA enable -1: stub!
00cc:fixme:win:WINNLSEnableIME hwnd 000500CA enable -1: stub!
00cc:fixme:win:WINNLSEnableIME hwnd 000500CA enable -1: stub!
00cc:fixme:wtsapi:WTSUnRegisterSessionNotification Stub 0001007E
00cc:fixme:uxtheme:BufferedPaintUnInit Stub ()

WS11WineCX64Bit22.1.1-16

❯ cd /Users/xxx/Applications/Wineskin/MyCoolWrapper.app/drive_c
❯ wine  ./Program\ Files/WinSCP-6.3-Portable/WinSCP.exe
wineserver: using server-side synchronization.
0024:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
0024:fixme:thread:GetThreadUILanguage : stub, returning default language.
0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0012D9C0, 00000000 0012D9E8
0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0012D9C0 00000000 0012D9E8) returning a dummy value (current locale)
0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0012D9C0, 03A23680 0012D9E8
0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0012D9C0 03A23680 0012D9E8) returning a dummy value (current locale)
0024:fixme:wtsapi:WTSRegisterSessionNotification Stub 00010078 0x00000000
0024:fixme:uxtheme:BufferedPaintInit Stub ()
0024:fixme:ver:GetCurrentPackageFamilyName (0012FB40 00000000): stub
0108:fixme:shell:CustomDestinationList_BeginList 01C8F040 (046B81C4 {92ca9dcd-5622-4bba-a805-5e9f541bd8c9} 046B81D8): stub
0024:fixme:thread:get_thread_times not implemented on this platform
0024:fixme:msg:ChangeWindowMessageFilterEx 00010078 c04c 1 00000000
0024:fixme:dwmapi:DwmSetWindowAttribute (000100B0, 14, 0012F264, 4) stub
0024:err:listview:LISTVIEW_WindowProc unknown msg 109d, wp 0, lp 0
0024:err:listview:LISTVIEW_WindowProc unknown msg 10bd, wp 1280e3c, lp 12f7a0
0024:err:listview:LISTVIEW_WindowProc unknown msg 109d, wp 0, lp 0
0024:err:listview:LISTVIEW_WindowProc unknown msg 10bd, wp 1280e3c, lp 12f7a0
0024:err:listview:LISTVIEW_WindowProc unknown msg 109d, wp 0, lp 0
0024:err:listview:LISTVIEW_WindowProc unknown msg 10bd, wp 1280e3c, lp 12f7c0
0024:fixme:win:RegisterDeviceNotificationW DBT_DEVTYP_HANDLE filter type not implemented
0024:fixme:imm:ImeSetActiveContext (0x4f4e928, 1): stub
0024:fixme:imm:ImmReleaseContext (00010192, 04F4E928): stub
0024:err:listview:LISTVIEW_WindowProc unknown msg 109d, wp 0, lp 0
0024:fixme:win:RegisterDeviceNotificationW DBT_DEVTYP_HANDLE filter type not implemented
00c4:fixme:imm:ImeSetActiveContext (0x37f590, 0): stub
00c4:fixme:imm:ImmReleaseContext (0000000000010020, 000000000037F590): stub
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (04F5E660 0012ED0C 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (0566D2E8 0012EB50 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (04F5E660 0012ED0C 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (05670B00 0012EB5C 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (0566D2E8 0012EB50 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (0566D2E8 0012ED0C 255)
0024:fixme:treeview:TREEVIEW_PrintClient Partial Stub: (hdc=074102A0 options=0)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (0569A290 0012EAE0 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (0574D188 0012E940 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (0574D188 0012EAFC 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (0574D188 0012EAFC 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (0574D188 0012EAFC 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (04F54710 0012F27C 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (04F5FEA0 0012F0C0 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (04F5FEA0 0012F27C 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (04F5FEA0 0012F27C 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (056AFDE0 0012F0CC 255)
0024:fixme:uxtheme:BufferedPaintSetAlpha Stub (056AFDE0 0012F0CC 255)
0024:fixme:wtsapi:WTSUnRegisterSessionNotification Stub 00010078
0024:fixme:uxtheme:BufferedPaintUnInit Stub ()
emendelson commented 4 months ago

For what it's worth, WinSCP (non-portable) runs perfectly on a wrapper made with Wineskin 2.9.1.1 and WS11WineCX64bit21.2.0. I put this together a few years ago. I made a copy and updated to 22.x and 23.x engines, and the Windows app didn't start at all.

Gcenx commented 4 months ago
Screenshot 2024-02-16 at 3 49 10 PM

Working with the latest wineskin-devel with it's version of WS12WineCX64Bit23.7.1 when set to Win7

niphor commented 4 months ago

@Gcenx I tried it with wineskin-devel and indeed it works. thank you.

Additionally, I would like to inquire about the latest version of Chrome that can run on WineSkin.

I'm currently able to run Chrome 90(OS:Win7 with --disable-gpu --no-sandbox --disable-software-rasterizer parameters), but it's too old, and some extensions can't be used properly (such as Bitwarden).

I've tried some newer chrome versions, but none of them work(GUI not render).

Gcenx commented 4 months ago

I’ve never tried Chrome inside wine so really can’t comment, I’m glad you were able to confirm the app is working with wineskin-devel

niphor commented 4 months ago

ok. thank you

Gcenx commented 4 months ago

Seems this was an upstream bug but that was resolved in at least wine-stable-9.0

niphor commented 4 months ago

test on WS11Wine64Bit9.2 in wineskin-devel. WinSCP work with OS:Win10

i tested chrome 109 with WS11Wine64Bit9.2 still can't render image

but i got lucky with --in-process-gpu parameter, although it still displayed an ugly titlebar and became unresponsive after a while image

I also have another software notepad2_mod, which cannot display any content properly using Direct2D render. test on WS11WineCX64Bit23.7.1、WS11WineCX64Bit23.7.1、WS11Wine64Bit9.x on WS11WineCX64Bit22.1.1-16 and lower,it can render sometimes,most time unresponsive and freeze with No main window but a titlebar.

image

Gcenx commented 4 months ago

CEF is a PITA I’m surprised it wooed that well with just the one command.

notepad2_mod; maybe try using GDI for rendering?, if it’s not working in wine-9.2 engine it’s definitely an upstream wine bug.


The wine-9.x Engines are repackaged Winehq packages just ever so slightly tweaked to work more cleanly inside Wineskin.

niphor commented 4 months ago

Yes, GDI works fine. Overall,I wish there were fewer bugs in DirectX within Wine.

I have no choice to use Windows Chrome (to login jumpserver) to perform VPS maintenance.

Gcenx commented 4 months ago

Yes, GDI works fine. Overall,I wish there were fewer bugs in DirectX within Wine.

As long as you use Winehq Engine launch with you should be able to submit a bug report to Winehq.


I have no choice to use Windows Chrome (to login jumpserver) to perform VPS maintenance.

Makes sense glad you have it somewhat working now