shvedes / photoshop-linux

Automated script for installing Adobe Photoshop CC 2021 on Linux
MIT License
93 stars 5 forks source link

Installs but fails to finish launching #1

Open albaphysic opened 1 month ago

albaphysic commented 1 month ago

On Arch (updated system), wine 9.19, it installed without issue, but when launching it errors out during "initializing panels" in the photoshop GUI and a new window prompts to send an error report.

I launched the app from command line ~/Photoshop/drive_c/launcher.sh to see verbose output, here's the end of that output:

...
01a4:fixme:bcrypt:BCryptGenRandom ignoring selected algorithm
01a4:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 00006FFFE6E715A8, 43) stub
01a4:fixme:dwmapi:DwmGetWindowAttribute attribute 1 not implemented.
01a4:fixme:wtsapi:WTSRegisterSessionNotification Stub 000000000003009C 0x00000001
info:  Game: photoshop.exe
info:  DXVK: v2.4.1
info:  Vulkan: Found vkGetInstanceProcAddr in winevulkan.dll @ 0x6fffdf904300
info:  Built-in extension providers:
info:    Platform WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
info:  OpenVR: Failed to locate module
info:  Required Vulkan extension VK_KHR_surface not supported
err:   DxvkInstance: Required instance extensions not supported
01a4:fixme:combase:RoGetActivationFactory (L"Windows.Foundation.Metadata.ApiInformation", {997439fe-f681-4a11-b416-c13a47e8ba36}, 00007FFFFE1FE860): semi-stub
01a4:fixme:wintypes:api_information_statics_IsTypePresent iface 00006FFFDF9D4038, type_name L"Windows.ApplicationModel.DataTransfer.ShareProvider", value 00007FFFFE1FE85A stub!
01a4:fixme:combase:GetRestrictedErrorInfo (00007FFFFE1FE7D0)
01a4:fixme:combase:RoOriginateLanguageException 0x80004001, L"", 0000000000000000: stub
01a4:fixme:combase:GetRestrictedErrorInfo (00007FFFFE1FE7D0)
0260:fixme:win:DisableProcessWindowsGhosting : stub
0270:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0270:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
0260:err:dbghelp:pe_load_msc_debug_info -Debug info stripped, but no .DBG file in module L"dxgi"
0260:err:dbghelp:pe_load_msc_debug_info -Debug info stripped, but no .DBG file in module L"d3d11"
0260:err:dbghelp:pe_load_msc_debug_info -Debug info stripped, but no .DBG file in module L"d3d10core"
0260:err:dbghelp:pe_load_msc_debug_info -Debug info stripped, but no .DBG file in module L"d3d9"
0260:fixme:dbghelp:elf_search_auxv can't find symbol in module
0288:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0288:fixme:wbemprox:client_security_SetBlanket 00006FFFDF871680, 00007FFFFE7A9010, 10, 0, (null), 3, 3, 0000000000000000, 0
0288:fixme:wbemprox:client_security_Release 00006FFFDF871680
info:  Game: CRWindowsClientService.exe
info:  DXVK: v2.4.1
info:  Vulkan: Found vkGetInstanceProcAddr in winevulkan.dll @ 0x6fffdf6e4300
info:  Built-in extension providers:
info:    Platform WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
info:  OpenVR: Failed to locate module
info:  Required Vulkan extension VK_KHR_surface not supported
err:   DxvkInstance: Required instance extensions not supported
0288:err:dbghelp:pe_load_msc_debug_info -Debug info stripped, but no .DBG file in module L"dxgi"
0288:err:dbghelp:pe_load_msc_debug_info -Debug info stripped, but no .DBG file in module L"d3d11"
0288:err:dbghelp:pe_load_msc_debug_info -Debug info stripped, but no .DBG file in module L"d3d10core"
0288:err:dbghelp:pe_load_msc_debug_info -Debug info stripped, but no .DBG file in module L"d3d9"
0288:fixme:dbghelp:elf_search_auxv can't find symbol in module
0288:fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpWithDataSegs
0288:fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpWithHandleData
0288:fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpFilterMemory
0288:fixme:dbghelp:elf_search_auxv can't find symbol in module
01a4:fixme:seh:WerUnregisterRuntimeExceptionModule (L"C:\\Program Files\\Adobe Photoshop 2021\\CRClient.dll", 00006FFFFBBF1050) stub

I deleted the ~/Photoshop directory and downgraded to wine 7.9 using pacman -U /path/to/wine-7.9-1-x86_64.pkg.tar.zst (downloaded from https://archive.archlinux.org/packages/w/wine/) and ran the script again.

It then didn't launch at all and the output was:

0108:err:module:import_dll Library MSVCP140_CODECVT_IDS.dll (which is needed by L"C:\\Program Files\\Adobe Photoshop 2021\\AdobePDFSettings.dll") not found
0108:err:module:import_dll Library AdobePDFSettings.dll (which is needed by L"C:\\Program Files\\Adobe Photoshop 2021\\photoshop.exe") not found
0108:err:module:LdrInitializeThunk Importing dlls for L"C:\\Program Files\\Adobe Photoshop 2021\\photoshop.exe" failed, status c0000135

I then updated wine to 9.19 and tried launching it again and we're back to square one with the initial issue

shvedes commented 1 month ago

Before continue, please tell me what display server and GPU you're using

shvedes commented 1 month ago

I've updated script. Pull latest changes and try again on new install path

albaphysic commented 1 month ago

Wayland (KDE 6.2.0), Intel HD Graphics 4000

I just tried with the latest changes and it has the following error:

[LOG] Initializing wine and setting up winetricks.. It may take some time
[LOG] Downloading Visual C++ runtime...
        Downloaded vc_redist_2015_2022_x64.exe
        Downloaded vc_redist_2015_2022_x86.exe
        Downloaded vc_redist_2013_x64.exe
        Downloaded vc_redist_2013_x86.exe
        Downloaded vc_redist_2012_x64.exe
        Downloaded vc_redist_2012_x86.exe
        Downloaded vc_redist_2010_x64.exe
        Downloaded vc_redist_2010_x86.exe
[LOG] Installing Visual C++...
        Installed vc_redist_2015_2022_x64.exe
        Installed vc_redist_2015_2022_x86.exe
        Installed vc_redist_2013_x64.exe
        Installed vc_redist_2013_x86.exe
        Installed vc_redist_2012_x64.exe
        Installed vc_redist_2012_x86.exe
        Installed vc_redist_2010_x64.exe
        Installed vc_redist_2010_x86.exe
[LOG] error in the line 260: command 'winecfg -v win10 &> /dev/null'
shvedes commented 1 month ago

Looks weird. winecfg should be installed with wine. Otherwise, script should check all missed dependencies and will stop executing if something is missed. image

I don't see any reason for winecfg to terminate with an error. Can you confirm that wine is installed? If so, then problem with script itself.

albaphysic commented 1 month ago

OMG I typed my username with an uppercase letter when setting path. Such a brainfart I'm sorry.

And great news, it works, thank you!

albaphysic commented 1 month ago

:+1:

albaphysic commented 4 weeks ago

I tried the newest iteration and I get the following error Cannot validade $HOME path.

./install.sh /home/albaphysic/Photoshop

shvedes commented 4 weeks ago

Most likely, there is an error in the logic of checking the validity of the unix path. The function checks for an explicit match of the $HOME variable, and if the user has specified an absolute path, the function will terminate with an error. This is my fault. I will solve it soon. Sorry for that

shvedes commented 4 weeks ago

Pushed fix commit. Please confirm that it works

albaphysic commented 3 weeks ago

Same issue. Maybe it has something to do with my installation? I have /home as a BTRFS subvolume

shvedes commented 3 weeks ago

Can't reporoduce

Screenshot_20241027_125730 Screenshot_20241027_130816 Screenshot_20241027_132727

Maybe it has something to do with my installation?

Don't think so