-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading cytolib crashes mbkmeans #45
Comments
@LTLA thanks for the report. |
Just a note for myself (as a reference later), after building ** testing if installed package can be loaded from temporary location
[libprotobuf ERROR google/protobuf/descriptor_database.cc:644] File already exists in database: GatingSet.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1371] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
Aborted (core dumped)
ERROR: loading failed
* removing ‘/mylib/R-devel-build/library/CytoML’ It is likely caused by the fact that both The fix is to build |
Building and linking RProtobufLib as static lib resolve the CytoML loading ==> devtools::test()
Testing flowWorkspace
✓ | OK F W S | Context
...
✓ | 131 | ---- gs [5.1 s]
✓ | 119 | ---- gh [0.8 s]
⠴ | 0 6 | -- parsed gs terminate called after throwing an instance of 'std::system_error'
what(): Invalid argument backtrace shows it is still from libprotobuf during loading cytoml (probably conflicts with flowWorkspace) #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff7928859 in __GI_abort () at abort.c:79
#2 0x00007ffff54c5951 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff54d147c in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff54d14e7 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff54d1799 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff54c877f in std::__throw_system_error(int) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007fffeb62f9fc in std::mutex::lock (this=0x555557e944d8) at /usr/include/c++/10/bits/std_mutex.h:104
#8 google::protobuf::internal::WrappedMutex::Lock (this=0x555557e944d8) at ./google/protobuf/stubs/mutex.h:99
#9 google::protobuf::internal::MutexLock::MutexLock (mu=0x555557e944d8, this=<synthetic pointer>) at ./google/protobuf/stubs/mutex.h:118
#10 google::protobuf::internal::OnShutdownRun (f=0x7fffeb6266a0 <google::protobuf::internal::DestroyString(void const*)>,
arg=0x7fffebb41e60 <google::protobuf::internal::fixed_address_empty_string[abi:cxx11]>) at google/protobuf/message_lite.cc:566
#11 0x00007fffeb626c7e in google::protobuf::internal::OnShutdownDestroyString (ptr=0x7fffebb41e60 <google::protobuf::internal::fixed_address_empty_string[abi:cxx11]>)
at ./google/protobuf/generated_message_util.h:251
#12 google::protobuf::internal::InitProtobufDefaultsImpl () at google/protobuf/generated_message_util.cc:76
#13 google::protobuf::internal::InitProtobufDefaults () at google/protobuf/generated_message_util.cc:81
#14 0x00007fffeb6272d8 in google::protobuf::internal::InitSCCImpl (scc=0x7fffebb3acc0 <scc_info_BOOL_GATE_OP_GatingSet_2eproto>) at google/protobuf/generated_message_util.cc:815
#15 0x00007fffeb659c3d in google::protobuf::internal::InitSCC (scc=<optimized out>) at ./google/protobuf/generated_message_util.h:240
...
#24 0x00007ffff7fe45fa in _dl_open (file=0x7ffffff4e1e0 "/library/CytoML/libs/CytoML.so", mode=-2147483646, caller_dlopen=<optimized out>, nsid=-2, |
Ok. revert back to shared RProtobuflib, and move ==> devtools::test()
...
✓ | 61 | -- archived gs [0.8 s]
✓ | 134 | ---- gs [5.3 s]
✓ | 122 1 | ---- gh [1.1 s]
────────────────────────────────────────────────────────────────────────────────✓ | 2 7 | -- parsed gs [1.8 s]
✓ | 119 | ---- gh [1.2 s]
✓ | 222 10 | ---- gs [16.1 s]
...
[ FAIL 0 | WARN 19 | SKIP 19 | PASS 1675 ] |
@LTLA , with the latest patch in > library(cytolib)
> library(mbkmeans)
> set.seed(1000)
> x <- matrix(runif(10000), ncol=10)
> out <- mbkmeans(t(x), 20)
> also >
> library(cytolib)
> library(mzR)
>
I am also yet to test it on windows. |
Looks like windows still doesn't like the idea of using shared library from r package, building and exposing I am closing it now. Feel free to reopen it if some other issues come up related to this. |
In the same vein as #37 and #38, I get:
This fails 100% of the time on my system. I am confident that mbkmeans is not doing any particularly unusual. The more obvious culprit is the
local=FALSE
in cytolib'sdyn.load
statement; setting it back toTRUE
avoids this error.Session information
The text was updated successfully, but these errors were encountered: