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

Debian 12下运行自带的 TTS 示例程序报错 Segmentation Fault #1491

Closed
towerbit opened this issue Oct 29, 2024 · 2 comments · Fixed by #1492
Closed

Debian 12下运行自带的 TTS 示例程序报错 Segmentation Fault #1491

towerbit opened this issue Oct 29, 2024 · 2 comments · Fixed by #1492

Comments

@towerbit
Copy link

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="NAudio" Version="2.2.1" />
    <PackageReference Include="org.k2fsa.sherpa.onnx" Version="1.10.23" />
  </ItemGroup>
  
</Project>

win10 x64 下工作正常,vmware 16 中运行 Debian 12.4 在创建 TTSCore 实例时发生段错误

public TTSCore(SherpaOnnxOfflineTtsConfig modelConfig)
{
  try
  {
    IntPtr ttsHandle = SherpaOnnxCreateOfflineTts(modelConfig);

gdb 跟进去看是 SherpaOnnxCreateOfflineTts 调用出错

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7a1e6c0 (LWP 1409)]
[New Thread 0x7ffff721d6c0 (LWP 1410)]
[New Thread 0x7ffff6a1c6c0 (LWP 1411)]
[New Thread 0x7ffff621b6c0 (LWP 1412)]
[New Thread 0x7ffff54536c0 (LWP 1413)]
[New Thread 0x7ffff4c526c0 (LWP 1414)]
[New Thread 0x7fffc5dff6c0 (LWP 1415)]
Create SherpaOnnxOfflineTtsConfig ...
Create TTSCore ...

Thread 1 "TTS" received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
76	../sysdeps/x86_64/multiarch/strlen-avx2.S: 没有那个文件或目录.
(gdb) bt
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
#1  0x00007fffc528acb0 in SherpaOnnxCreateOfflineTts () from /home/user/Apps/TTS/libsherpa-onnx-c-api.so

请问如何排错?

@csukuangfj
Copy link
Collaborator

别用这个,你用错例子代码了。我们等下删掉它

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants