This is a strange problem.
I've created a porting of the software for voice recognition Sphinx
under Nanodesktop. The software is very complex and it uses
only a thread.
If I try to execute the program in the main psp thread, I have no
error.
But I need to execute this program in a secondary thread, different
from the main thread. So, I've created a thread with a stack of
65536 byte, attributes USER|VFPU and this secondary thread must
launch the Sphinx code.
Well, the program hangs.
So, I have two questions:
a) Can anyone check what type of exception is present in this program? If the answer is yes, I can send to him a copy of the homebrew;
b) Which are the differences between the main thread and a secondary thread of the psp ? In theory, the two threads must be identical, but in
the main thread the program works, in secondary thread it fails.
ndPocketSphinx hangs in secondary thread
-
- Posts: 160
- Joined: Wed Jul 12, 2006 7:09 am
From what you've said, the difference is the stack size. The default stack size for the main thread is 256K. Try that for the secondary thread. 64K sounds a bit small for something like voice recog routines.
Also, remember that the PSP uses cooperative multitasking. Until you call some system routine to make a thread wait, no other threads run. Once they DO run, then they keep running until they also call a sys routine that waits.
Also, remember that the PSP uses cooperative multitasking. Until you call some system routine to make a thread wait, no other threads run. Once they DO run, then they keep running until they also call a sys routine that waits.
-
- Posts: 160
- Joined: Wed Jul 12, 2006 7:09 am
Thank you Joseph. I've tried to increase the amount of stack, butJ.F. wrote:From what you've said, the difference is the stack size. The default stack size for the main thread is 256K. Try that for the secondary thread. 64K sounds a bit small for something like voice recog routines.
Also, remember that the PSP uses cooperative multitasking. Until you call some system routine to make a thread wait, no other threads run. Once they DO run, then they keep running until they also call a sys routine that waits.
without result. Can you test my homebrew with PSPLink ? So I can
see what type of error is the cause of the hang.
P.S. Have you any news about ndPiKeyDriver.Prx ?