From 5ceb0256792053ee80841f2b5ac0dfae1fd4c6f8 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 11 Feb 2026 11:58:24 +0100 Subject: fix: Complete auxiliary texture initialization fix Root cause: After swapping init/resize order, effects with Renderer3D crashed because resize() called before init() tried to use uninitialized GPU resources. Changes: - Add guards in FlashCubeEffect::resize() and Hybrid3DEffect::resize() to check ctx_.device before calling renderer_.resize() - Remove lazy initialization remnants from CircleMaskEffect and CNNEffect - Register auxiliary textures directly in init() (width_/height_ already set) - Remove ensure_texture() methods and texture_initialized_ flags All 36 tests passing. Demo runs without crashes. Co-Authored-By: Claude Sonnet 4.5 --- LOG.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 LOG.txt (limited to 'LOG.txt') diff --git a/LOG.txt b/LOG.txt new file mode 100644 index 0000000..ad03d6a --- /dev/null +++ b/LOG.txt @@ -0,0 +1,28 @@ + +thread '' (18683700) panicked at src/lib.rs:2426:38: +invalid device +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +thread '' (18683700) panicked at library/core/src/panicking.rs:230:5: +panic in a function that cannot unwind +stack backtrace: + 0: 0x101ad75e0 - ::fmt::h5b9122f5e70f5951 + 1: 0x101af5194 - core::fmt::write::h6a8a2c9e4d999818 + 2: 0x101ad7854 - std::io::default_write_fmt::h89b6c507b2c6ffa7 + 3: 0x101ad6488 - std::panicking::default_hook::{{closure}}::h24b4617c01d6581d + 4: 0x101ad6370 - std::panicking::default_hook::h1955ee9a9845dfef + 5: 0x101ad6754 - std::panicking::panic_with_hook::h8aad6dd2389d8f59 + 6: 0x101ad6564 - std::panicking::panic_handler::{{closure}}::h3bd15449212d5b6e + 7: 0x101ad61e4 - std::sys::backtrace::__rust_end_short_backtrace::h3b25181b9f11fe05 + 8: 0x101ad5660 - __rustc[18f9140b322fd06e]::rust_begin_unwind + 9: 0x101b21f6c - core::panicking::panic_nounwind_fmt::h7a4dae3ab8fc5259 + 10: 0x101b21ed0 - core::panicking::panic_nounwind::h959d775d33fc4688 + 11: 0x101b22070 - core::panicking::panic_cannot_unwind::hda7331a7075802a1 + 12: 0x101786274 - _wgpuDeviceCreateTexture + 13: 0x10063ed9c - __ZN10Renderer3D6resizeEii + 14: 0x1006730c0 - __ZN15FlashCubeEffect6resizeEii + 15: 0x1006546c0 - __ZN8Sequence6resizeEii + 16: 0x1006556e0 - __ZN12MainSequence12add_sequenceENSt3__110shared_ptrI8SequenceEEfi + 17: 0x10062dc88 - __Z12LoadTimelineR12MainSequenceRK10GpuContext + 18: 0x10062b1e4 - _main +thread caused non-unwinding panic. aborting. -- cgit v1.2.3