video - My QTKit is crashing while popping down a menu. JVT - Lib (H.264) encoding is responsible for this issue. What can I do? -
i use h.264
encoding using qtkit
in application.
this application crashing "segmentation fault
" or "exec_bad_access
".
my debugger shows crash @ place:
0x7fff801fea94: je 0x7fff801feba6 ; jvtlib_101906(jvtlib_100990*, jvtlib_101383 const*, jvtlib_101895*) + 3886 ( ... ) 0x7fff801feaba: movl $1, 24(%r13)
the last "movl
" line causes crash. 1 can see in comment, jvt
module h.264
encoder (i assume).
what don't understand is: code worked long time. since yesterday it's unstable. if use "instruments" code running fine. there must issue popping menu. uncommenting videoroutines works fine (that means menu has no memory issue)
understanding "magic" behind qtkit
exciting.
edit: can see object names now: crash happens in 'qtbackgroundqueuerun
' thread, , object is: 'pbremoveobjectinternal(fsrefparam*, unsigned char)
'
solution: hi everyone. found problem! long , hard search on goole , co.
qtkit
don't bein interrupted timers. if compile project in 'debug' mode debug symbols included , i.e. gdb running, app crash!
nslog working in 'release' mode. debugging issues work. if need 'really' debug code, add makro definitions project settings qtcapturemoviefileoutput related code being removed. , you're done. wonder why qtkit sensitive these things. know quicktime old code , apple doing modernism quicktime x. can hope better releases next time.
Comments
Post a Comment