puavo-org / puavo-os

Puavo OS is an disk image based operating system that is built from Debian GNU/Linux and is specifically designed for learning.
https://puavo.org
GNU General Public License v2.0
11 stars 7 forks source link

Worksheet Crafter starts up slow #691

Open Mazhoon opened 1 month ago

Mazhoon commented 1 month ago

Using the 14 day test version, the behaviour corresponds to that described on WineHQ AppDB: Works pretty well, except that startup takes a minute or so (tested on Windows 10, no observable delay). No observable differences between Wine 8.6 and 9.8. Profiling output does not seem to be that informative:

  12,87%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000773287e1                                                                                                                                                                 ◆
   2,34%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758ffdcc                                                                                                                                                                 ▒
   2,09%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000773287db                                                                                                                                                                 ▒
   2,09%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000773287fc                                                                                                                                                                 ▒
   2,03%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758ffdc4                                                                                                                                                                 ▒
   1,99%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000773287e7                                                                                                                                                                 ▒
   1,99%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758ffdc0                                                                                                                                                                 ▒
   1,96%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f5554                                                                                                                                                                 ▒
   1,84%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758ffe14                                                                                                                                                                 ▒
   1,84%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000773287d8                                                                                                                                                                 ▒
   1,80%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758ffe19                                                                                                                                                                 ▒
   1,78%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x000000007732880a                                                                                                                                                                 ▒
   1,68%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf1c                                                                                                                                                                 ▒
   1,62%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000773287e9                                                                                                                                                                 ▒
   1,13%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf83                                                                                                                                                                 ▒
   1,12%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758821d3                                                                                                                                                                 ▒
   1,12%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x0000000075a5c600                                                                                                                                                                 ▒
   1,06%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7fae                                                                                                                                                                 ▒
   0,90%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7fbc                                                                                                                                                                 ▒
   0,88%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7fac                                                                                                                                                                 ▒
   0,88%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7fa4                                                                                                                                                                 ▒
   0,80%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f554c                                                                                                                                                                 ▒
   0,79%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7f90                                                                                                                                                                 ▒
   0,79%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f5510                                                                                                                                                                 ▒
   0,78%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f551c                                                                                                                                                                 ▒
   0,78%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7f9c                                                                                                                                                                 ▒
   0,75%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f5528                                                                                                                                                                 ▒
   0,75%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf4f                                                                                                                                                                 ▒
   0,74%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f5582                                                                                                                                                                 ▒
   0,72%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf45                                                                                                                                                                 ▒
   0,69%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf55                                                                                                                                                                 ▒
   0,69%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf20                                                                                                                                                                 ▒
   0,66%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7fb9                                                                                                                                                                 ▒
   0,57%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf19                                                                                                                                                                 ▒
   0,57%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f5558                                                                                                                                                                 ▒
   0,54%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7f94                                                                                                                                                                 ▒
   0,53%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f5584                                                                                                                                                                 ▒
   0,51%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf66                                                                                                                                                                 ▒
   0,50%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf44                                                                                                                                                                 ▒
   0,47%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7fb6                                                                                                                                                                 ▒
   0,47%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf14                                                                                                                                                                 ▒
   0,47%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdee9                                                                                                                                                                 ▒
   0,44%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000773287f6                                                                                                                                                                 ▒
   0,43%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758821c8                                                                                                                                                                 ▒
   0,41%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7fa1                                                                                                                                                                 ▒
   0,38%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf5c                                                                                                                                                                 ▒
   0,36%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f3f5b                                                                                                                                                                 ▒
   0,33%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758fdf41                                                                                                                                                                 ▒
   0,32%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7f9e                                                                                                                                                                 ▒
   0,31%  WorksheetCrafte  ucrtbase.dll                      [.] 0x00000000000600e8                                                                                                                                                                 ▒
   0,30%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f7fc3                                                                                                                                                                 ▒
   0,30%  WorksheetCrafte  [JIT] tid 335226                  [.] 0x00000000758f5587            
Mazhoon commented 1 month ago

Running with WINEDEBUG=warn+all this seems to be related to delays (repeats n times during loading)

0024:warn:msvcrt:_wsopen_dispatch :failed-last error (2)
0024:warn:seh:OutputDebugStringW L"[Warning]: C:\\j\\branches-WsCrafter.2024.1\\Products\\ABProfiMathe\\src\\Framework\\ABProfi.cpp(301): [myMessageOutput] [Qt] Warning: QFontEngineFT: Failed to create FreeType font engine\r\n"
0024:warn:seh:dispatch_exception L"[Warning]: C:\\j\\branches-WsCrafter.2024.1\\Products\\ABProfiMathe\\src\\Framework\\ABProfi.cpp(301): [myMessageOutput] [Qt] Warning: QFontEngineFT: Failed to create FreeType font engine\r\n"
0024:warn:seh:OutputDebugStringA "[Warning]: C:\\j\\branches-WsCrafter.2024.1\\Products\\ABProfiMathe\\src\\Framework\\ABProfi.cpp(301): [myMessageOutput] [Qt] Warning: QFontEngineFT: Failed to create FreeType font engine\r\n"
0024:warn:seh:dispatch_exception "[Warning]: C:\\j\\branches-WsCrafter.2024.1\\Products\\ABProfiMathe\\src\\Framework\\ABProfi.cpp(301): [myMessageOutput] [Qt] Warning: QFontEngineFT: Failed to create FreeType font engine\r\n"
0024:warn:file:NtCreateFile L"\\??\\C:\\windows\\Fonts\\cour.ttf" not found (c0000034)
0024:warn:file:CreateFileW Unable to create file L"C:\\windows\\Fonts\\cour.ttf" (status c0000034)
0024:warn:msvcrt:_wsopen_dispatch :failed-last error (2)
0024:warn:file:NtCreateFile L"\\??\\C:\\windows\\Fonts\\cour.ttf" not found (c0000034)
0024:warn:file:CreateFileW Unable to create file L"C:\\windows\\Fonts\\cour.ttf" (status c0000034)
0024:warn:msvcrt:_wsopen_dispatch :failed-last error (2)
0024:warn:seh:OutputDebugStringW L"[Warning]: C:\\j\\branches-WsCrafter.2024.1\\Products\\ABProfiMathe\\src\\Framework\\ABProfi.cpp(301): [myMessageOutput] [Qt] Warning: QFontEngineFT: Failed to create FreeType font engine\r\n"
0024:warn:seh:dispatch_exception L"[Warning]: C:\\j\\branches-WsCrafter.2024.1\\Products\\ABProfiMathe\\src\\Framework\\ABProfi.cpp(301): [myMessageOutput] [Qt] Warning: QFontEngineFT: Failed to create FreeType font engine\r\n"
0024:warn:seh:OutputDebugStringA "[Warning]: C:\\j\\branches-WsCrafter.2024.1\\Products\\ABProfiMathe\\src\\Framework\\ABProfi.cpp(301): [myMessageOutput] [Qt] Warning: QFontEngineFT: Failed to create FreeType font engine\r\n"
0024:warn:seh:dispatch_exception "[Warning]: C:\\j\\branches-WsCrafter.2024.1\\Products\\ABProfiMathe\\src\\Framework\\ABProfi.cpp(301): [myMessageOutput] [Qt] Warning: QFontEngineFT: Failed to create FreeType font engine\r\n"
0024:warn:file:NtCreateFile L"\\??\\C:\\windows\\Fonts\\arial.ttf" not found (c0000034)
0024:warn:file:CreateFileW Unable to create file L"C:\\windows\\Fonts\\arial.ttf" (status c0000034)
0024:warn:msvcrt:_wsopen_dispatch :failed-last error (2)
0024:warn:file:NtCreateFile L"\\??\\C:\\windows\\Fonts\\arial.ttf" not found (c0000034)
0024:warn:file:CreateFileW Unable to create file L"C:\\windows\\Fonts\\arial.ttf" (status c0000034)

copying arial.ttf and cour.ttf to wineprefix suppresses those warnings, but startup time does not change and "Failed to create FreeType font engine" warnings remain. Trying to force fontengine to directwrite with qt.conf doesn't seem to work, but the whole font thing might be a red herring, as any phase of the startup takes longer than the whole program startup on Windows 10.