Cannot load .sdf - file. Can this be solved?

Questions about Wine on Linux
Locked
dsonlinux
Level 1
Level 1
Posts: 5
Joined: Sat Dec 31, 2022 5:15 am

Cannot load .sdf - file. Can this be solved?

Post by dsonlinux »

Hello,

I am running wine 7.0.1~jammy-1 on Kubuntu 22.04LTS.
A program I'd like to use installed without error but does not start. Running the .exe leads to a popup saying that a .sdf file could not be loaded. Re-starting the program might help. It does not :D .

Is there maybe any library I could add that helps to solve that problem?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot load .sdf - file. Can this be solved?

Post by jkfloris »

Maybe we can help you if you give a little more information.
Start the program from the command line. This will allow you to see messages from Wine that may help troubleshoot problems.
Or maybe we can reproduce the problem if you give the name of the program.
dsonlinux
Level 1
Level 1
Posts: 5
Joined: Sat Dec 31, 2022 5:15 am

Re: Cannot load .sdf - file. Can this be solved?

Post by dsonlinux »

Thank you for your quick reply!
I am trying to run PVSOLpremium (the trial version, see https://pvsol.software/en/).
Here is what I get after

Code: Select all

wine start PVSOLpremium.exe
:

Code: Select all

00d4:fixme:mscoree:parse_startup useLegacyV2RuntimeActivationPolicy=L"true" not implemented
00d4:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.7.2" not implemented
00d4:fixme:mscoree:parse_startup useLegacyV2RuntimeActivationPolicy=L"true" not implemented
00d4:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.7.2" not implemented
00d4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00d4:fixme:font:get_nearest_charset TCI failing on 20000000
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 20000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\fonts-gujr-extra\\aakar-medium.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\fonts-beng-extra\\Ani.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\malayalam\\Dyuthi-Regular.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\Gargi\\Gargi.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\Gubbi\\Gubbi.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\fonts-deva-extra\\kalimati.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\Navilu\\Navilu.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\noto\\NotoKufiArabic-Regular.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\fonts-telu-extra\\Pothana2000.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\fonts-gujr-extra\\Rekha.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\fonts-deva-extra\\samanata.ttf"
00d4:fixme:font:find_matching_face Untranslated charset 255
00d4:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\fonts-telu-extra\\vemana2000.ttf"
00d4:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 000000000011E670, 0000000000B3A180, 000000000011E678, 000000000011E668
00d4:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 000000000011E670, 0000000000B3A180, 000000000011E678, 000000000011E668
00d4:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 000000000011E670, 0000000000B3A180, 000000000011E678, 000000000011E668
00d4:fixme:ieframe:get_location_url semi-stub
00d4:fixme:ieframe:refresh_document no document
00d4:fixme:mscoree:CLRCreateInstance not implemented for class {b79b0acd-f5cd-409b-b5a5-a16244610b92}
00d4:fixme:imm:ImeSetActiveContext (0xbbf300, 1): stub
00d4:fixme:imm:ImmReleaseContext (00000000000100C4, 0000000000BBF300): stub
0080:fixme:imm:ImeSetActiveContext (0x25eb30, 0): stub
0080:fixme:imm:ImmReleaseContext (0000000000010020, 000000000025EB30): stub
[ERROR] FATAL UNHANDLED EXCEPTION: System.Data.SqlServerCe.SqlCeException (0x80004005): Native components of SQL Server Compact engine are not loaded. Please reinstall Microsoft SQL Server Compact.
  at System.Data.SqlServerCe.NativeMethods.ThrowIfNativeLibraryNotLoaded () [0x00016] in <7ffb8205147a42a6be598bad2ac4b376>:0 
  at System.Data.SqlServerCe.NativeMethods.DllRelease () [0x00000] in <7ffb8205147a42a6be598bad2ac4b376>:0 
  at System.Data.SqlServerCe.SqlCeConnection.Dispose (System.Boolean disposing) [0x000bc] in <7ffb8205147a42a6be598bad2ac4b376>:0 
00d4:fixme:msg:ChangeWindowMessageFilter c05c 00000001
00d4:fixme:dwmapi:DwmAttachMilContent (00000000000200BA) stub
0124:fixme:gdi:GdiEntry13 stub
0124:fixme:dwrite:dwritefactory_CreateMonitorRenderingParams (0000000000000001): monitor setting ignored
0124:fixme:d3d:wined3d_check_device_format_conversion output 0xb90b70, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
00d4:fixme:wtsapi:WTSQuerySessionInformationW Unimplemented class 8
00d4:fixme:win:RegisterPowerSettingNotification (00000000000200D2,{02731015-4510-4526-99e6-e5a17ebd1aea},0): stub
00d4:fixme:wtsapi:WTSRegisterSessionNotification Stub 00000000000500BC 0x00000000
00d4:fixme:msg:ChangeWindowMessageFilterEx 00000000000500BC c055 1 000000000011E9E8
00d4:fixme:msg:ChangeWindowMessageFilterEx 00000000000500BC 111 1 000000000011E9E8
Seems the main issue lies within "Microsoft SQL Server Compact" ?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot load .sdf - file. Can this be solved?

Post by jkfloris »

Unfortunately, the built-in version of .Net in Wine (wine-mono) cannot run this program. With Microsoft's version of .Net, the program does seem to work.
The easiest way is to use winetricks to install .Net

Code: Select all

winetricks -q dotnet48 corefonts
In my case, the Welcome screen was black. I was able to solve this by installing d3dcompiler_47.

Code: Select all

winetricks -q d3dcompiler_47
dsonlinux
Level 1
Level 1
Posts: 5
Joined: Sat Dec 31, 2022 5:15 am

Re: Cannot load .sdf - file. Can this be solved?

Post by dsonlinux »

Thank you for your reply!

Code: Select all

winetricks -q dotnet48 corefonts
resulted in

Code: Select all

------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20210206 - sha256sum: 0f21da98811e0bfda16a7d6d6b8e860a9cedbd4e836c7dd9b02f068d3092ee2e with wine-7.0.1 and WINEARCH=win64
Executing w_do_call dotnet48
Executing mkdir -p /home/daniel
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_dotnet48 
------------------------------------------------------
warning: This package (dotnet48) is broken in wine-7.0.1. Broken since 5.18. See https://bugs.winehq.org/show_bug.cgi?id=49897 for more info. Use --force to try anyway.
------------------------------------------------------
Can I break anything by forcing?
In my case, the Welcome screen was black. I was able to solve this by installing d3dcompiler_47.

Code: Select all

winetricks -q d3dcompiler_47
seems to have worked
dsonlinux
Level 1
Level 1
Posts: 5
Joined: Sat Dec 31, 2022 5:15 am

Re: Cannot load .sdf - file. Can this be solved?

Post by dsonlinux »

Interesingly, after some minutes some popups came up installing .NET ...
But still, no success in starting the program.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot load .sdf - file. Can this be solved?

Post by jkfloris »

Code: Select all

Using winetricks 20210206 ...
This version of winetricks is too old to know that this problem has been fixed in Wine 7.0.1.
You can update winetricks with:

Code: Select all

sudo winetricks --self-update
# and try again
winetricks -q dotnet48 corefonts
dsonlinux
Level 1
Level 1
Posts: 5
Joined: Sat Dec 31, 2022 5:15 am

Re: Cannot load .sdf - file. Can this be solved?

Post by dsonlinux »

Thank you again, jkfloris! I am now able to start the program.

When I try to load a map to change the climate data, the program crashes.
I believe a VM with a windows installation would be better. Who knows which subprograms would crash when I need them.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot load .sdf - file. Can this be solved?

Post by jkfloris »

You could try to run the program with wine-devel or wine-staging.
Locked