Skip to content

objc2_multipeer_connectivity examples or any other "tutorial" resources on memory, NSAutoreleasePool, ... mgmt #733

@adiibanez

Description

@adiibanez

Made some small steps of progress ... but having some most probably quite basic questions regarding how to use the rust / objc "bridge". Are there any examples available showing how to use NSAutoreleasePool / retained / properly. Preferably mpc related but anything will help.

cargo(34374) MallocStackLogging: could not tag MSL-related memory as no_footprint, so those pages will be included in process footprint - (null)
cargo(34374) MallocStackLogging: stack logs being written to /private/tmp/stack-logs.34374.10516c000.cargo.SYMfJZ.index
cargo(34374) MallocStackLogging: recording malloc and VM allocation stacks to disk using standard recorder
cargo(34374) MallocStackLogging: process 34293 no longer exists, stack logs deleted from /tmp/stack-logs.34293.102d60000.iroh_mpc_discovery.89jxkv.index
objc[34374]: MISSING POOLS: (0x1f310c840) Object 0x6000004ec140 of class _NSSwiftProcessInfo autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[34374]: MISSING POOLS: (0x1f310c840) Object 0x6000011e6960 of class Swift.__SwiftDeferredNSArray autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
cargo(34374) MallocStackLogging: could not tag MSL-related memory as no_footprint, so those pages will be included in process footprint - (null)
cargo(34374) MallocStackLogging: stack logs being written to /private/tmp/stack-logs.34374.1047d4000.cargo.IvGvyC.index
cargo(34374) MallocStackLogging: recording malloc and VM allocation stacks to disk using standard recorder
cargo(34374) MallocStackLogging: stack logs deleted from /tmp/stack-logs.34374.10516c000.cargo.SYMfJZ.index
objc[34374]: MISSING POOLS: (0x1f310c840) Object 0x600002c602c0 of class _NSSwiftProcessInfo autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[34374]: MISSING POOLS: (0x1f310c840) Object 0x60000396f8a0 of class Swift.__SwiftDeferredNSArray autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
   Compiling iroh_mpc_discovery v0.1.0 (/Users/adrianibanez/Documents/projects/2024_sensor-platform/checkouts/iroh_mpc_discovery)
cargo(34379) MallocStackLogging: turning off stack logging (had been recording malloc and VM allocation stacks to disk using standard recorder)
cargo(34383) MallocStackLogging: turning off stack logging (had been recording malloc and VM allocation stacks to disk using standard recorder)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.16s
     Running `target/debug/iroh_mpc_discovery`
iroh_mpc_discovery(34374) MallocStackLogging: could not tag MSL-related memory as no_footprint, so those pages will be included in process footprint - (null)
iroh_mpc_discovery(34374) MallocStackLogging: stack logs being written to /private/tmp/stack-logs.34374.1028ac000.iroh_mpc_discovery.1u2B5f.index
iroh_mpc_discovery(34374) MallocStackLogging: recording malloc and VM allocation stacks to disk using standard recorder
iroh_mpc_discovery(34374) MallocStackLogging: stack logs deleted from /tmp/stack-logs.34374.1047d4000.cargo.IvGvyC.index
run-mpc.sh: line 5: 34374 Segmentation fault: 11  MallocStackLogging=1 OBJC_DEBUG_MISSING_POOLS=YES RUST_BACKTRACE=full RUST_LOG=trace cargo run

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frameworkAffects the framework crates and the translator for themdocumentationImprovements or additions to documentationquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions