NW.js on Windows randomly fails to open the main window on startup

32 views
Skip to first unread message

Edwin Steiner

unread,
Sep 6, 2024, 4:44:30 PM9/6/24
to nw.js
Hello! I recently started using NW.js and have the following problem:

Most of the time it works fine but sometimes, randomly, when I run nw.exe,
it fails to open the main window of the application and instead hangs in the
background. I can then find it in the systray. When I use the systray icon to
open the Task Manager, a Chromium window also pops up and it shows
Chromium hanging on the "New tab" page (with the Google search bar, see screenshot).
It is then impossible to bring up an NW.js app until I use right-click > Exit
on the NW.js systray icon.

This is independent from my app code, as it also happens if I just start
nw.exe without arguments (i.e. loading the default NW.js app).

I'm on Windows 10 and I have tried the following NW.js versions so far:
nwjs-sdk-v0.88.0-win-x64
nwjs-sdk-v0.91.0-win-x64

Is there any way I can fix or debug this problem?

I did find .dmp dump files and I attach the WinDbg output for one of them below.

nwjs-window.png

[0x0]   ntdll!NtWaitForSingleObject+0x14   0x80ee7fd328   0x7ff83826920e  
[0x1]   KERNELBASE!WaitForSingleObjectEx+0x8e   0x80ee7fd330   0x7ffff78fe5fa  
[0x2]   nw_elf!DumpHungProcessWithPtype_ExportThunk+0x498ba   0x80ee7fd3d0   0x7ffff78f952f  
[0x3]   nw_elf!DumpHungProcessWithPtype_ExportThunk+0x447ef   0x80ee7fd600   0x7fff539759ef  
[0x4]   nw!IsSandboxedProcess+0x29834f   0x80ee7fdb10   0x7fff555ac3e4  
[0x5]   nw!GetHandleVerifier+0x60a5c4   0x80ee7fdbb0   0x7fff5405c999  
[0x6]   nw!IsSandboxedProcess+0x97f2f9   0x80ee7fdc40   0x7fff54932330  
[0x7]   nw!IsSandboxedProcess+0x1254c90   0x80ee7fdc70   0x7fff5245be33  
[0x8]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x16b32d3   0x80ee7fdca0   0x7fff57ffe5f2  
[0x9]   nw!sqlite3_dbdata_init+0x2958bd2   0x80ee7fdce0   0x7fff57ffe581  
[0xa]   nw!sqlite3_dbdata_init+0x2958b61   0x80ee7fdd40   0x7fff565e3c46  
[0xb]   nw!sqlite3_dbdata_init+0xf3e226   0x80ee7fdd70   0x7fff565e3cc8  
[0xc]   nw!sqlite3_dbdata_init+0xf3e2a8   0x80ee7fddc0   0x7fff53800092  
[0xd]   nw!IsSandboxedProcess+0x1229f2   0x80ee7fde00   0x7fff537fb03d  
[0xe]   nw!IsSandboxedProcess+0x11d99d   0x80ee7fdef0   0x7fff537fa3b2  
[0xf]   nw!IsSandboxedProcess+0x11cd12   0x80ee7fe100   0x7fff54d7d785  
[0x10]   nw!IsSandboxedProcess+0x16a00e5   0x80ee7fe160   0x7fff54dc400a  
[0x11]   nw!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x29ca   0x80ee7fe1f0   0x7fff54dc2d3c  
[0x12]   nw!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x16fc   0x80ee7fe330   0x7fff54dc28ac  
[0x13]   nw!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x126c   0x80ee7fe490   0x7fff5155c973  
[0x14]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x7b3e13   0x80ee7fe4f0   0x7fff51c6105e  
[0x15]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0xeb84fe   0x80ee7fe5f0   0x7fff5155c517  
[0x16]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x7b39b7   0x80ee7fe690   0x7fff5155f5fc  
[0x17]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x7b6a9c   0x80ee7fe730   0x7fff5155a9cd  
[0x18]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x7b1e6d   0x80ee7fe7f0   0x7fff530bd1b9  
[0x19]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x2314659   0x80ee7fe8a0   0x7fff530be554  
[0x1a]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x23159f4   0x80ee7fe9e0   0x7fff530be33f  
[0x1b]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x23157df   0x80ee7feb60   0x7fff530bc77b  
[0x1c]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x2313c1b   0x80ee7fed00   0x7fff530bcb74  
[0x1d]   nw!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x2314014   0x80ee7fef50   0x7fff4ea21379  
[0x1e]   nw!ChromeMain+0x379   0x80ee7fefd0   0x7ff7150d22af  
[0x1f]   nw_exe!GetPakFileHashes+0x12af   0x80ee7ff2c0   0x7ff7150d125b  
[0x20]   nw_exe!GetPakFileHashes+0x25b   0x80ee7ff620   0x7ff71524f092  
[0x21]   nw_exe!GetHandleVerifier+0x103bc2   0x80ee7ffa10   0x7ff838c57374  
[0x22]   KERNEL32!BaseThreadInitThunk+0x14   0x80ee7ffa50   0x7ff83a79cc91  
[0x23]   ntdll!RtlUserThreadStart+0x21   0x80ee7ffa80   0x0   
Reply all
Reply to author
Forward
0 new messages