Reply To: RapidEars 2.04 – crash when using within Cocos2d

Home Forums OpenEars plugins RapidEars 2.04 – crash when using within Cocos2d Reply To: RapidEars 2.04 – crash when using within Cocos2d

#1026466
anhtu
Participant

Sorry, here is the log (removed my logs):

2015-08-03 19:27:13.864 APP_NAME[49252:4174534] Starting OpenEars logging for OpenEars version 2.03 on 64-bit device (or build): iPad running iOS version: 8.300000
2015-08-03 19:27:13.920 APP_NAME[49252:4174534] Starting dynamic language model generation

2015-08-03 19:27:14.062 APP_NAME[49252:4174534] Done creating language model with CMUCLMTK in 0.141510 seconds.
2015-08-03 19:27:14.064 APP_NAME[49252:4174534] I'm done running performDictionaryLookup and it took 0.000200 seconds
2015-08-03 19:27:14.071 APP_NAME[49252:4174534] I'm done running dynamic language model generation and it took 0.200374 seconds
2015-08-03 19:27:14.072 APP_NAME[49252:4174534] Starting OpenEars logging for OpenEars version 2.03 on 64-bit device (or build): iPad running iOS version: 8.300000
2015-08-03 19:27:14.080 APP_NAME[49252:4174534] cocos2d: surface size: 2048x1536
2015-08-03 19:27:15.083 APP_NAME[49252:4174534] User gave mic permission for this app.
2015-08-03 19:27:15.085 APP_NAME[49252:4174534] Valid setSecondsOfSilence value of 0.200000 will be used.
2015-08-03 19:27:15.087 APP_NAME[49252:4174708] Starting listening.
2015-08-03 19:27:15.088 APP_NAME[49252:4174708] about to set up audio session
2015-08-03 19:27:15.246 APP_NAME[49252:4174642] Audio route has changed for the following reason:
2015-08-03 19:27:15.249 APP_NAME[49252:4174642] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
2015-08-03 19:27:15.256 APP_NAME[49252:4174642] This is not a case in which OpenEars notifies of a route change. At the close of this function, the new audio route is ---SpeakerMicrophoneBuiltIn---. The previous route before changing to this route was <AVAudioSessionRouteDescription: 0x170c118b0,
inputs = (null);
outputs = (
           "<AVAudioSessionPortDescription: 0x170c11810, type = Speaker; name = Speaker; UID = Built-In Speaker; selectedDataSource = (null)>"
           )>.
2015-08-03 19:27:15.268 APP_NAME[49252:4174708] done starting audio unit
INFO: cmd_ln.c(702): Parsing command line:
\
-lm /var/mobile/Containers/Data/Application/662EA17C-590D-4F09-9312-520CD035DE4B/Library/Caches/lession_vocal_A_0.DMP \
-vad_prespeech 10 \
-vad_postspeech 20 \
-vad_threshold 2.000000 \
-remove_noise yes \
-remove_silence yes \
-bestpath yes \
-lw 6.500000 \
-dict /var/mobile/Containers/Data/Application/662EA17C-590D-4F09-9312-520CD035DE4B/Library/Caches/lession_vocal_A_0.dic \
-hmm /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle

Current configuration:
[NAME]		[DEFLT]		[VALUE]
-agc		none		none
-agcthresh	2.0		2.000000e+00
-allphone
-allphone_ci	no		no
-alpha		0.97		9.700000e-01
-argfile
-ascale		20.0		2.000000e+01
-aw		1		1
-backtrace	no		no
-beam		1e-48		1.000000e-48
-bestpath	yes		yes
-bestpathlw	9.5		9.500000e+00
-bghist		no		no
-ceplen		13		13
-cmn		current		current
-cmninit	8.0		8.0
-compallsen	no		no
-debug				0
-dict				/var/mobile/Containers/Data/Application/662EA17C-590D-4F09-9312-520CD035DE4B/Library/Caches/lession_vocal_A_0.dic
-dictcase	no		no
-dither		no		no
-doublebw	no		no
-ds		1		1
-fdict
-feat		1s_c_d_dd	1s_c_d_dd
-featparams
-fillprob	1e-8		1.000000e-08
-frate		100		100
-fsg
-fsgusealtpron	yes		yes
-fsgusefiller	yes		yes
-fwdflat	yes		yes
-fwdflatbeam	1e-64		1.000000e-64
-fwdflatefwid	4		4
-fwdflatlw	8.5		8.500000e+00
-fwdflatsfwin	25		25
-fwdflatwbeam	7e-29		7.000000e-29
-fwdtree	yes		yes
-hmm				/private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle
-input_endian	little		little
-jsgf
-kdmaxbbi	-1		-1
-kdmaxdepth	0		0
-kdtree
-keyphrase
-kws
-kws_plp	1e-1		1.000000e-01
-kws_threshold	1		1.000000e+00
-latsize	5000		5000
-lda
-ldadim		0		0
-lextreedump	0		0
-lifter		0		0
-lm				/var/mobile/Containers/Data/Application/662EA17C-590D-4F09-9312-520CD035DE4B/Library/Caches/lession_vocal_A_0.DMP
-lmctl
-lmname
-logbase	1.0001		1.000100e+00
-logfn
-logspec	no		no
-lowerf		133.33334	1.333333e+02
-lpbeam		1e-40		1.000000e-40
-lponlybeam	7e-29		7.000000e-29
-lw		6.5		6.500000e+00
-maxhmmpf	10000		10000
-maxnewoov	20		20
-maxwpf		-1		-1
-mdef
-mean
-mfclogdir
-min_endfr	0		0
-mixw
-mixwfloor	0.0000001	1.000000e-07
-mllr
-mmap		yes		yes
-ncep		13		13
-nfft		512		512
-nfilt		40		40
-nwpen		1.0		1.000000e+00
-pbeam		1e-48		1.000000e-48
-pip		1.0		1.000000e+00
-pl_beam	1e-10		1.000000e-10
-pl_pbeam	1e-5		1.000000e-05
-pl_window	0		0
-rawlogdir
-remove_dc	no		no
-remove_noise	yes		yes
-remove_silence	yes		yes
-round_filters	yes		yes
-samprate	16000		1.600000e+04
-seed		-1		-1
-sendump
-senlogdir
-senmgau
-silprob	0.005		5.000000e-03
-smoothspec	no		no
-svspec
-tmat
-tmatfloor	0.0001		1.000000e-04
-topn		4		4
-topn_beam	0		0
-toprule
-transform	legacy		legacy
-unit_area	yes		yes
-upperf		6855.4976	6.855498e+03
-usewdphones	no		no
-uw		1.0		1.000000e+00
-vad_postspeech	50		20
-vad_prespeech	10		10
-vad_threshold	2.0		2.000000e+00
-var
-varfloor	0.0001		1.000000e-04
-varnorm	no		no
-verbose	no		no
-warp_params
-warp_type	inverse_linear	inverse_linear
-wbeam		7e-29		7.000000e-29
-wip		0.65		6.500000e-01
-wlen		0.025625	2.562500e-02

INFO: cmd_ln.c(702): Parsing command line:
\
-nfilt 25 \
-lowerf 130 \
-upperf 6800 \
-feat 1s_c_d_dd \
-svspec 0-12/13-25/26-38 \
-agc none \
-cmn current \
-varnorm no \
-transform dct \
-lifter 22 \
-cmninit 40

Current configuration:
[NAME]		[DEFLT]		[VALUE]
-agc		none		none
-agcthresh	2.0		2.000000e+00
-alpha		0.97		9.700000e-01
-ceplen		13		13
-cmn		current		current
-cmninit	8.0		40
-dither		no		no
-doublebw	no		no
-feat		1s_c_d_dd	1s_c_d_dd
-frate		100		100
-input_endian	little		little
-lda
-ldadim		0		0
-lifter		0		22
-logspec	no		no
-lowerf		133.33334	1.300000e+02
-ncep		13		13
-nfft		512		512
-nfilt		40		25
-remove_dc	no		no
-remove_noise	yes		yes
-remove_silence	yes		yes
-round_filters	yes		yes
-samprate	16000		1.600000e+04
-seed		-1		-1
-smoothspec	no		no
-svspec				0-12/13-25/26-38
-transform	legacy		dct
-unit_area	yes		yes
-upperf		6855.4976	6.800000e+03
-vad_postspeech	50		20
-vad_prespeech	10		10
-vad_threshold	2.0		2.000000e+00
-varnorm	no		no
-verbose	no		no
-warp_params
-warp_type	inverse_linear	inverse_linear
-wlen		0.025625	2.562500e-02

INFO: acmod.c(252): Parsed model-specific feature parameters from /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle/feat.params
INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none'
INFO: cmn.c(143): mean[0]= 12.00, mean[1..12]= 0.0
INFO: acmod.c(171): Using subvector specification 0-12/13-25/26-38
INFO: mdef.c(518): Reading model definition: /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle/mdef
INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef file
INFO: bin_mdef.c(336): Reading binary model definition: /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle/mdef
INFO: bin_mdef.c(516): 46 CI-phone, 168344 CD-phone, 3 emitstate/phone, 138 CI-sen, 6138 Sen, 32881 Sen-Seq
INFO: tmat.c(206): Reading HMM transition probability matrices: /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle/transition_matrices
INFO: acmod.c(124): Attempting to use SCHMM computation module
INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle/means
INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
INFO: ms_gauden.c(294):  512x13
INFO: ms_gauden.c(294):  512x13
INFO: ms_gauden.c(294):  512x13
INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle/variances
INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
INFO: ms_gauden.c(294):  512x13
INFO: ms_gauden.c(294):  512x13
INFO: ms_gauden.c(294):  512x13
INFO: ms_gauden.c(354): 0 variance values floored
INFO: s2_semi_mgau.c(904): Loading senones from dump file /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle/sendump
INFO: s2_semi_mgau.c(928): BEGIN FILE FORMAT DESCRIPTION
INFO: s2_semi_mgau.c(991): Rows: 512, Columns: 6138
INFO: s2_semi_mgau.c(1023): Using memory-mapped I/O for senones
INFO: s2_semi_mgau.c(1294): Maximum top-N: 4 Top-N beams: 0 0 0
INFO: dict.c(320): Allocating 4110 * 32 bytes (128 KiB) for word entries
INFO: dict.c(333): Reading main dictionary: /var/mobile/Containers/Data/Application/662EA17C-590D-4F09-9312-520CD035DE4B/Library/Caches/lession_vocal_A_0.dic
INFO: dict.c(213): Allocated 0 KiB for strings, 0 KiB for phones
INFO: dict.c(336): 1 words read
INFO: dict.c(342): Reading filler dictionary: /private/var/mobile/Containers/Bundle/Application/204102C4-D4A7-4B27-ABC4-9072CA281718/APP_NAME.app/AcousticModelEnglish.bundle/noisedict
INFO: dict.c(213): Allocated 0 KiB for strings, 0 KiB for phones
INFO: dict.c(345): 9 words read
INFO: dict2pid.c(396): Building PID tables for dictionary
INFO: dict2pid.c(406): Allocating 46^3 * 2 bytes (190 KiB) for word-initial triphones
INFO: dict2pid.c(132): Allocated 51152 bytes (49 KiB) for word-final triphones
INFO: dict2pid.c(196): Allocated 51152 bytes (49 KiB) for single-phone word triphones
INFO: ngram_model_arpa.c(79): No \data\ mark in LM file
INFO: ngram_model_dmp.c(166): Will use memory-mapped I/O for LM file
INFO: ngram_model_dmp.c(220): ngrams 1=3, 2=2, 3=1
INFO: ngram_model_dmp.c(266):        3 = LM.unigrams(+trailer) read
INFO: ngram_model_dmp.c(312):        2 = LM.bigrams(+trailer) read
INFO: ngram_model_dmp.c(338):        1 = LM.trigrams read
INFO: ngram_model_dmp.c(363):        2 = LM.prob2 entries read
INFO: ngram_model_dmp.c(383):        3 = LM.bo_wt2 entries read
INFO: ngram_model_dmp.c(403):        2 = LM.prob3 entries read
INFO: ngram_model_dmp.c(431):        1 = LM.tseg_base entries read
INFO: ngram_model_dmp.c(487):        3 = ascii word strings read
INFO: ngram_search_fwdtree.c(99): 0 unique initial diphones
INFO: ngram_search_fwdtree.c(148): 0 root, 0 non-root channels, 11 single-phone words
INFO: ngram_search_fwdtree.c(186): Creating search tree
INFO: ngram_search_fwdtree.c(192): before: 0 root, 0 non-root channels, 11 single-phone words
INFO: ngram_search_fwdtree.c(326): after: max nonroot chan increased to 128
ERROR: "ngram_search_fwdtree.c", line 336: No word from the language model has pronunciation in the dictionary
INFO: ngram_search_fwdtree.c(339): after: 0 root, 0 non-root channels, 10 single-phone words
INFO: ngram_search_fwdflat.c(157): fwdflat: min_ef_width = 4, max_sf_win = 25
2015-08-03 19:27:15.363 APP_NAME[49252:4174708] Restoring SmartCMN value of 55.322021
2015-08-03 19:27:15.363 APP_NAME[49252:4174708] Listening.
2015-08-03 19:27:15.364 APP_NAME[49252:4174708] Project has these words or phrases in its dictionary:
A
2015-08-03 19:27:15.364 APP_NAME[49252:4174708] Recognition loop has started
2015-08-03 19:27:15.368 APP_NAME[49252:4174534] Pocketsphinx is now listening.
2015-08-03 19:27:20.707 APP_NAME[49252:4174708] Speech detected...
2015-08-03 19:27:20.708 APP_NAME[49252:4174708] Pocketsphinx heard "" with a score of (-1580) and an utterance ID of 0.

2015-08-03 19:27:20.802 APP_NAME[49252:4174708] Pocketsphinx heard "" with a score of (-2757) and an utterance ID of 1.
2015-08-03 19:27:20.897 APP_NAME[49252:4174708] Pocketsphinx heard "" with a score of (-4058) and an utterance ID of 2.
2015-08-03 19:27:21.056 APP_NAME[49252:4174708] Pocketsphinx heard "" with a score of (-6635) and an utterance ID of 3.
2015-08-03 19:27:21.169 APP_NAME[49252:4174708] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 55.32  0.00  0.00  0.00  0.00  0.00  0.00  0.00  0.00  0.00  0.00  0.00  0.00 >
INFO: cmn_prior.c(149): cmn_prior_update: to   < 49.58 16.76 -1.75  9.75 -9.41  9.58  1.37  2.40 -8.62  6.90 -3.80 -2.46  6.97 >
INFO: ngram_search_fwdtree.c(1550):      483 words recognized (9/fr)
INFO: ngram_search_fwdtree.c(1552):     1585 senones evaluated (29/fr)
INFO: ngram_search_fwdtree.c(1556):      503 channels searched (9/fr), 0 1st, 503 last
INFO: ngram_search_fwdtree.c(1559):      503 words for which last channels evaluated (9/fr)
INFO: ngram_search_fwdtree.c(1561):        0 candidate words for entering last phone (0/fr)
INFO: ngram_search_fwdtree.c(1564): fwdtree 1.15 CPU 2.137 xRT
INFO: ngram_search_fwdtree.c(1567): fwdtree 5.64 wall 10.438 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 3 words
INFO: ngram_search_fwdflat.c(938):      400 words recognized (7/fr)
INFO: ngram_search_fwdflat.c(940):     1638 senones evaluated (30/fr)
INFO: ngram_search_fwdflat.c(942):      519 channels searched (9/fr)
INFO: ngram_search_fwdflat.c(944):      519 words searched (9/fr)
INFO: ngram_search_fwdflat.c(947):      121 word transitions (2/fr)
INFO: ngram_search_fwdflat.c(950): fwdflat 0.01 CPU 0.022 xRT
INFO: ngram_search_fwdflat.c(953): fwdflat 0.01 wall 0.021 xRT
INFO: ngram_search.c(1215): </s> not found in last frame, using A.52 instead
INFO: ngram_search.c(1268): lattice start node <s>.0 end node A.49
INFO: ngram_search.c(1294): Eliminated 1 nodes before end node
INFO: ngram_search.c(1399): Lattice has 99 nodes, 600 links
2015-08-03 19:27:21.185 APP_NAME[49252:4174534] pocketsphinxDidDetectFinishedSpeech
(lldb) 

and call stack:

Thread 14Queue : com.apple.root.default-qos (concurrent)
#0	0x00000001004ec83c in logmath_add ()
#1	0x00000001004c9128 in ps_lattice_bestpath ()
#2	0x00000001004b556c in ___lldb_unnamed_function157$$StampDrill ()
#3	0x000000010049ef3c in ps_get_hyp_vnnetvisstampdrill ()
#4	0x000000010049e69c in ___lldb_unnamed_function74$$StampDrill ()
#5	0x00000001004a04e8 in ___lldb_unnamed_function78$$StampDrill ()
#6	0x00000001004a0758 in ___lldb_unnamed_function82$$StampDrill ()
#7	0x00000001013d4f94 in _dispatch_client_callout ()
#8	0x00000001013ec848 in _dispatch_source_latch_and_call ()
#9	0x00000001013d71c0 in _dispatch_source_invoke ()
#10	0x00000001013e25d4 in _dispatch_root_queue_drain ()
#11	0x00000001013e4248 in _dispatch_worker_thread3 ()
#12	0x000000019496122c in _pthread_wqthread ()

Thank you very much