Wine crashes on TStyleManager operations

Questions about Wine on Linux
Locked
Brad.Wine1
Newbie
Newbie
Posts: 3
Joined: Wed Jul 26, 2017 10:15 pm

Wine crashes on TStyleManager operations

Post by Brad.Wine1 »

IsValidStyle and LoadFromFile and both crash

debian jessie

wine --version
wine-2.0.2


Delphi 10 program
// JCL_DEBUG_EXPERT_DELETEMAPFILE OFF
program Demo;

uses
Windows,
SysUtils,
System.IOUtils,
Types,
Vcl.Forms,
uMain in 'uMain.pas' {FrmMain},
Vcl.Themes,
Vcl.Styles,
Vcl.Styles.Utils.Graphics in '..\..\Common\Vcl.Styles.Utils.Graphics.pas',
Vcl.Styles.Ext in '..\..\Common\Vcl.Styles.Ext.pas',
Vcl.Styles.Utils in '..\..\Common\Vcl.Styles.Utils.pas'
,Vcl.Dialogs
;

{$R *.res}

function PathCanonicalize(lpszDst: PChar; lpszSrc: PChar): LongBool; stdcall; external 'shlwapi.dll' name 'PathCanonicalizeW';
function ResolvePath(const RelPath, BasePath: string): string;
var
lpszDst: array[0..MAX_PATH-1] of char;
begin
PathCanonicalize(@lpszDst[0], PChar(IncludeTrailingPathDelimiter(BasePath) + RelPath));
Exit(lpszDst);
end;

procedure LoadVCLStyles;
var
f, s : string;
LFiles : TStringDynArray;
begin
s:=ExtractFilePath(ParamStr(0));
LFiles:=TDirectory.GetFiles(s, '*.vsf');
if Length(LFiles)>0 then
begin
for f in TDirectory.GetFiles(s, '*.vsf') do
if TStyleManager.IsValidStyle(f) then
TStyleManager.LoadFromFile(f);
end
else
begin
s:=ResolvePath('..\..\..\Styles',ExtractFilePath(ParamStr(0)));
ShowMessage('Path Resolved doing IsValidStyle next and crashes'{+s});
for f in TDirectory.GetFiles(s, '*.vsf') do begin
// if TStyleManager.IsValidStyle(f) then begin
ShowMessage('Loading Style also crashes if just LoadFromFile'+ExtractFileName(f));
TStyleManager.LoadFromFile(f);
// end;
end;
end;
end;

begin
LoadVCLStyles;
end.





Wine config XP

wine Demo.exe
fixme:wtsapi:WTSRegisterSessionNotification Stub 0x1007e 0x00000000
wine: Unhandled exception 0x0eedfade in thread 9 at address 0x7bcd35c4:0x7b43b97c (thread 0009), starting debugger...
err:seh:setup_exception_record stack overflow 1128 bytes in thread 0009 eip 7bc44cfe esp 00230ec8 stack 0x230000-0x231000-0x330000
Process of pid=0008 has terminated
No process loaded, cannot execute 'echo Modules:'
Cannot get info on module while no process is loaded
No process loaded, cannot execute 'echo Threads:'
process tid prio (all id:s are in hex)
0000000e services.exe
00000024 0
00000023 0
0000001a 0
00000014 0
00000010 0
0000000f 0
00000012 winedevice.exe
00000020 0
00000019 0
00000018 0
00000013 0
0000001e plugplay.exe
00000026 0
00000025 0
0000001f 0
00000021 explorer.exe
0000002a 0
00000029 0
00000028 0
00000027 0
00000022 0
winedbg: Internal crash at 0x7edab0b1


Wine config Windows 10

wine Demo.exe
fixme:thread:GetThreadUILanguage : stub, returning default language.
fixme:nls:GetThreadPreferredUILanguages 00000038, 0x32d8f4, (nil) 0x32d91c
fixme:nls:get_dummy_preferred_ui_language (0x38 0x32d8f4 (nil) 0x32d91c) returning a dummy value (current locale)
fixme:nls:GetThreadPreferredUILanguages 00000038, 0x32d8f4, 0x13619b0 0x32d91c
fixme:nls:get_dummy_preferred_ui_language (0x38 0x32d8f4 0x13619b0 0x32d91c) returning a dummy value (current locale)
fixme:wtsapi:WTSRegisterSessionNotification Stub 0x1007e 0x00000000
wine: Unhandled exception 0x0eedfade in thread 9 at address 0x7bcd35c4:0x7b43b97c (thread 0009), starting debugger...
err:seh:setup_exception_record stack overflow 1128 bytes in thread 0009 eip 7bc44cfe esp 00230ec8 stack 0x230000-0x231000-0x330000
Process of pid=0008 has terminated
No process loaded, cannot execute 'echo Modules:'
Cannot get info on module while no process is loaded
No process loaded, cannot execute 'echo Threads:'
process tid prio (all id:s are in hex)
0000000e services.exe
00000024 0
00000023 0
0000001a 0
00000014 0
00000010 0
0000000f 0
00000012 winedevice.exe
00000020 0
00000019 0
00000018 0
00000013 0
0000001e plugplay.exe
00000026 0
00000025 0
0000001f 0
00000021 explorer.exe
0000002a 0
00000029 0
00000028 0
00000027 0
00000022 0
winedbg: Internal crash at 0x7eda20b1
Brad.Wine1
Newbie
Newbie
Posts: 3
Joined: Wed Jul 26, 2017 10:15 pm

Re: Wine crashes on TStyleManager operations

Post by Brad.Wine1 »

I need to cancel this post sorry.
The crash was related to the directory search and linux permissions.
I Have a separate post for the combobox dropdown not working with style loaded.
Locked