Menu

pocketshpinx and "hello world&quo...

Help
2011-08-09
2012-09-22
  • darkingthereturn

    Hi! I was trying the "hello world" example described here: http://cmusphinx.s
    ourceforge.net/wiki/tuturialpocketsphinx

    All i've done is ctrl+c --> ctrl+v in my empty eclipse project (only renamed
    the source folder for lm, hmm and dict, look here:
    http://pastebin.com/si6sgZNi). I've
    correctly imported all the necessary libraries, inclusions, i've specified
    correct paths etc etc in fact eclipse build succesfully Sphinx.exe (windows).
    Well, when i launch it, sphinx.exe crashes. Using some printf i've found that
    it crashes when calling ps_decode_raw for the first time. Here there's a
    screenshot of my workspace folder (so you can see wich files are in there) and
    another pastebin with the output till the crash. Hope you can help me!
    Regards,

    Angelo

    folder:
    pastebin terminal:
    http://pastebin.com/k32P3zk0

    p.s: sorry for my worst english!

     
  • darkingthereturn

    Oh, sorry for the double post but i think this may help.
    I'm on Windows 7 Professional SP1, 64bit (x64)
    It asked msvcr100.dll dependency. Maybe it requires something else or there's
    a problem in my 64bit version?

     
  • Nickolay V. Shmyrev

    Install VS 2010 Express

     
  • darkingthereturn

    Install VS 2010 Express

    Done, it crashes anyway. Tested on a 32bit windows 7 it's the same.

     
  • Nickolay V. Shmyrev

    Done, it crashes anyway.

    When you report about crash please provide the stacktrace. Most likely it's a
    trivial issue in your application.

     
  • darkingthereturn

    How can i provide the stacktrace? What do you mean with trivial issue? Thank
    you for your patience!

     
  • darkingthereturn

    i've tried with gdb (from command line) and this is the result:
    http://pastebin.com/1im45MsT
    Segmentation Fault (obvious, but why?). I'm sorry but i've never used eclipse
    debugger (even visual studio debugger).
    If you need more information tell me what should i do! Thank you again,

    Angelo

    p.s: the code i've compiled is linked in the first post, here you are again:
    http://pastebin.com/si6sgZNi

     
  • darkingthereturn

    nobody can help me?

     
  • darkingthereturn

    Tested with fresh windows xp 32bit installation on vmware, installed all
    correctly, same crash. I've done all correct, nothing changed from your source
    code. Maybe a bug? Have you tried the hello world code?

     
  • Nickolay V. Shmyrev

    Hello

    Please provide full stacktrace of the crash. It should contain the list of
    function in call stack, not one of them.

     
  • Bogdan Ivanov

    Bogdan Ivanov - 2011-08-24

    Hello.
    I have a similar problem. Test program (as any program with source code from
    tutorial :-) crashes at runtime when calling ps_decode_raw(). It seems that
    it's my fault somewhere, but I can't still uncover it.
    Can provide some call stack, maybe it will be useful for me, you and
    topicstarter.

    #0 77162239 ntdll!EtwNotificationUnregister() (C:\Windows\system32\ntdll.dll:??)
    #1 75EA2980 msvcrt!_iob() (C:\Windows\system32\msvcrt.dll:??)
    #2 75EA2984 msvcrt!_iob() (C:\Windows\system32\msvcrt.dll:??)
    #3 6486E4E0 ftell_nolock() (C:\Windows\system32\msvcr100.dll:??)
    #4 648B6E37 clock() (C:\Windows\system32\msvcr100.dll:??)
    #5 002D5190 sphinxbase!bitvec_count_set() (N:\BlocksProjects\sphinx\bin\Debug\sphinxbase.dll:??)
    #6 77162148 ntdll!EtwNotificationUnregister() (C:\Windows\system32\ntdll.dll:??)
    #7 00000000 ??() (??:??)
    
     
  • Nickolay V. Shmyrev

    Hello

    With this stacktrace this problem is easy to solve. The reason for the crash
    is that sphinxbase and pocketsphinx and your library were built with different
    type of runtime. In sphinxbase you should see in project files:

    <runtimelibrary>MultiThreadedDLL</runtimelibrary>

    You need to make sure that this setting is consistent across all the
    components of your application. If it will mismatch, the application will
    crash.

    @darking90:

    You need to learn how to collect stacktraces. That will help you in the
    future.

     
  • Bogdan Ivanov

    Bogdan Ivanov - 2011-08-24

    Oh, that's just like case described in F.A.Q.
    Thank you very much!

     
  • Anonymous

    Anonymous - 2011-08-25

    Hi there has anyone managed to get pocketsphinx running on windows 7 ? im
    seriously struggling to get pocketsphinx demos running in visual studio so i
    can carry on with my project this set back is holding me back and i need to
    get my project completed. need to create a c# wrapper. so that the
    pocketsphinx speech recognition can function in a C# environment

    please help me :'(

    Lauren

     
  • Joseph S. Wisniewski

    Lauren, I don't know what I can do to help, but one of my development systems
    is a bog standard Windows 7 Professional with Visual Studio 2010 Professional,
    and PS 0.7 builds just fine. So, there is hope...

     

Log in to post a comment.