Skip to content

Startup bottlenecks (WebView2 profile leak) and Slicer OOM crashes #659

Open

Description

@tiadiff

Is there an existing issue for this problem?

  • I have searched the existing issues

CrealityPrint Version

7.3.1

Operating System (OS)

Windows

OS Version

Windows 11

Additional system information

Intel Core i7 11700K
MSI Z490, GTX 4070
32 GB DDR4

Printer

Creality Print (SparkX i7)

How to reproduce

  1. Install Creality Print 7.3.1 (build 6378) on Windows 11 / 10.
  2. Launch Creality Print multiple times over several days and monitor startup time and folder %LOCALAPPDATA%\Temp\slicer_webview_userdata\.
  3. In the plater, load complex STL/3MF models and initiate slicing while background auto-calculate is active, or adjust print parameters during toolpath generation.
  4. Observe application responsiveness, memory usage in Task Manager, and check crash logs in %APPDATA%\Creality\Creality Print\7.3\log\.

Actual results

  1. Startup Bottlenecks & Cache Accumulation:

    • Booting takes 15–25 seconds because the embedded Chromium WebView2 Home Page (/homepage/index.html on local port 13667) spawns 15+ msedgewebview2.exe processes before the 3D plater is shown.
    • Every launch creates a new orphaned WebView2 directory in %LOCALAPPDATA%\Temp\slicer_webview_userdata\ without cleaning previous instances (active profile is occupied; using fallback profile: profile_...). Over 80 orphaned folders accumulated >4.5 GB of dead temporary files.
  2. Intermittent Slicer Freezes & OOM Crashes:

    • Slicing occasionally hangs at 100% CPU or crashes with access violation 0xc0000005 in CrealityPrint_Slicer.DLL.
    • In log files, memory allocation spikes unexpectedly with runaway requests (e.g., RequestedNewSize=74476407783, ~74.5 GB heap request), exceeding physical RAM and terminating the process.
    • Slicing race condition occurs when auto_calculate runs in the background concurrently with OpenGL 3D preview reload.

Expected results

  1. Fast, responsive startup with an option to boot directly into the plater ("Prepare" tab) instead of forcing the Home Page WebView.
  2. Graceful reuse or automatic cleanup of stale slicer_webview_userdata temporary profiles on shutdown.
  3. Stable slicing without kinematics solver divergence (itersolve), debounced background auto-calculate to prevent thread race conditions, and sanitized boundary limits in machine profiles (bed_mesh_max).

Project file & Debug log uploads

Key log excerpts from %APPDATA%\Creality\Creality Print\7.3\log\:

  1. Out-Of-Memory Runaway allocation in slicer:
[warning] Slic3r::PrintObject::make_perimeters memory total_bytes 34166484992 memory available_bytes 3636027392
[error] crealityprint_main::operator () RequestedNewSize=74476407783
[error] crealityprint_main::operator () process memory info WorkingSet: 16,942MB
[error] Backtrace module=C:\Program Files\Creality\Creality Print 7.3\CrealityPrint_Slicer.DLL
  1. WebView profile lock & proliferation in Temp:
[warning] initialize_webview_userdata_dir: active profile is occupied; using fallback profile: profile_...

Checklist of files to include

  • Log file
  • Project file

Anything else?

Root Cause Analysis & Temporary Workaround Tool

We diagnosed the issues and created a tested open-source optimization utility for users experiencing these bottlenecks on v7.3.1:
👉 Repository: https://github.com/tiadiff/Creality-SparkX-Optimizer

Key fixes implemented in the optimizer:

We hope this analysis assists the development team in integrating native fixes in the next official build!

Activity

  1. added
    bug
    on Nov 10, 2026
  2. danielmontagna86-source commented on Nov 14, 2026

    @danielmontagna86-source

    Independent confirmation of this defect with minidump analysis, plus two findings that narrow it to the teardown/close path (not only the slicing/auto_calculate race). Second machine, clean data, four dumps.

    Environment

    • Creality Print 7.3.1.6378 (3 crashes) and 7.3.2.6412 (1 crash, different signature)
    • Windows 11 build 26300 · Ryzen 9 5900X · 64 GB RAM · RTX 3090, driver 621.14 (OpenGL 4.6.0)
    • Logs/dumps: %APPDATA%\Creality\Creality Print\7.3\log\

    Crash inventory (30 days, one user)

    5 × Application Hang (event 1002) + 4 minidumps, all in CrealityPrint_Slicer.DLL, all ACCESS_VIOLATION on a write (ExceptionInformation[0]=1):

    # Dump (UTC-3) Build Thread Faulting Offset Write target
    1 2026-11-10 22:36 7.3.1.6378 29128 CrealityPrint_Slicer.DLL +0xCA837A 0x0
    2 2026-11-11 22:41 7.3.1.6378 8300 CrealityPrint_Slicer.DLL +0xCA837A 0x0
    3 2026-11-11 23:41 7.3.1.6378 42904 CrealityPrint_Slicer.DLL +0xCA837A 0x0
    4 2026-11-14 14:27 7.3.2.6412 26936 CrealityPrint_Slicer.DLL +0x12191AB 0x28CA79C4FE8

    Writing to 0x0 from inside the C++ exception path (MSVCP140.dll / ucrtbase.dll frames present in all dumps) is consistent with a failed std::bad_alloc followed by an unprotected dereference. Dump 4 is different: a wild pointer write (≈2.8 TB address) right after shutdown.

    The allocation request is deterministic per build

    Raw lines from the app's own new-handler (verbatim, trimmed):

    2026-11-10 22:36:08 RequestedNewSize=111714611655
      process memory info WorkingSet: 28,225MB; PrivateBytes: 85,068MB; Pagefile(peak): 85,068MB(197,001MB)
      GlobalMemoryStatusEx: MemoryLoad=84 TotalPhys=68637343744 AvailPhys=10343227392
    
    2026-11-11 22:41:41 RequestedNewSize=74476407783
      process memory info WorkingSet: 16,690MB; PrivateBytes: 52,733MB; Pagefile(peak): 52,733MB(127,355MB)
      GlobalMemoryStatusEx: MemoryLoad=66 TotalPhys=68637343744 AvailPhys=22713372672
    
    2026-11-11 23:41:53 RequestedNewSize=74476407783          <-- identical value, independent session
      process memory info WorkingSet: 17,882MB; PrivateBytes: 68,206MB; Pagefile(peak): 68,206MB(142,829MB)
      GlobalMemoryStatusEx: MemoryLoad=67 TotalPhys=68637343744 AvailPhys=22274568192
    

    Two independent sessions produce the exact same 74476407783, which argues for a size computed from a stale/garbage element count rather than genuine exhaustion of a legitimate buffer.

    Finding 1 — it also happens after a completed shutdown

    Session of 2026-11-11:

    22:02:18.285  Preview::reload_print end
    22:02:18.331  MainFrame::shutdown start
    22:02:18.415  MainFrame::shutdown end        <-- window closed cleanly
       ... 39 minutes of silence, process still resident with ~52 GB private bytes ...
    22:41:41.465  RequestedNewSize=74476407783   <-- background thread, long after "shutdown end"
    22:41:41.468  GlobalMemoryStatusEx: AvailPageFile ~7.4 GB   -> allocation fails -> AV -> dump
    

    So the giant request is not only reachable from auto_calculate during slicing: a thread that survives teardown still reaches it, and the process sits on tens of GB until it does. From the user's side this is exactly "the app freezes when closing" — Windows logs event 1002 (Application Hang) and terminates it after ~60–90 s, while the commit charge hits 127–197 GB and the machine swaps.

    Finding 2 — 7.3.2 still crashes on close, with a different signature

    2026-11-14, 7.3.2.6412, closing the app after slicing:

    14:27:36.642  Preview::reload_printonly_gcode 0: enter, keep_volumes 0
    14:27:36.642  Preview::load_print_as_fff start
    14:27:36.645  Preview::reload_print end
    14:27:36.730  MainFrame::shutdown start
    14:27:36.828  MainFrame::shutdown end
    14:27:36.828  WebView::BeginShutdown: webviews=4, browser_pids=1
    14:27:38      (new process) ErrorReportDialog::GetErrorReport Version=7.3.2.6412 uuid=pt_BR20261114142739723
                  -> ACCESS_VIOLATION write to 0x28CA79C4FE8, CrealityPrint_Slicer.DLL+0x12191AB
    

    No huge allocation request was logged in that session, so the PathologicalProbe / cancellation guard (visible in 7.3.2 logs) appears to intercept the big allocation — but the teardown path still dereferences an invalid pointer and the app dies ~1.2 s after shutdown end. It relaunches only to show the error dialog.

    Reproduction

    Any large multi-object plate (multicolour, supports), slice, then either close the application while Preview::reload_print has just run, or simply close it and leave the process alone: 4 out of 4 crashes reproduced this way here. Toolpath outside print area found appears in the same sessions but is not required.

    Ask

    Could you confirm whether the teardown path (MainFrame::shutdown → slicer DLL destruction) frees the gcode/layer-store buffers on the main thread? Both offsets (+0xCA837A in 7.3.1, +0x12191AB in 7.3.2) live in CrealityPrint_Slicer.DLL and both are reached from crealityprint_main::<lambda>::operator() (the new handler) or immediately after it.

    I can attach the four .dmp files (1 MB each) and the full debug_*.log.0 for each session on request — I am not attaching them publicly because minidumps contain model geometry and paths.

  3. danielmontagna86-source commented on Nov 14, 2026

    @danielmontagna86-source

    Two more failures on 7.3.2.6412 today (2026-11-14, same machine as above), and the second one is a different code path with a clean trace. Both were captured live.

    1) 19:56 — the OOM/bad_alloc path is still reachable in 7.3.2

    New dump: 20261114_195601_CrealityPrint_7.3.2.6412_Release.dmp

    ACCESS_VIOLATION (write, ExceptionInformation[0]=1)  write target = 0x0
    thread 54660  address 0x7fff794d880a -> CrealityPrint_Slicer.DLL + 0xCA880A
    reporter uuid = pt_BR20261114195602507
    

    Note the offset: +0xCA880A on 7.3.2 against +0xCA837A on 7.3.1 — 0x490 bytes apart, i.e. the same function region, and the write target is again 0x0. So the guard added in 7.3.2 ([PathologicalProbe], present in 19 of 27 sessions today) does not cover this path: the giant allocation still fails and the exception handler still dereferences a null pointer. The session that died had a single normal slice beforehand — nothing unusual in the log.

    2) 20:03 — hang caused by a cancellation/re-slice loop, no dump

    Verbatim from that session's log (all timestamps UTC-3):

    20:02:22.991  [PERF_TIMING] SLICING START
    20:02:28.400  gcode path conflicts found between WipeTower and Assembly
    20:02:28.424  [PERF_TIMING] SLICING END elapsed=5425ms
    20:02:42.845  [PathologicalProbe] cancellation_requested generation=4
    20:02:42.846  [PERF_TIMING] SLICING START              <-- 1 ms later, auto re-slice
    20:02:42.964  [PathologicalProbe] asynchronous failure
                  path=...\Temp/crealityprint_model/Sat_Nov_14/20_02_11#10308#58/Metadata\.10308.0.gcode
                  error=Background processing has been canceled
    20:02:45.711  gcode path conflicts found between WipeTower and Assembly
    20:02:45.753  Slic3r::Print::process memory total_bytes 68637343744 memory available_bytes 41632821248
                  <-- log stops here; thread 0x7444 never returns
    20:03:49      Windows: Application Hang (event 1002), process terminated by the system
    

    Reporter process shows ErrorReportDialog::GetErrorReport never runs here — the app does not crash, it stops responding and Windows kills it after ~64 s.

    Correlation that may be useful

    gcode path conflicts found between WipeTower and Assembly appears in exactly one of the 27 sessions on disk today — the one that hung. The other 26 have zero occurrences. [PathologicalProbe] appears in 19 of 27, with no crash in most of them, so the watchdog itself is not the trigger; the WipeTower/Assembly conflict immediately followed by cancellation_requested is.

    Sequence that reproduces it: slice a multicolour plate (4 objects + purge tower), then change any parameter so the auto-recalculate re-slices while the previous G-code export is still being written to %LOCALAPPDATA%\Temp\crealityprint_model\.... The export is cancelled mid-write, the re-slice starts on top of the cancelled state and the slicer thread never returns.

    Ask

    1. Is PathologicalProbe::cancellation_requested expected to interrupt an in-flight Metadata\.<pid>.0.gcode write? If yes, the re-slice that follows needs to wait for the cancelled export to be torn down — right now it starts 1 ms later.
    2. Should the WipeTower/Assembly path-conflict hit cancel the slice at all, or only warn? Today it also happened in the run that produced usable G-code (SLICING END elapsed=5425ms), so the print itself was fine.

    Full logs for both sessions and the new dump available on request, same as before.

  4. fambarros commented on Nov 16, 2026

    @fambarros

    Independent confirmation — Extreme memory allocation and crashes on AMD Radeon 760M

    I can independently confirm this issue on another hardware configuration, using Creality Print 7.3.1.6378.

    System configuration:

    • GMKtec Mini PC

    • AMD Ryzen 5 7640HS

    • AMD Radeon 760M integrated graphics

    • Windows 11, build 26300

    • Creality SPARKX i7

    Two confirmed incidents — November 15, 2026:

    Time | RequestedNewSize | PrivateBytes -- | -- | -- 13:36:04 | 74,476,407,783 bytes | 54,107 MB 22:45:58 | 49,650,938,535 bytes | 62,584 MB

    Both incidents were recorded in the application's debug logs and generated minidump files.

    The application repeatedly freezes or crashes, sometimes severely degrading overall Windows performance.

    The first allocation request matches exactly the value previously reported in this issue (74476407783), despite the different hardware configuration.

    This suggests a potentially reproducible defect in memory allocation calculations or buffer lifecycle management, rather than simply insufficient RAM.

    I have already submitted the complete diagnostic report, including logs and crash dumps, to Creality Support by email.

    Questions for the development team:

    1. Has the root cause of these extreme allocation requests been identified?

    2. Does version 7.3.2.6412 contain a fix for this particular memory allocation issue?

    3. Is there an official workaround while a permanent fix is being developed?

    I can provide additional logs and minidumps privately if required.

    Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions