You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after adding back trace statements it didn't crash yet, but instead shows me this CORS error:
Origin http://127.0.0.1:1430 is not allowed by Access-Control-Allow-Origin. Status code: 200
I bet it has something to do with the tauri internal dev server? still it is odd that log statements prevent the crash?
Ok they did not, maybe I called it not often enough. now it crashed even with log statements.
this time I even got my log in cli console:
[2024-12-20][01:00:34][TRACE][deltachat_tauri_lib::blobs] file_path: "/Users/bb/Library/Application Support/chat.delta.desktop.tauri/accounts/407d2510-73ce-4a89-a375-51267867abc9/dc.db-blobs/test-4121216953.svg"
thread 'tokio-runtime-worker' panicked at core/src/panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
0: rust_begin_unwind
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
1: core::panicking::panic_nounwind_fmt::runtime
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:112:18
2: core::panicking::panic_nounwind_fmt
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:122:5
3: core::panicking::panic_nounwind
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:221:5
4: core::panicking::panic_cannot_unwind
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:310:5
5: objc2::exception::try_no_ret::try_objc_execute_closure
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/exception.rs:196:9
6: rust_objc_sys_0_3_try_catch_exception
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc-sys-0.3.5/extern/exception.m:14:9
7: objc2::exception::try_no_ret
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/exception.rs:232:28
8: objc2::exception::catch
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/exception.rs:291:27
9: objc2::runtime::message_receiver::MessageReceiver::send_message
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/runtime/message_receiver.rs:25:15
10: objc2::__macro_helpers::msg_send::MsgSend::send_message
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/__macro_helpers/msg_send.rs:27:31
11: objc2_web_kit::generated::__WKURLSchemeTask::WKURLSchemeTask::didFinish
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/macros/extern_protocol.rs:239:14
12: wry::wkwebview::class::url_scheme_handler::start_task::{{closure}}::response::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wry-0.47.2/src/wkwebview/class/url_scheme_handler.rs:260:19
13: core::ops::function::FnOnce::call_once
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
14: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
15: objc2::exception::catch::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/exception.rs:289:27
16: objc2::exception::try_no_ret::try_objc_execute_closure
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/exception.rs:202:13
17: rust_objc_sys_0_3_try_catch_exception
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc-sys-0.3.5/extern/exception.m:14:9
18: objc2::exception::try_no_ret
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/exception.rs:232:28
19: objc2::exception::catch
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.5.2/src/exception.rs:291:27
20: wry::wkwebview::class::url_scheme_handler::start_task::{{closure}}::response
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wry-0.47.2/src/wkwebview/class/url_scheme_handler.rs:259:17
21: wry::wkwebview::class::url_scheme_handler::start_task::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wry-0.47.2/src/wkwebview/class/url_scheme_handler.rs:268:23
22: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
23: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:2454:9
24: wry::RequestAsyncResponder::respond
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wry-0.47.2/src/lib.rs:292:5
25: tauri_runtime_wry::create_webview::{{closure}}::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-2.2.0/src/lib.rs:4325:36
26: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
27: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:2454:9
28: tauri::app::UriSchemeResponder::respond
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-2.1.1/src/app.rs:2083:5
29: deltachat_tauri_lib::blobs::delta_blobs_protocol::{{closure}}::{{closure}}
at ./src/blobs.rs:51:25
30: deltachat_tauri_lib::blobs::delta_blobs_protocol::{{closure}}
at ./src/blobs.rs:81:10
31: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/core.rs:331:17
32: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/loom/std/unsafe_cell.rs:16:9
33: tokio::runtime::task::core::Core<T,S>::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/core.rs:320:13
34: tokio::runtime::task::harness::poll_future::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/harness.rs:499:19
35: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
36: std::panicking::try::do_call
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:557:40
37: ___rust_try
38: std::panicking::try
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:520:19
39: std::panic::catch_unwind
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:358:14
40: tokio::runtime::task::harness::poll_future
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/harness.rs:487:18
41: tokio::runtime::task::harness::Harness<T,S>::poll_inner
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/harness.rs:209:27
42: tokio::runtime::task::harness::Harness<T,S>::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/harness.rs:154:15
43: tokio::runtime::task::raw::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/raw.rs:271:5
44: tokio::runtime::task::raw::RawTask::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/raw.rs:201:18
45: tokio::runtime::task::LocalNotified<S>::run
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/mod.rs:435:9
46: tokio::runtime::scheduler::multi_thread::worker::Context::run_task::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/scheduler/multi_thread/worker.rs:596:13
47: tokio::runtime::coop::with_budget
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/coop.rs:107:5
48: tokio::runtime::coop::budget
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/coop.rs:73:5
49: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/scheduler/multi_thread/worker.rs:595:9
50: tokio::runtime::scheduler::multi_thread::worker::Context::run
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/scheduler/multi_thread/worker.rs:546:24
51: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/scheduler/multi_thread/worker.rs:511:21
52: tokio::runtime::context::scoped::Scoped<T>::set
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/context/scoped.rs:40:9
53: tokio::runtime::context::set_scheduler::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/context.rs:180:26
54: std::thread::local::LocalKey<T>::try_with
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/thread/local.rs:283:12
55: std::thread::local::LocalKey<T>::with
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/thread/local.rs:260:9
56: tokio::runtime::context::set_scheduler
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/context.rs:180:9
57: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/scheduler/multi_thread/worker.rs:506:9
58: tokio::runtime::context::runtime::enter_runtime
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/context/runtime.rs:65:16
59: tokio::runtime::scheduler::multi_thread::worker::run
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/scheduler/multi_thread/worker.rs:498:5
60: tokio::runtime::scheduler::multi_thread::worker::block_in_place::{{closure}}::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/scheduler/multi_thread/worker.rs:439:41
61: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/blocking/task.rs:42:21
62: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/core.rs:331:17
63: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/loom/std/unsafe_cell.rs:16:9
64: tokio::runtime::task::core::Core<T,S>::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/core.rs:320:13
65: tokio::runtime::task::harness::poll_future::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/harness.rs:499:19
66: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
67: std::panicking::try::do_call
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:557:40
68: ___rust_try
69: std::panicking::try
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:520:19
70: std::panic::catch_unwind
at /Users/bb/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panic.rs:358:14
71: tokio::runtime::task::harness::poll_future
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/harness.rs:487:18
72: tokio::runtime::task::harness::Harness<T,S>::poll_inner
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/harness.rs:209:27
73: tokio::runtime::task::harness::Harness<T,S>::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/harness.rs:154:15
74: tokio::runtime::task::raw::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/raw.rs:271:5
75: tokio::runtime::task::raw::RawTask::poll
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/raw.rs:201:18
76: tokio::runtime::task::UnownedTask<S>::run
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/task/mod.rs:472:9
77: tokio::runtime::blocking::pool::Task::run
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/blocking/pool.rs:161:9
78: tokio::runtime::blocking::pool::Inner::run
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/blocking/pool.rs:511:17
79: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
at /Users/bb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/runtime/blocking/pool.rs:469:13
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
The text was updated successfully, but these errors were encountered:
In production build the fetch command says that dcblob: is not in connect-src CSP, that's already more helpful info than the weird Origin http://127.0.0.1:1430 is not allowed by Access-Control-Allow-Origin. Status code: 200 (I wonder why tauri dev mode does not add their dev server dynamically to the CSP while in development mode, but still weird that it uses http??)
after adding dcblob: to connect-src CSP and trying out the production build again, I get this:
[Error] Origin tauri://localhost is not allowed by Access-Control-Allow-Origin. Status code: 200
[Error] Failed to load resource: Origin tauri://localhost is not allowed by Access-Control-Allow-Origin. Status code: 200 (test-4121216953.svg, line 0)
[Error] Fetch API cannot load dcblob://407d2510-73ce-4a89-a375-51267867abc9/test-4121216953.svg due to access control checks.
[Error] TypeError: Load failed
Console Evaluation (Console Evaluation 2:9)
happened when i tried loading svg over dcblob scheme via fetch:
reproducible with:
maybe running in rust/codelldb debugger could help?
crash trace from apple crash dialog:
after adding back trace statements it didn't crash yet, but instead shows me this CORS error:
I bet it has something to do with the tauri internal dev server? still it is odd that log statements prevent the crash?
Ok they did not, maybe I called it not often enough. now it crashed even with log statements.
this time I even got my log in cli console:
The text was updated successfully, but these errors were encountered: