nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

[Regression] No DOM on Cloudflared website, then NWJS crashes

Open MikeZeDev opened this issue 1 year ago • 2 comments

Issue Type

Before opening an issue, please search and see if it has already been raised.

  • [X] Bug Report

  • [ ] Feature Request

  • [X] Successfully reproduced against the latest version of NW.js?

Current/Missing Behavior

Trying to simply open a website that is using Cloudflare anti bot / turnstyle and :

nwjs-sdk-v0.84.0-win-x64 : website load properly

image

nwjs-sdk-v0.85.0-win-x64 : dont load, dont crash nwjs-sdk-v0.86.0-win-x64 : dont load, dont crash nwjs-sdk-v0.87.0-win-x64 : dont load, dont crash nwjs-sdk-v0.88.0-win-x64 : dont load, dont crash nwjs-sdk-v0.89.0-win-x64 : dont load, dont crash

image

nwjs-sdk-v0.90.0-win-x64: dont load + crash

Expected/Proposed Behavior

Website loads. I dont expect to pass CloudFlare but at least website should load.

Additional Info

  • Operating System: Win10 x64
  • NW.js Version: 0.90 sdk
  • Code snippet:

I just made a tiny app with this as main file

app.js

async function OpenWindow() {
    await nw.Window.open('https://hivetoon.com');
    
    await new Promise((resolve) => { setTimeout(resolve, 5000);});
    
    nw.App.closeAllWindows();
    nw.App.quit();
}
OpenWindow();

package.json


{
	"name": "test",
	"version": "1.0",
	"description": "test",
	"type": "module",
	"main": "app.js"
}
  • Crash report: When debugging the original app where i got the problem, i was able to pinpoint the exact place where it crashes

358831647-51ca25a4-5a90-4b1b-b6de-3cf3f160413b

358832467-fbdcc5d9-3285-4d3c-a8a3-8533f1fec23b

Its crashing on ResumeParser. The "STATUS_Breakpoint" is interesting, as ive seen "debugger" instructions in CloudFlare scripts.

https://github.com/nwjs/nw.js/blob/74e469a0d4576af967076faccb79f1a73f566635/src/resources/api_nw_newwin.js#L833

=> First there is the regression that takes place in 0.85.0 and prevent DOM to be loaded => Since 0.90 its even crashing the whole app.

There is apparently no crash or rendering problem in case you manage to have the CloudFlare Clearance cookie (from other means)

MikeZeDev avatar Aug 17 '24 11:08 MikeZeDev

PFA the stack trace for the above repro.

$: npm run dev

> @nwutils/[email protected] dev
> nw ./tests/fixtures/custom

[0818/103404.428513:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0818/103404.428562:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[7174:7227:0818/103404.443605:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7174:7227:0818/103404.443943:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7174:7227:0818/103404.444192:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7228:7228:0818/103405.274120:FATAL:app_window_custom_bindings.cc(108)] Check failed: false. 
#0 0x7f3c6dd0268e (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x71f968d)
#1 0x7f3c6dc5c89c (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x715389b)
#2 0x7f3c6dc5c77d (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x715377c)
#3 0x7f3c6dc45a70 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x713ca6f)
#4 0x7f3c6dc45ace (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x713cacd)
#5 0x7f3c6dc45503 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x713c502)
#6 0x7f3c6d273b54 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x676ab53)
#7 0x7f3c6926ad3b (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x2761d3a)
#8 0x7f3c6d2cddec (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x67c4deb)
#9 0x7f3c6b5cf55c (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x4ac655b)
#10 0x7f3c6b5cd7a1 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x4ac47a0)
#11 0x7f3c6b5cb41c (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x4ac241b)
#12 0x7f3c6b5cb15f (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x4ac215e)
#13 0x7f3c6a7865aa (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x3c7d5a9)
#14 0x7f3c6a785e1a (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x3c7ce19)
#15 0x7f3c6a6778ab v8::Function::Call()
#16 0x7f3c7113e9a4 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0xa6359a3)
#17 0x7f3c716429a5 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0xab399a4)
#18 0x7f3c71641e43 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0xab38e42)
#19 0x7f3c71641645 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0xab38644)
#20 0x7f3c71682b8d (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0xab79b8c)
#21 0x7f3c6d2d423c (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x67cb23b)
#22 0x7f3c6d2b41f9 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x67ab1f8)
#23 0x7f3c6d2a37b9 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x679a7b8)
#24 0x7f3c6d2a34dc (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x679a4db)
#25 0x7f3c6d29807d (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x678f07c)
#26 0x7f3c6d297b73 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x678eb72)
#27 0x7f3c6d298d47 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x678fd46)
#28 0x7f3c6d298a1c (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x678fa1b)
#29 0x7f3c6d292854 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x6789853)
#30 0x7f3c6d2cc31a (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x67c3319)
#31 0x7f3c6d2c1b65 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x67b8b64)
#32 0x7f3c6d2c1c56 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x67b8c55)
#33 0x7f3c6c5eb683 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x5ae2682)
#34 0x7f3c6e40ac5d (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x7901c5c)
#35 0x7f3c6e40fde0 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x7906ddf)
#36 0x7f3c6e40c06f (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x790306e)
#37 0x7f3c6e903084 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x7dfa083)
#38 0x7f3c6e903545 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x7dfa544)
#39 0x7f3c6dcaa1cf (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x71a11ce)
#40 0x7f3c6dcc3c75 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x71bac74)
#41 0x7f3c6dcc36db (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x71ba6da)
#42 0x7f3c6dcc4105 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x71bb104)
#43 0x7f3c6dc646ed (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x715b6ec)
#44 0x7f3c6dcc44a0 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x71bb49f)
#45 0x7f3c6dc8bc8f (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x7182c8e)
#46 0x7f3c73b0fdfe (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0xd006dfd)
#47 0x7f3c6d15ec93 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x6655c92)
#48 0x7f3c6d15fd7f (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x6656d7e)
#49 0x7f3c6d15d4a1 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x66544a0)
#50 0x7f3c6d15dac7 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x6654ac6)
#51 0x7f3c690d82e6 ChromeMain
#52 0x7f3c668ccd90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
Task trace:
#0 0x7f3c6e900572 (/home/user/Git/nwutils/cli/node_modules/nw/nwjs-sdk-v0.90.0-linux-x64/lib/libnw.so+0x7df7571)
Crash keys:
  "gpu-gl-renderer" = "ANGLE (Microsoft Corporation, D3D12 (Intel(R) Iris(R) Xe Graphics), OpenGL 4.1 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2)"
  "gpu-gl-vendor" = "Google Inc. (Microsoft Corporation)"
  "gpu-generation-intel" = "0"
  "gpu-vsver" = "1.00"
  "gpu-psver" = "1.00"
  "gpu-driver" = "23.2.1"
  "gpu_count" = "1"
  "gpu-devid" = "0x008e"
  "gpu-venid" = "0x1414"
  "view-count" = "1"
  "loaded-origin-0" = "chrome-extension://lgebegfpafccpjcllfkeibjdgdfhghhk"
  "web-frame-count" = "1"
  "extension-1" = "lgebegfpafccpjcllfkeibjdgdfhghhk"
  "num-extensions" = "1"
  "renderer_foreground" = "true"
  "v8_ro_space_firstpage_address" = "0x37d400000000"
  "v8_isolate_address" = "0x5601cd12d000"
  "variations" = "9481ce98-3d47f4f4,70678518-dee66fa8,be338734-dee66fa8,5f9907a9-dee66fa8,8eeccb9a-dee66fa8,2b465683-dee66fa8,52fc7926-ee3d6169,bc9b361d-dee66fa8,a41a7188-dee66fa8,ff71bfdc-dee66fa8,e7cc79d5-dee66fa8,4b935545-3d47f4f4,9a38bae3-3d47f4f4,2d1e43a3-3d47f4f4,386dc267-3d47f4f4,d69d967d-3695c92e,"
  "num-experiments" = "16"
  "reentry_guard_tls_slot" = "unused"
  "switch-19" = "--user-data-dir=/home/user/.config/custom-app"
  "switch-18" = "--variations-seed-version"
  "switch-17" = "--field-trial-handle=3,i,8828260097500174426,6783500408613390512"
  "switch-16" = "--shared-files=v8_context_snapshot_data:100"
  "switch-15" = "--launch-time-ticks=795487155"
  "switch-14" = "--time-ticks-at-unix-epoch=-1723956648960542"
  "switch-13" = "--renderer-client-id=5"
  "switch-12" = "--enable-main-frame-before-activation"
  "switch-11" = "--num-raster-threads=4"
  "switch-10" = "--lang=en-US"
  "switch-9" = "--no-zygote"
  "switch-8" = "--no-sandbox"
  "switch-7" = "--change-stack-guard-on-fork=enable"
  "switch-6" = "--extension-process"
  "switch-5" = "--nwjs"
  "switch-4" = "--nwapp-path=./tests/fixtures/custom"
  "switch-3" = "--user-data-dir=/home/user/.config/custom-app"
  "switch-2" = "--enable-crash-reporter=,"
  "switch-1" = "--crashpad-handler-pid=0"
  "num-switches" = "20"
  "osarch" = "x86_64"
  "pid" = "7228"
  "ptype" = "renderer"

[0818/103405.286207:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0818/103405.286248:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)

ayushmanchhabra avatar Aug 18 '24 05:08 ayushmanchhabra

Would the fix be to revert this (NW.js specific) patch here (if anyone is willing to check, that'd be great)?

- content::RenderFrame* app_frame = nullptr;
+ content::RenderFrame* app_frame =
- app_frame =
    ExtensionFrameHelper::FindFrameFromFrameTokenString(context()->isolate(),
                                                        args[0]);

ayushmanchhabra avatar Aug 19 '24 10:08 ayushmanchhabra

I'd really like to test the proposed patch but i am a bit lost on how to compile nwjs myself.

MikeZeDev avatar Nov 14 '24 15:11 MikeZeDev

Still reproducible with 0.95.0-sdk

StackTrace
2025-02-11 21:50:54.072 nwjs[40695:1768624] +[IMKClient subclass]: chose IMKClient_Modern
[40707:259:0211/215115.333961:FATAL:app_window_custom_bindings.cc(107)] NOTREACHED hit. 
0   nwjs Framework                      0x00000001135d77ac __cxa_bad_cast + 5757112
1   nwjs Framework                      0x00000001135cb8bc __cxa_bad_cast + 5708232
2   nwjs Framework                      0x0000000113538968 __cxa_bad_cast + 5106292
3   nwjs Framework                      0x000000011353885c __cxa_bad_cast + 5106024
4   nwjs Framework                      0x0000000113523534 __cxa_bad_cast + 5019200
5   nwjs Framework                      0x000000011352309c __cxa_bad_cast + 5018024
6   nwjs Framework                      0x00000001135230ac __cxa_bad_cast + 5018040
7   nwjs Framework                      0x0000000112c22944 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3479444
8   nwjs Framework                      0x000000010ec1e69c v8::ScriptCompiler::ConsumeCodeCacheTask::ConsumeCodeCacheTask(std::__1::unique_ptr<v8::internal::BackgroundDeserializeTask, std::__1::default_delete<v8::internal::BackgroundDeserializeTask>>) + 18896
9   nwjs Framework                      0x0000000112c0214c fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3346332
10  ???                                 0x000000015fe0f2f8 0x0 + 5903545080
11  ???                                 0x000000015fe0d0cc 0x0 + 5903536332
12  ???                                 0x000000015fe0ae88 0x0 + 5903527560
13  ???                                 0x000000015fe0aad4 0x0 + 5903526612
14  nwjs Framework                      0x000000010ff4208c v8::Unwinder::PCIsInV8(unsigned long, v8::MemoryRange const*, void*) + 2232
15  nwjs Framework                      0x000000010ff41948 v8::Unwinder::PCIsInV8(unsigned long, v8::MemoryRange const*, void*) + 372
16  nwjs Framework                      0x000000010fe232c8 v8::Function::Call(v8::Isolate*, v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 520
17  nwjs Framework                      0x0000000116480be4 fontations_ffi$cxxbridge1$BridgeNormalizedCoords$operator$sizeof + 18580600
18  nwjs Framework                      0x000000011691eee8 fontations_ffi$cxxbridge1$BridgeNormalizedCoords$operator$sizeof + 23422844
19  nwjs Framework                      0x000000011691e2b0 fontations_ffi$cxxbridge1$BridgeNormalizedCoords$operator$sizeof + 23419716
20  nwjs Framework                      0x000000011691dad4 fontations_ffi$cxxbridge1$BridgeNormalizedCoords$operator$sizeof + 23417704
21  nwjs Framework                      0x0000000116972018 fontations_ffi$cxxbridge1$BridgeNormalizedCoords$operator$sizeof + 23763116
22  nwjs Framework                      0x0000000112c0920c fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3375196
23  nwjs Framework                      0x0000000112bef288 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3268824
24  nwjs Framework                      0x0000000112bdf0d4 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3202852
25  nwjs Framework                      0x0000000112bdedf4 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3202116
26  nwjs Framework                      0x0000000112bd3e88 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3157208
27  nwjs Framework                      0x0000000112bd3828 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3155576
28  nwjs Framework                      0x0000000112bd4b80 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3160528
29  nwjs Framework                      0x0000000112bd483c fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3159692
30  nwjs Framework                      0x0000000112bce288 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3133656
31  nwjs Framework                      0x0000000112c00694 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3339492
32  nwjs Framework                      0x0000000112bf6b4c fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3299740
33  nwjs Framework                      0x0000000112bf6c1c fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 3299948
34  nwjs Framework                      0x0000000111bbd0dc v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord(v8::internal::compiler::MapRef, v8::internal::compiler::MapRef, v8::internal::InternalIndex, v8::internal::compiler::ObjectRef) const + 20182040
35  nwjs Framework                      0x0000000113509810 __cxa_bad_cast + 4913436
36  nwjs Framework                      0x000000011350e428 __cxa_bad_cast + 4932916
37  nwjs Framework                      0x000000011350ab98 __cxa_bad_cast + 4918436
38  nwjs Framework                      0x0000000113be2e48 __cxa_bad_cast + 12095316
39  nwjs Framework                      0x0000000113be33e4 __cxa_bad_cast + 12096752
40  nwjs Framework                      0x0000000113582ffc __cxa_bad_cast + 5411080
41  nwjs Framework                      0x000000011359b93c __cxa_bad_cast + 5511752
42  nwjs Framework                      0x000000011359b4e8 __cxa_bad_cast + 5510644
43  nwjs Framework                      0x000000011353fc54 __cxa_bad_cast + 5135712
44  nwjs Framework                      0x000000011359bfa0 __cxa_bad_cast + 5513388
45  nwjs Framework                      0x0000000113566964 __cxa_bad_cast + 5294704
46  nwjs Framework                      0x0000000118d05984 fontations_ffi$cxxbridge1$BridgeNormalizedCoords$operator$sizeof + 61067800
47  nwjs Framework                      0x000000011295950c fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 557916
48  nwjs Framework                      0x000000011295a044 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 560788
49  nwjs Framework                      0x00000001129589f4 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 555076
50  nwjs Framework                      0x0000000112958c00 fontations_ffi$cxxbridge1$BridgeBitmapGlyph$operator$sizeof + 555600
51  nwjs Framework                      0x000000010ea819b4 ChromeMain + 684
52  nwjs Helper (Renderer)              0x000000010234cb50 main + 368
53  dyld                                0x000000018a690274 start + 2840
Task trace:
0   nwjs Framework                      0x0000000113be0090 __cxa_bad_cast + 12083612
Crash keys:
  "discardable-memory-free" = "4194304"
  "discardable-memory-allocated" = "4194304"
  "has-wasm" = "1"
  "loaded-origin-1" = "http://localhost:3000"
  "gpu-glver" = "OpenGL ES 2.0.0 (ANGLE 2.1.24256 git hash: ce13a00a2b04)"
  "gpu-generation-intel" = "0"
  "gpu-vsver" = "1.00"
  "gpu-psver" = "1.00"
  "gpu-driver" = "15.3"
  "gpu_count" = "1"
  "gpu-devid" = "0x0000"
  "gpu-venid" = "0x106b"
  "view-count" = "2"
  "loaded-origin-0" = "chrome-extension://fabcdhfijkcmhipoagcgignlillcldpb"
  "web-frame-count" = "2"
  "extension-1" = "fabcdhfijkcmhipoagcgignlillcldpb"
  "num-extensions" = "1"
  "renderer_foreground" = "true"
  "v8_ro_space_firstpage_address" = "0x11c00000000"
  "v8_isolate_address" = "0x128008000"
  "variations" = "b357b792-3f4a17df,f4f00e05-ca7d8d80,9481ce98-3d47f4f4,2a426c03-3d47f4f4,70678518-dee66fa8,be338734-4866ef6e,5f9907a9-206f6a6e,8eeccb9a-c35b209e,2b465683-206f6a6e,52fc7926-ee3d6169,bc9b361d-dee66fa8,a41a7188-b184655b,ff71bfdc-dee66fa8,e7cc79d5-dee66fa8,4b935545-3d47f4f4,9a38bae3-3d47f4f4,2d1e43a3-3d47f4f4,386dc267-3d47f4f4,d69d967d-3695c92e,"
  "num-experiments" = "19"
  "reentry_guard_tls_slot" = "263"
  "switch-21" = "--user-data-dir=/Users/{REDACTED}/Library/Application Support/hakunek"
  "switch-20" = "--disable-background-timer-throttling"
  "switch-19" = "--variations-seed-version"
  "switch-18" = "--field-trial-handle=1718379636,r,2789198981967795218,4111023469"
  "switch-17" = "--shared-files"
  "switch-16" = "--launch-time-ticks=137113112369"
  "switch-15" = "--time-ticks-at-unix-epoch=-1739169931494874"
  "switch-14" = "--renderer-client-id=6"
  "switch-13" = "--enable-main-frame-before-activation"
  "switch-12" = "--enable-gpu-memory-buffer-compositor-resources"
  "switch-11" = "--enable-zero-copy"
  "switch-10" = "--num-raster-threads=4"
  "switch-9" = "--lang=en-US"
  "switch-8" = "--no-zygote"
  "switch-7" = "--file-url-path-alias=/gen=/Users/{REDACTED}/Documents/Repositories/G"
  "switch-6" = "--disable-background-timer-throttling"
  "switch-5" = "--no-sandbox"
  "switch-4" = "--extension-process"
  "switch-3" = "--nwjs"
  "switch-2" = "--nwapp-path=./build"
  "switch-1" = "--user-data-dir=/Users/{REDACTED}/Library/Application Support/hakunek"
  "num-switches" = "23"
  "osarch" = "arm64"
  "pid" = "40707"
  "ptype" = "renderer"

Received signal 6
 [0x0001135d77ac]
 [0x0001135cb8bc]
 [0x0001135d7700]
 [0x00018aa46de4]
 [0x00018aa0ff70]
 [0x00018a91c908]
 [0x000113539448]
 [0x000113539028]
 [0x00011353885c]
 [0x000113523534]
 [0x00011352309c]
 [0x0001135230ac]
 [0x000112c22944]
 [0x00010ec1e69c]
 [0x000112c0214c]
 [0x00015fe0f2f8]
 [0x00015fe0d0cc]
 [0x00015fe0ae88]
 [0x00015fe0aad4]
 [0x00010ff4208c]
 [0x00010ff41948]
 [0x00010fe232c8]
 [0x000116480be4]
 [0x00011691eee8]
 [0x00011691e2b0]
 [0x00011691dad4]
 [0x000116972018]
 [0x000112c0920c]
 [0x000112bef288]
 [0x000112bdf0d4]
 [0x000112bdedf4]
 [0x000112bd3e88]
 [0x000112bd3828]
 [0x000112bd4b80]
 [0x000112bd483c]
 [0x000112bce288]
 [0x000112c00694]
 [0x000112bf6b4c]
 [0x000112bf6c1c]
 [0x000111bbd0dc]
 [0x000113509810]
 [0x00011350e428]
 [0x00011350ab98]
 [0x000113be2e48]
 [0x000113be33e4]
 [0x000113582ffc]
 [0x00011359b93c]
 [0x00011359b4e8]
 [0x00011353fc54]
 [0x00011359bfa0]
 [0x000113566964]
 [0x000118d05984]
 [0x00011295950c]
 [0x00011295a044]
 [0x0001129589f4]
 [0x000112958c00]
 [0x00010ea819b4]
 [0x00010234cb50]
 [0x00018a690274]
[end of stack trace]

27136773 avatar Feb 11 '25 20:02 27136773

Still reproducible with 0.95.0-sdk

StackTrace

https://gist.github.com/ayushmanchhabra/5e5932dccf595ddfdc34642244230f15 Hopefully this helps, you may run into bunch of headers not found/linking errors since the NW.js build environment is configured slightly differently.

ayushmanchhabra avatar Feb 12 '25 07:02 ayushmanchhabra

It works for me with the latest 0.99.0

rogerwang avatar May 04 '25 21:05 rogerwang

Still reproducible (on MacOS) with NW 0.99.0 and minimal provided sample

  1. git clone https://github.com/ronny1982/nw-8205.git
  2. cd nw-8205
  3. npm install
  4. npm start

27136773 avatar May 07 '25 22:05 27136773

@MikeZeDev please try latest v0.99.1

ayushmanchhabra avatar May 10 '25 04:05 ayushmanchhabra

@MikeZeDev please try latest v0.99.1

Still reproducible (on MacOS) with NW 0.99.1 and minimal provided sample

  1. git clone https://github.com/ronny1982/nw-8205.git
  2. cd nw-8205
  3. npm install
  4. npm start

27136773 avatar May 10 '25 07:05 27136773

I work with Ronny. Pretty sure if he has the problem i will got it too. Will test anyway

Still crashing unfortunately, using ronny's sample. Windows 10 x64 binaries.

MikeZeDev avatar May 10 '25 08:05 MikeZeDev

It works for me with the latest 0.99.0

Still reproducible (on MacOS) with NW 0.100.0 and minimal provided sample

  1. git clone https://github.com/ronny1982/nw-8205.git
  2. cd nw-8205
  3. npm install
  4. npm list (to check NW.js version)
  5. npm start

27136773 avatar May 24 '25 09:05 27136773

please test this build: https://dl.nwjs.io/live-build/v0.100.1-05251234-767b4f617 https://dl.nwjs.io/live-build/v0.100.1-05251018-87d180c35/

rogerwang avatar May 26 '25 15:05 rogerwang