Skip to content
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

服务器用docker运行发生异常 #2089

Open
randsoy opened this issue Sep 18, 2024 · 3 comments
Open

服务器用docker运行发生异常 #2089

randsoy opened this issue Sep 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@randsoy
Copy link

randsoy commented Sep 18, 2024

我有一个音频文件,识别的时候就发生崩溃。

coredump内容如下:
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/workspace/FunASR/runtime/websocket/build/bin/funasr-wss-server --download-mode'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f08ce745a17 in funasr::PostProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >&) () from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
[Current thread is 1 (Thread 0x7f08c58b7700 (LWP 182))]
(gdb) bt
#0 0x00007f08ce745a17 in funasr::PostProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >&) () from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#1 0x00007f08ce759289 in funasr::WfstDecoder::FinalizeDecode[abi:cxx11](bool, std::vector<float, std::allocator >, std::vector<float, std::allocator >) ()
from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#2 0x00007f08ce70df3f in funasr::Paraformer::FinalizeDecode[abi:cxx11](funasr::WfstDecoder*&, bool, std::vector<float, std::allocator >, std::vector<float, std::allocator >) ()
from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#3 0x00007f08ce711fbd in funasr::Paraformer::Forward[abi:cxx11](float*, int, bool, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > > const&, void*) () from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#4 0x00007f08ce6c6163 in FunOfflineInferBuffer(void*, char const*, int, FUNASR_MODE, void ()(int, int), std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > > const&, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, void) () from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#5 0x00005614199abe67 in WebSocketServer::do_decoder(std::vector<char, std::allocator > const&, std::weak_ptr&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >&, std::mutex&, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, void*&) ()
#6 0x00005614199ba1e5 in asio::detail::executor_op<asio::detail::binder0<std::_Bind<void (WebSocketServer::(WebSocketServer, std::vector<char, std::allocator >, std::weak_ptr, std::reference_wrapper<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > > >, std::reference_wrapperstd::mutex, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >, std::reference_wrapper<void*>))(std::vector<char, std::allocator > const&, std::weak_ptr&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >&, std::mutex&, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, void*&)> >, std::allocator, asio::detail::scheduler_operation>::do_complete(void*, asio::detail::scheduler_operation*, std::error_code const&, unsigned long) ()
#7 0x000056141992cab8 in asio::detail::scheduler::run(std::error_code&) ()
#8 0x000056141991d5bd in std::thread::_State_impl<std::thread::_Invoker<std::tuplemain::{lambda()#1} > >::_M_run() ()
#9 0x00007f08cdfeddf4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007f08ce13a609 in start_thread (arg=) at pthread_create.c:477
#11 0x00007f08cde29353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)
#0 0x00007f08ce745a17 in funasr::PostProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >&) () from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#1 0x00007f08ce759289 in funasr::WfstDecoder::FinalizeDecode[abi:cxx11](bool, std::vector<float, std::allocator >, std::vector<float, std::allocator >) ()
from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#2 0x00007f08ce70df3f in funasr::Paraformer::FinalizeDecode[abi:cxx11](funasr::WfstDecoder*&, bool, std::vector<float, std::allocator >, std::vector<float, std::allocator >) ()
from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#3 0x00007f08ce711fbd in funasr::Paraformer::Forward[abi:cxx11](float*, int, bool, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > > const&, void*) () from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#4 0x00007f08ce6c6163 in FunOfflineInferBuffer(void*, char const*, int, FUNASR_MODE, void ()(int, int), std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > > const&, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, void) () from /workspace/FunASR/runtime/websocket/build/src/libfunasr.so
#5 0x00005614199abe67 in WebSocketServer::do_decoder(std::vector<char, std::allocator > const&, std::weak_ptr&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >&, std::mutex&, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, void*&) ()
#6 0x00005614199ba1e5 in asio::detail::executor_op<asio::detail::binder0<std::_Bind<void (WebSocketServer::(WebSocketServer, std::vector<char, std::allocator >, std::weak_ptr, std::reference_wrapper<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > > >, std::reference_wrapperstd::mutex, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >, std::reference_wrapper<void*>))(std::vector<char, std::allocator > const&, std::weak_ptr&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator > >&, std::mutex&, std::vector<std::vector<float, std::allocator >, std::allocator<std::vector<float, std::allocator > > >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, void*&)> >, std::allocator, asio::detail::scheduler_operation>::do_complete(void*, asio::detail::scheduler_operation*, std::error_code const&, unsigned long) ()
#7 0x000056141992cab8 in asio::detail::scheduler::run(std::error_code&) ()
#8 0x000056141991d5bd in std::thread::_State_impl<std::thread::_Invoker<std::tuplemain::{lambda()#1} > >::_M_run() ()
#9 0x00007f08cdfeddf4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007f08ce13a609 in start_thread (arg=) at pthread_create.c:477
#11 0x00007f08cde29353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

@randsoy randsoy added the bug Something isn't working label Sep 18, 2024
@LauraGPT
Copy link
Collaborator

Please describe you issue clearly.

@lyblsgo
Copy link
Collaborator

lyblsgo commented Sep 26, 2024

辛苦提供可复现的步骤,包括测试音频

@randsoy
Copy link
Author

randsoy commented Dec 20, 2024

音频是有很长一段静音,我找找看,如果找到啦就附加上来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants