[Bug 50578] Lark 3.40.2 (Electron app) crashes on startup (CEF browser, 'Arial' font face name validation)

WineHQ Bugzilla wine-bugs at winehq.org
Thu Jan 28 04:26:49 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=50578

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Lark-3.40.2.exe             |Lark 3.40.2 (Electron app)
                   |installation failed         |crashes on startup (CEF
                   |                            |browser, 'Arial' font face
                   |                            |name validation)
           Keywords|                            |download
             Status|UNCONFIRMED                 |RESOLVED
                URL|                            |https://web.archive.org/web
                   |                            |/20210128085103/https://sf1
                   |                            |6-va.larksuitecdn.com/obj/l
                   |                            |ark-artifact-storage/3aa1d6
                   |                            |/Lark-3.40.2.exe
                 CC|                            |focht at gmx.net
         Resolution|---                         |DUPLICATE
          Component|-unknown                    |fonts

--- Comment #2 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming.

Stable download link via Internet Archive:

https://web.archive.org/web/20210128085103/https://sf16-va.larksuitecdn.com/obj/lark-artifact-storage/3aa1d6/Lark-3.40.2.exe

The app is based on Electron which is based on Google's open-source Chromium
Framework.

https://github.com/electron/electron/blob/master/docs/development/build-instructions-gn.md

Like 'libCEF' but statically linked.

--- snip ---
$ pwd
/home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/Lark

$ tree --charset=ANSI -L 2
.
|-- 3.40.2
|   |-- api-ms-win-core-console-l1-1-0.dll
|   |-- api-ms-win-core-datetime-l1-1-0.dll
|   |-- api-ms-win-core-debug-l1-1-0.dll
|   |-- api-ms-win-core-errorhandling-l1-1-0.dll
|   |-- api-ms-win-core-file-l1-1-0.dll
|   |-- api-ms-win-core-file-l1-2-0.dll
|   |-- api-ms-win-core-file-l2-1-0.dll
|   |-- api-ms-win-core-handle-l1-1-0.dll
|   |-- api-ms-win-core-heap-l1-1-0.dll
|   |-- api-ms-win-core-interlocked-l1-1-0.dll
|   |-- api-ms-win-core-libraryloader-l1-1-0.dll
|   |-- api-ms-win-core-localization-l1-2-0.dll
|   |-- api-ms-win-core-memory-l1-1-0.dll
|   |-- api-ms-win-core-namedpipe-l1-1-0.dll
|   |-- api-ms-win-core-processenvironment-l1-1-0.dll
|   |-- api-ms-win-core-processthreads-l1-1-0.dll
|   |-- api-ms-win-core-processthreads-l1-1-1.dll
|   |-- api-ms-win-core-profile-l1-1-0.dll
|   |-- api-ms-win-core-rtlsupport-l1-1-0.dll
|   |-- api-ms-win-core-string-l1-1-0.dll
|   |-- api-ms-win-core-synch-l1-1-0.dll
|   |-- api-ms-win-core-synch-l1-2-0.dll
|   |-- api-ms-win-core-sysinfo-l1-1-0.dll
|   |-- api-ms-win-core-timezone-l1-1-0.dll
|   |-- api-ms-win-core-util-l1-1-0.dll
|   |-- API-MS-Win-core-xstate-l2-1-0.dll
|   |-- api-ms-win-crt-conio-l1-1-0.dll
|   |-- api-ms-win-crt-convert-l1-1-0.dll
|   |-- api-ms-win-crt-environment-l1-1-0.dll
|   |-- api-ms-win-crt-filesystem-l1-1-0.dll
|   |-- api-ms-win-crt-heap-l1-1-0.dll
|   |-- api-ms-win-crt-locale-l1-1-0.dll
|   |-- api-ms-win-crt-math-l1-1-0.dll
|   |-- api-ms-win-crt-multibyte-l1-1-0.dll
|   |-- api-ms-win-crt-private-l1-1-0.dll
|   |-- api-ms-win-crt-process-l1-1-0.dll
|   |-- api-ms-win-crt-runtime-l1-1-0.dll
|   |-- api-ms-win-crt-stdio-l1-1-0.dll
|   |-- api-ms-win-crt-string-l1-1-0.dll
|   |-- api-ms-win-crt-time-l1-1-0.dll
|   |-- api-ms-win-crt-utility-l1-1-0.dll
|   |-- chrome_100_percent.pak
|   |-- chrome_200_percent.pak
|   |-- d3dcompiler_47.dll
|   |-- debug.log
|   |-- ffmpeg.dll
|   |-- icudtl.dat
|   |-- Lark App.exe
|   |-- Lark Core.exe
|   |-- lark_crashpad.dll
|   |-- Lark.exe
|   |-- lark-version.dll
|   |-- libEGL.dll
|   |-- libGLESv2.dll
|   |-- LICENSE.electron.txt
|   |-- LICENSES.chromium.html
|   |-- locales
|   |-- msvcp140.dll
|   |-- natives_blob.bin
|   |-- OWNERS
|   |-- resources
|   |-- resources.pak
|   |-- snapshot_blob.bin
|   |-- swiftshader
|   |-- ucrtbase.dll
|   |-- v8_context_snapshot.bin
|   |-- vcruntime140.dll
|   |-- VkICD_mock_icd.dll
|   |-- VkLayer_core_validation.dll
|   |-- VkLayer_object_tracker.dll
|   |-- VkLayer_parameter_validation.dll
|   |-- VkLayer_threading.dll
|   `-- VkLayer_unique_objects.dll
|-- icon.ico
|-- Lark.exe
|-- lark.ini
`-- uninstall.exe
--- snip ---

Trace log:

--- snip ---
$ pwd
/home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/Lark

$ WINEDEBUG=+seh,+loaddll,+process,+relay,+font wine ../Lark.exe >>log.txt 2>&1
...
0768:Call KERNEL32.CreateProcessW(00000000,0031a38c L"\"C:\\users\\focht\\Local
Settings\\Application Data\\Lark\\3.40.2\\Lark.exe\" 
--start_time=1611826936395",00000000,00000000,00000000,00000000,00000000,00175af0
L"C:\\users\\focht\\Local Settings\\Application
Data\\Lark\\3.40.2\\",0031a2cc,0031a310) ret=00402a7a 
...
0768:trace:process:CreateProcessInternalW started process pid 076c tid 0770
...
0768:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=00402a7a
...
0770:Call KERNEL32.CreateProcessW(12537858 L"C:\\users\\focht\\Local
Settings\\Application Data\\Lark\\3.40.2\\Lark.exe",12537368
L"\"C:\\users\\focht\\Local Settings\\Application
Data\\Lark\\3.40.2\\Lark.exe\"
--reporter-url=https://internal-api-sentry.larksuite.com/frontend/api/12/minidump?sentry_key=d799f65d16d84994928fece2666b97fa
--application-name=Lark \"--crashes-directory=C:\\users\\focht\\Temp\\Lark
Crashes\""...,00000000,00000000,00000001,08000608,124fd230,125377d8
L"C:\\users\\focht\\Local Settings\\Application
Data\\Lark\\3.40.2",0031dfa4,0031df94) ret=08ecebe5 
...
0770:trace:process:CreateProcessInternalW started process pid 07cc tid 07d0
...
0770:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=08ecebe5
...
00cc:Call KERNEL32.CreateProcessW(00000000,124353c8 L"\"C:\\users\\focht\\Local
Settings\\Application Data\\Lark\\3.40.2\\Lark.exe\" --type=gpu-process
--disable-features=SpareRendererForSitePerProcess --no-sandbox
--gpu-preferences=KAAAAAAAAACAAwAAAQAAAAAAAAAAAGAAAAAAAAEAAAAIAAAAAAAAACgAAAAEAAAAIAAAAAAAAAAoAAAAAAAAADAAAAAAAAAAOAAAAAAAAAAQAA"...,00000000,00000000,00000001,00080000,00000000,00000000,0c30f650,0c30f640)
ret=08ecebe5 
...
00cc:trace:process:CreateProcessInternalW started process pid 0034 tid 0030
...
00cc:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=08ecebe5
...
00cc:Call KERNEL32.CreateProcessW(00000000,0ac41da8 L"\"C:\\users\\focht\\Local
Settings\\Application Data\\Lark\\3.40.2\\Lark Core.exe\" --type=renderer
--no-sandbox --autoplay-policy=no-user-gesture-required
--lark-register-pepper-vc-plugin-path=\"C:\\users\\focht\\Local
Settings\\Application
Data\\Lark\\3.40.2\\resources\\app.asar.unpacke"...,00000000,00000000,00000001,00080000,00000000,00000000,0c30f650,0c30f640)
ret=08ecebe5 
...
00cc:trace:process:CreateProcessInternalW started process pid 0154 tid 0158
...
00cc:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=08ecebe5
...
0770:Call KERNEL32.CreateProcessW(12bce230 L"C:\\users\\focht\\Application
Data\\Lark-Suite\\tray.exe",12b71f40 L"\"C:\\users\\focht\\Application
Data\\Lark-Suite\\tray.exe\"",00000000,00000000,00000001,08000400,12bcf8e8,12bb6560
L"C:\\users\\focht\\Local Settings\\Application
Data\\Lark\\3.40.2",0031daac,0031da9c) ret=08ecebe5 
...
0770:trace:process:CreateProcessInternalW started process pid 01c4 tid 01c8
...
0770:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=08ecebe5
...
00cc:Call KERNEL32.CreateProcessW(00000000,0ac495f8 L"\"C:\\users\\focht\\Local
Settings\\Application Data\\Lark\\3.40.2\\Lark App.exe\" --type=renderer
--no-sandbox --autoplay-policy=no-user-gesture-required
--lark-register-pepper-vc-plugin-path=\"C:\\users\\focht\\Local
Settings\\Application
Data\\Lark\\3.40.2\\resources\\app.asar.unpacked"...,00000000,00000000,00000001,00080000,00000000,00000000,0c30f650,0c30f640)
ret=08ecebe5 
...
00cc:trace:process:CreateProcessInternalW started process pid 0214 tid 0218
...
00cc:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=08ecebe5
...
0770:Call KERNEL32.CreateProcessW(0ac48420 L"C:\\users\\focht\\Local
Settings\\Application
Data\\Lark\\3.40.2\\resources\\app.asar.unpacked\\node_modules\\@lark\\pc-qt-tools\\win\\lark-pc-qt-tools\\Screenshot.exe",0ac4c8c0
L"\"C:\\users\\focht\\Local Settings\\Application
Data\\Lark\\3.40.2\\resources\\app.asar.unpacked\\node_modules\\@lark\\pc-qt-tools\\win\\lark-pc-qt-tools\\Screenshot.exe\"
\"\\\"-module=screenshot\\\"\" -storage_dir \"C:\\users\\focht\\Application
Data\\Lark-Suite\\sdk_storage\"
-sdk_dll_"...,00000000,00000000,00000001,08000400,13ad52b8,13ab29f8
L"C:\\users\\focht\\Local Settings\\Application
Data\\Lark\\3.40.2",0031dca4,0031dc94) ret=08ecebe5 
...
0770:trace:process:CreateProcessInternalW started process pid 0220 tid 0224
...
0770:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=08ecebe5
...
00cc:Call KERNEL32.CreateProcessW(00000000,13b08010 L"\"C:\\users\\focht\\Local
Settings\\Application Data\\Lark\\3.40.2\\Lark.exe\" --type=gpu-process
--disable-features=SpareRendererForSitePerProcess --disable-gpu-sandbox
--use-gl=disabled --no-sandbox
--gpu-preferences=KAAAAAAAAACAAwAAAQAAAAAAAAAAAGAAAAAAAAEAAAAIAAAAAAAAACgAAAAEAAAAIAAAAA"...,00000000,00000000,00000001,00080000,00000000,00000000,0c30f650,0c30f640)
ret=08ecebe5 
...
00cc:trace:process:CreateProcessInternalW started process pid 02ec tid 02f0
...
00cc:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=08ecebe5
...
0770:Call KERNEL32.CreateProcessW(00000000,13a7c080 L"\"C:\\users\\focht\\Local
Settings\\Application Data\\Lark\\3.40.2\\Lark.exe\" --type=relauncher ---
\"C:\\users\\focht\\Local Settings\\Application Data\\Lark\\3.40.2\\Lark.exe\"
--start_time=1611826936395",00000000,00000000,00000000,00000000,00000000,00000000,0031eca0,0031ec90)
ret=08ecebe5 
...
0770:trace:process:CreateProcessInternalW started process pid 0894 tid 0898
...
0770:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=08ecebe5
...
0898:Call KERNEL32.CreateProcessW(00000000,06a9eaf8 L"\"C:\\users\\focht\\Local
Settings\\Application Data\\Lark\\3.40.2\\Lark.exe\"
--start_time=1611826936395",00000000,00000000,00000000,00000000,00000000,00000000,0031fa10,0031fa00)
ret=01cee0ea 
...
0898:trace:process:CreateProcessInternalW started process pid 08a8 tid 08ac
...
0898:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=01cee0ea
...
0218:trace:process:SetEnvironmentVariableW
(L"BYTED_ELECTRON_APP_CURRENT_STATUS"
L"latency,init_rust_sdk,boot_engine_response_cost") 
...
0218:trace:process:SetEnvironmentVariableW
(L"BYTED_ELECTRON_APP_CURRENT_STATUS" L"latency,init_rust_sdk") 
...
0218:trace:process:SetEnvironmentVariableW
(L"BYTED_ELECTRON_APP_CURRENT_STATUS"
L"latency,init_rust_sdk,boot_platform_main_preload_cost") 
...
0218:trace:process:SetEnvironmentVariableW
(L"BYTED_ELECTRON_APP_CURRENT_STATUS" L"latency,init_rust_sdk") 
...
0218:trace:process:SetEnvironmentVariableW
(L"BYTED_ELECTRON_APP_CURRENT_STATUS"
L"latency,init_rust_sdk,boot_load_scripts") 
...
0218:trace:process:SetEnvironmentVariableW
(L"BYTED_ELECTRON_APP_CURRENT_STATUS" L"latency,init_rust_sdk") 
...
0218:trace:process:SetEnvironmentVariableW
(L"BYTED_ELECTRON_APP_CURRENT_STATUS"
L"latency,init_rust_sdk,rustsdk_pb_lib_require") 
...
0218:trace:process:SetEnvironmentVariableW
(L"BYTED_ELECTRON_APP_CURRENT_STATUS" L"latency,init_rust_sdk")
...
0218:Call KERNEL32.MultiByteToWideChar(0000fde9,00000000,10f54f88
"LarkHackSafariFont",ffffffff,00000000,00000000) ret=0398e12c
0218:Ret  KERNEL32.MultiByteToWideChar() retval=00000013 ret=0398e12c 
...
0218:Call KERNEL32.WideCharToMultiByte(0000fde9,00000000,0031ca44
L"Tahoma",00000006,143f0628,00000006,00000000,00000000) ret=0398e223
0218:Ret  KERNEL32.WideCharToMultiByte() retval=00000006 ret=0398e223
...
0218:Call KERNEL32.WideCharToMultiByte(0000fde9,00000000,1471a188 L"Noto Color
Emoji",00000010,1471a220,00000010,00000000,00000000) ret=0398e223
0218:Ret  KERNEL32.WideCharToMultiByte() retval=00000010 ret=0398e223 
...
0218:Call KERNEL32.MultiByteToWideChar(0000fde9,00000000,376189a8
"iconfont",ffffffff,00000000,00000000) ret=0398e12c
0218:Ret  KERNEL32.MultiByteToWideChar() retval=00000009 ret=0398e19a
...
0218:trace:seh:dispatch_exception code=80000003 flags=0 addr=02461532
ip=02461532 tid=0218
0218:trace:seh:dispatch_exception  info[0]=00000000
0218:trace:seh:dispatch_exception  eax=0031de84 ebx=0031de78 ecx=00000000
edx=00141b10 esi=0031de3c edi=06abe968
0218:trace:seh:dispatch_exception  ebp=0031de98 esp=0031de3c cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00000206
0218:trace:seh:call_vectored_handlers calling handler at 7B00F270 code=80000003
flags=0
0218:trace:seh:call_vectored_handlers handler at 7B00F270 returned 0
0218:trace:seh:call_stack_handlers calling handler at 0447A4B0 code=80000003
flags=0
...
0218:trace:seh:start_debugger Starting debugger L"winedbg --auto 532 1208"
--- snip ---

That's bug 32342 ("Multiple applications and games using 'Webkit' or 'Blink'
web browser engine crash on startup ('Arial' and 'Times New Roman' font face
name validation)").

As I said earlier, the Electron project uses Chromium and its web browser
implementation hence "inherits" all the Wine bugs related to libCEF.

Workaround:

'winetricks -q arial'.

After that it runs into bug 48618

Workaround:

--- snip ---
$ pwd
/home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/Lark

$ wine ./Lark.exe --disable-gpu
--- snip ---

@winetaste: 

--- quote ---
Installation works for me,
--- quote ---

Well, it's not a problem of installation. The app auto-starts after deployment,
OP mistook that still as part of installation.

I don't know why it works without running into the corefont/arial problem. You
must have already 'winetricks' corefonts/arial recipe applied before. Another
possibility: you might have already installed MS TTF fonts with your distro
(don't do that).

Since you've posted the Wine version one can rule out that Wine-Staging was
used which would make it work as well.

$ sha1sum Lark-3.40.2.exe
c46286b117f6a4efe104b388d78e59e3d3246205  Lark-3.40.2.exe

$ du -sh Lark-3.40.2.exe
310M    Lark-3.40.2.exe

$ wine --version
wine-6.0-271-g24b9203d354

Regards

*** This bug has been marked as a duplicate of bug 32342 ***

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list