Open Lokeshagit opened 1 year ago
I assume if you run cargo test
in https://github.com/matklad/once_cell then you get the same?
Hello Sebastian,
Can you tell me what this once_cell does? because the error I got above was when i tried to execute gst-plugin-ndi using libndi 5.5.3.
So I want to understand if its issue with compatibility of libndi with gst-plugin-ndi or is it some RUST dependency of gst-plugin-ndi?
There's documentation in the git repository about what it does. The question is whether that also crashes the same way.
Most likely you're using a wrong Rust toolchain for your CPU or there is a LLVM code generation bug.
We have used https://github.com/rust-embedded/meta-rust-bin to compile rustc and cargo.
And we have used gst-plugin-ndi to build for arm CPU for webOS using the built rustc from above
Hi,
facing error when running below command.
"run /usr/lib/gstreamer-1.0/libgstndi.so"
Reading symbols from /usr/bin/gst-inspect-1.0... (gdb) run /usr/lib/gstreamer-1.0/libgstndi.so Starting program: /usr/bin/gst-inspect-1.0 /usr/lib/gstreamer-1.0/libgstndi.so [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". [Detaching after fork from child process 6328]
Program received signal SIGILL, Illegal instruction. 0xf78d496c in core::sync::atomic::atomic_load (dst=, order=core::sync::atomic::Ordering::Acquire)
at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/sync/atomic.rs:2988
2988 /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/sync/atomic.rs: No such file or directory.
(gdb)
(gdb) bt
0 0xf78d496c in core::sync::atomic::atomic_load (dst=, order=core::sync::atomic::Ordering::Acquire)
1 core::sync::atomic::AtomicU32::load () at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/sync/atomic.rs:2091
2 std::sys_common::once::futex::Once::is_completed () at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/std/src/sys_common/once/futex.rs:78
3 std::sync::once::Once::call_once (self=, f=...) at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/std/src/sync/once.rs:138
4::type_ () at src/device_provider/imp.rs:31
5::static_type () at src/device_provider/mod.rs:5
6 gstndi::device_provider::register (plugin=0xfffef054) at src/device_provider/mod.rs:24
7 gstndi::plugin_init (plugin=0xfffef054) at src/lib.rs:121
8 0xf78ae364 in gstndi::plugin_desc::plugin_init_trampoline::{{closure}} ()
9 core::ops::function::FnOnce::call_once () at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/ops/function.rs:251
10 <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once (self=..., _args=)
11 std::panicking::try::do_call (data=) at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/std/src/panicking.rs:483
12 std::panicking::try (f=...) at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/std/src/panicking.rs:447
13 std::panic::catch_unwind (f=...) at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/std/src/panic.rs:137
14 gstndi::plugin_desc::plugin_init_trampoline (plugin=)
15 0xf7f1cf76 in gst_plugin_register_func (user_data=0x0, desc=0xf79b2544, plugin=0x4e2178) at ../git/gst/gstplugin.c:532
16 gst_plugin_register_func (plugin=0x4e2178, desc=0xf79b2544, user_data=0x0) at ../git/gst/gstplugin.c:486
17 0xf7f1ea86 in _priv_gst_plugin_load_file_for_registry (filename=0xfffef7c8 "/usr/lib/gstreamer-1.0/libgstndi.so", registry=0x43b040, error=0xfffef2a8)
18 0x004041ec in main (argc=, argv=) at ../git/tools/gst-inspect.c:2156
In the above error found "/rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/sync/atomic.rs: No such file or directory".
Currently including rust-lang in gst-plugin-ndi. Is it enough to resolve this issue?
Please provide any suggestion on the above error.