primoze
primoze
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
yup, that was the issue
14 replies
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
also this only solves the issue in my repro example, in my actual app it segfaults even earlier now, when creating the first worker. maybe the issue is that i initialize the plaform in tokio::main (so inside a runtime), i need to shuffle some code around and so that it doesn't happen inside a runtime and see if it works
14 replies
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
i need to read up on Platform
14 replies
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
this is just from the example at https://docs.rs/v8/latest/v8/
14 replies
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
let platform = v8::new_default_platform(0, false).make_shared();
deno_runtime::deno_core::JsRuntime::init_platform(Some(platform));
let platform = v8::new_default_platform(0, false).make_shared();
deno_runtime::deno_core::JsRuntime::init_platform(Some(platform));
14 replies
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
Note: since V8 11.6, all runtimes must have a common parent thread that initalized the V8 platform. this solved the issue, but as far as I can tell there are versions with v8 > 11.6 which don't have the issue
14 replies
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
The issue starts occurring when upgrading from 0.129.0 to 0.130.0 (v8 0.79,2 to 0.81.0)
14 replies
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
It'd be great if a human could take a look at this...
14 replies
DDeno
Created by primoze on 11/16/2023 in #help
Segfault when creating second rust MainWorker in program
My problem is not caused by JS workers, but by deno_runtime::workers::MainWorker being initialized in rust code.
14 replies
DDeno
Created by primoze on 11/22/2022 in #help
deno_runtime inspector service not starting...
yeah, i thought i did but i guess i was mistaken about some lifetime rules. anyway i found the issue immediately, thanks again
12 replies
DDeno
Created by primoze on 11/22/2022 in #help
deno_runtime inspector service not starting...
i guess the inspector gets dropped, now i have to figure out why. thanks!
12 replies
DDeno
Created by primoze on 11/22/2022 in #help
deno_runtime inspector service not starting...
huh, you're right. that's the branch i didn't add the println before
12 replies
DDeno
Created by primoze on 11/22/2022 in #help
deno_runtime inspector service not starting...
and there are no errors from hyper::server::Builder
12 replies
DDeno
Created by primoze on 11/22/2022 in #help
deno_runtime inspector service not starting...
yes, server is called
12 replies