CCDirectLink / CCLoader

Modloader for crosscode
38 stars 8 forks source link

Crashes on Linux version #105

Closed L-Sherry closed 7 months ago

L-Sherry commented 7 months ago

The base game (GOG version, 1.4.2-3) runs, but CCLoader2 crashes nwjs on startup. It still runs fine in the browser. ccloader3 works.

[13013:13013:0309/123455.852173:FATAL:navigation_request.cc(3655)] Check failed: false. 
#0 0x7fb5bc360953 ([...]/CrossCode/game/lib/libnw.so+0x5960952)
#1 0x7fb5bc373970 ([...]/CrossCode/game/lib/libnw.so+0x597396f)
#2 0x7fb5bc37457e ([...]/CrossCode/game/lib/libnw.so+0x597457d)
#3 0x7fb5ba21f737 ([...]/CrossCode/game/lib/libnw.so+0x381f736)
#4 0x7fb5ba226062 ([...]/CrossCode/game/lib/libnw.so+0x3826061)
[...]
Task trace:
#0 0x7fb5ba0e6906 ([...]/CrossCode/game/lib/libnw.so+0x36e6905)
#1 0x7fb5bc779746 ([...]/CrossCode/game/lib/libnw.so+0x5d79745)
#2 0x7fb5bc779746 ([...]/CrossCode/game/lib/libnw.so+0x5d79745)
#3 0x7fb5ba41bd78 ([...]/CrossCode/game/lib/libnw.so+0x3a1bd77)
#4 0x7fb5bc779746 ([...]/CrossCode/game/lib/libnw.so+0x5d79745)
Task trace buffer limit hit, update PendingTask::kTaskBacktraceLength to increase.
IPC message handler context: 0x95373B38
Crash keys:
  "gpu-gl-context-is-virtual" = "1"
  "gpu-url-chunk" = "chrome://gpu/RenderThreadImpl::CreateOffscreenContext/RenderWorker"
  "gr-context-type" = "0"
[...]
  "navigation_request_is_same_document" = "cross-doc"
  "navigation_request_url" = "devtools://devtools/bundled/devtools_app.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@62f83a7521ae1f32e563795732dff0c9da1b660d/"
  "navigation_request_initiator" = "nullptr"
  "extension-1" = "lmepkikdgdbfdpjokdmnnanopegnpjda"
  "ui_scheduler_async_stack" = "0x7FB5BA0E6906 0x7FB5BC779746"
  "num-extensions" = "1"
[...]
  "switch-10" = "--no-zygote"
  "switch-9" = "--no-sandbox"
  "io_scheduler_async_stack" = "0x7FB5BC779746 0x0"
  "variations" = "8d569531-4f54ac4d,5f2c0f7c-3f4a17df,69d4ebd5-3f4a17df,65570806-377be55a,ade3efeb-e1cc0f14,3fd33f16-fa281276,1166396-1166396,5f36436a-3f4a17df,255dfea8-cf12f279,4701a278-3f4a17df,313957be-3ef44cd2,ef4764d7-c9f4d4ef,a257327f-3f4a17df,34a9ddc3-54a64e37,f7a3ec9-bd336006,d3566fbd-c6f74b94,3fa8d059-3fa8d059,eddd0d82-3f4a17df,8d7344de-3f4a17df,683e86a8-3f4a17df,863ba1ea-3f4a17df,4749874c-a300a3e6,722b8030-3f4a17df,8bccc03b-3f4a17df,6cbcf5b7-3f4a17df,e79de56c-dee0823,931c5f72-3f4a17df,4ea303a6-3f4a17df,3042ad4b-ad2fa222,3487aa71-84708353,4e3ec83a-e4938e2c,32d6b1fe-3f4a17df,9e5c75f1-30e1b12b,38262571-3f4a17df,194bd80e-3f4a17df,e3969921-5cbb6de6,3673692f-3513218,1bb6a450-3f4a17df,e9e64bcb-3f4a17df,1d606bb5-8d14c5d8,bef5c006-3f4a17df,fc7e4d22-3f4a17df,91cc5d73-9d9d493e,3b96a1d-3f4a17df,248e3a0-3f4a17df,6becb1e-a6ea97a2,595f5eb0-f23d1dea,dba92675-f23d1dea,5306c29b-9cbf73ff,97148300-3f4a17df,3482a891-410c5d63,39ec51c3-572726d7,8470b833-3f4a17df,1fce7d57-3f4a17df,49a20295-49a20295,b53f3ef9-3f4a17df,8c8d8faf-3f4a17df,b7bee85d-3f4a17df,b2a04140-3f4a17df,a412344f-3f4a17df,29c62d4-3f4a17df,7760b5b2-3f4a17df,ad4acdda-3f4a17df,234de0a0-ace4e138,733cb831-49b2945c,a112f012-3f4a17df,6e08fc3e-3f4a17df,3e7d7783-f38a9353,9481ce98-3d47f4f4,4b935545-3d47f4f4,9a38bae3-3d47f4f4,c1405ec8-fb0c8ff1,122c746b-3d47f4f4,6f3a6be-3d47f4f4,d69d967d-3695c92e,"
  "num-experiments" = "75"
  "switch-8" = "--user-data-dir=/home/nonet/.config/CrossCode"
  "switch-7" = "--auto-open-devtools-for-tabs"
  "switch-6" = "--password-store=basic"
  "switch-5" = "--in-process-gpu"
  "switch-4" = "--disable-background-networking"
  "switch-3" = "--disable-direct-composition"
  "switch-2" = "--ignore-gpu-blacklist"
  "switch-1" = "--enable-crashpad"
  "num-switches" = "12"
  "osarch" = "x86_64"
  "pid" = "13013"
  "ptype" = "browser"

Received signal 6
[...]
#27 0x7fb5b68456ca (/usr/lib/x86_64-linux-gnu/libc.so.6+0x276c9)
  r8: 0000000000000000  r9: 0000000000000000 r10: 0000000000000008 r11: 0000000000000246
 r12: 000055d30f1cc720 r13: 0000000000000006 r14: 000055d30f1cc730 r15: 00007ffe8c36ab20
  di: 00000000000032d5  si: 00000000000032d5  bp: 00007fb5b4457e00  bx: 00000000000032d5
  dx: 0000000000000006  ax: 0000000000000000  cx: 00007fb5b68a816c  sp: 00007ffe8c36a1d0
  ip: 00007fb5b68a816c efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
./start.sh : line 16 : 13013 Aborted                 ./"CrossCode"

Removing --auto-open-devtools-for-tabs in package.json fixes the problem. This flag was added in be3d10034d3b386e7a4e763dae0786db54bcbc9a but the commit message does not provide any reason, so I don't know why it was needed and if it is still needed.

Note that there are other differences between ccloader2's package.json and the game's original package.json: