Reputation: 436
When the development build is running with tauri dev, the app does not trigger this Node.js pkg sidecar error.
However, when signing the production build with tauri build, the main app of Tauri (Rust and frontend) works correctly, but the Node.js pkg sidecar fails to start:
# Fatal error in , line 0
# Check failed: reservation_.SetPermissions(unprotect_start, unprotect_size, FLAG_write_code_using_rwx ? PageAllocator::kReadWriteExecute : PageAllocator::kReadWrite).
#FailureMessage Object: 0x312303e00
1: 0x10444e1a2 node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task>>) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
2: 0x1056e0a7b V8_Fatal(char const*, ...) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
3: 0x1048255eb v8::internal::MemoryChunk::SetReadAndWritable() [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
4: 0x1047a71a1 v8::internal::Heap::UnprotectAndRegisterMemoryChunk(v8::internal::MemoryChunk*, v8::internal::UnprotectMemoryOrigin) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
5: 0x10476f3d8 v8::internal::Factory::TryNewFixedArray(int, v8::internal::AllocationType) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
6: 0x1047af701 v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
7: 0x10476d79e v8::internal::Factory::CodeBuilder::AllocateCode(bool) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
8: 0x10476ce02 v8::internal::Factory::CodeBuilder::BuildInternal(bool) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
9: 0x1046124c8 v8::internal::GenerateBaselineCode(v8::internal::Isolate*, v8::internal::Handle<v8::internal::SharedFunctionInfo>) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
10: 0x10465eee8 v8::internal::Compiler::CompileSharedWithBaseline(v8::internal::Isolate*, v8::internal::Handle<v8::internal::SharedFunctionInfo>, v8::internal::Compiler::ClearExceptionFlag, v8::internal::IsCompiledScope*) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
11: 0x1046622b0 v8::internal::Compiler::CompileBaseline(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Compiler::ClearExceptionFlag, v8::internal::IsCompiledScope*) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
12: 0x1045ecc9b v8::internal::baseline::BaselineBatchCompiler::CompileBatch(v8::internal::Handle<v8::internal::JSFunction>) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
13: 0x1045eca50 v8::internal::baseline::BaselineBatchCompiler::EnqueueFunction(v8::internal::Handle<v8::internal::JSFunction>) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
14: 0x104bae780 v8::internal::Runtime_BytecodeBudgetInterruptWithStackCheckFromBytecode(int, unsigned long*, v8::internal::Isolate*) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
15: 0x104bae99c v8::internal::Runtime_BytecodeBudgetInterruptFromBytecode(int, unsigned long*, v8::internal::Isolate*) [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
16: 0x10415c359 [/Users/macbookpro/Desktop/node/taurijs/tatara/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/tatara.app/Contents/MacOS/app]
zsh: trace trap
Does the sidecar app need to be signed also? That sidecar NodeJS app only has a 1 line of console.log.
Spec:
MacOS Sequoia 15.1.1 - Macbook M1 Pro 2021
node16-macos-x64 used for pkg
Thanks!
Upvotes: 0
Views: 50