Hi RaviY, Thanks for the fast response, i've tried what you suggested, but crash is the same here is a tracelog:
08-18 03:43:29.678: INFO/DEBUG(551): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 08-18 03:43:29.678: INFO/DEBUG(551): Build fingerprint: 'generic/ generic/generic/:1.5/CUPCAKE/eng.shadow.20090526.233815:eng/test-keys' 08-18 03:43:29.678: INFO/DEBUG(551): pid: 556, tid: 779 >>> /system/ bin/mediaserver <<< 08-18 03:43:29.688: INFO/DEBUG(551): signal 11 (SIGSEGV), fault addr deadbaad 08-18 03:43:29.688: INFO/DEBUG(551): r0 00000003 r1 deadbaad r2 00000027 r3 ffff6150 08-18 03:43:29.688: INFO/DEBUG(551): r4 ffff6128 r5 afe2fef8 r6 afe39dd0 r7 000432b0 08-18 03:43:29.688: INFO/DEBUG(551): r8 40307b24 r9 afe39dd0 10 a9d2856d fp 405073fc 08-18 03:43:29.688: INFO/DEBUG(551): ip 0000001a sp 40507370 lr afe1ff33 pc afe1066a cpsr 20000030 08-18 03:43:29.746: INFO/DEBUG(551): #00 pc 0001066a / system/lib/libc.so 08-18 03:43:29.746: INFO/DEBUG(551): #01 pc 00027f10 / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.746: INFO/DEBUG(551): #02 pc 00027c98 / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.756: INFO/DEBUG(551): #03 pc 000295c0 / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.756: INFO/DEBUG(551): #04 pc 00028dcc / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.756: INFO/DEBUG(551): #05 pc 00028754 / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.768: INFO/DEBUG(551): #06 pc 0001facc / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.768: INFO/DEBUG(551): #07 pc 00020080 / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.778: INFO/DEBUG(551): #08 pc 00020dec / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.778: INFO/DEBUG(551): #09 pc 00014be0 / system/lib/libopencoremkvsplitter.so 08-18 03:43:29.778: INFO/DEBUG(551): #10 pc 0001bad4 / system/lib/libopencoremkvrecognizer.so 08-18 03:43:29.787: INFO/DEBUG(551): #11 pc 000ec4bc / system/lib/libopencore_player.so 08-18 03:43:29.787: INFO/DEBUG(551): #12 pc 000d75ee / system/lib/libopencore_player.so 08-18 03:43:29.797: INFO/DEBUG(551): #13 pc 000e0238 / system/lib/libopencore_player.so 08-18 03:43:29.797: INFO/DEBUG(551): #14 pc 000ecdc0 / system/lib/libopencore_player.so 08-18 03:43:29.807: INFO/DEBUG(551): #15 pc 000594b2 / system/lib/libopencore_common.so 08-18 03:43:29.807: INFO/DEBUG(551): #16 pc 00059568 / system/lib/libopencore_common.so 08-18 03:43:29.807: INFO/DEBUG(551): #17 pc 0005961e / system/lib/libopencore_common.so 08-18 03:43:29.817: INFO/DEBUG(551): #18 pc 000f04fc / system/lib/libopencore_player.so 08-18 03:43:29.817: INFO/DEBUG(551): #19 pc 000f05c4 / system/lib/libopencore_player.so 08-18 03:43:29.826: INFO/DEBUG(551): #20 pc 000285d4 / system/lib/libutils.so 08-18 03:43:29.826: INFO/DEBUG(551): #21 pc 0000f880 / system/lib/libc.so 08-18 03:43:29.826: INFO/DEBUG(551): #22 pc 0000f3f4 / system/lib/libc.so 08-18 03:43:29.836: INFO/DEBUG(551): stack: 08-18 03:43:29.836: INFO/DEBUG(551): 40507330 00044e08 [heap] 08-18 03:43:29.836: INFO/DEBUG(551): 40507334 afe0e940 /system/ lib/libc.so 08-18 03:43:29.846: INFO/DEBUG(551): 40507338 afe3cecc 08-18 03:43:29.846: INFO/DEBUG(551): 4050733c afe39ff0 08-18 03:43:29.846: INFO/DEBUG(551): 40507340 0000000b 08-18 03:43:29.846: INFO/DEBUG(551): 40507344 afe13e4d /system/ lib/libc.so 08-18 03:43:29.846: INFO/DEBUG(551): 40507348 000000da 08-18 03:43:29.846: INFO/DEBUG(551): 4050734c 45796344 08-18 03:43:29.846: INFO/DEBUG(551): 40507350 405075d8 08-18 03:43:29.846: INFO/DEBUG(551): 40507354 ffff6128 08-18 03:43:29.858: INFO/DEBUG(551): 40507358 afe2fef8 /system/ lib/libc.so 08-18 03:43:29.858: INFO/DEBUG(551): 4050735c afe39dd0 08-18 03:43:29.858: INFO/DEBUG(551): 40507360 000432b0 [heap] 08-18 03:43:29.858: INFO/DEBUG(551): 40507364 afe10663 /system/ lib/libc.so 08-18 03:43:29.858: INFO/DEBUG(551): 40507368 df002777 08-18 03:43:29.868: INFO/DEBUG(551): 4050736c e3a070ad 08-18 03:43:29.868: INFO/DEBUG(551): #00 40507370 0000000c 08-18 03:43:29.868: INFO/DEBUG(551): 40507374 80a3a948 08-18 03:43:29.877: INFO/DEBUG(551): 40507378 405073a4 08-18 03:43:29.877: INFO/DEBUG(551): 4050737c 40507388 08-18 03:43:29.877: INFO/DEBUG(551): 40507380 0000005c 08-18 03:43:29.877: INFO/DEBUG(551): 40507384 fffffbdf 08-18 03:43:29.877: INFO/DEBUG(551): 40507388 ffffffff 08-18 03:43:29.887: INFO/DEBUG(551): 4050738c 00045a40 [heap] 08-18 03:43:29.887: INFO/DEBUG(551): 40507390 a1c9551a 08-18 03:43:29.887: INFO/DEBUG(551): 40507394 80a2ff14 /system/ lib/libopencoremkvsplitter.so 08-18 03:43:29.887: INFO/DEBUG(551): #01 40507398 00000000 08-18 03:43:29.887: INFO/DEBUG(551): 4050739c 00000001 08-18 03:43:29.887: INFO/DEBUG(551): 405073a0 00000000 08-18 03:43:29.897: INFO/DEBUG(551): 405073a4 80a2fc9c /system/ lib/libopencoremkvsplitter.so 08-18 03:43:30.318: WARN/MediaPlayer(742): MediaPlayer server died! -- Best regards. On 18 авг, 10:34, RaviY <yend...@pv.com> wrote: > Can you try > > OSCL_TRY(err, > m_pMyTimer = OSCL_NEW ( OsclTimer<OsclMemAllocator>, > ("MyTimer", 1000) ); > > -Ravi > > On Aug 17, 9:40 pm, shadow <yuri.bul...@gmail.com> wrote: > > > > > Hi All, > > > I'm facing a problem with creating active objects inside open core > > node, i've a crash during constructing one and on AddToScheduler() > > call inside ThreadLogon(). Here is a code example: > > > class Cmynode : public OsclTimerObject, > > public PVMFNodeInterface, > > public OsclTimerObserver, > > ........ > > { > > public: > > Cmynode( int32 &aPriority ) > > : OsclTimerObject(aPriority, "MyNode") > > { > > int32 err; > > OSCL_TRY(err, > > m_pMyTimer = OSCL_NEW > > ( OsclTimer<OsclMemAllocator>, > > ("MyTimer") ); // crash on > > constructing > > > // timer initialization > > ); > > > } > > > ~Cmynode() { > > //destructor code} > > > // PVMFNodeInterface implementation > > public: > > virtual PVMFStatus ThreadLogon() { > > > if ( !IsAdded() ) { > > AddToScheduler(); // crash in this call > > } > > > return PVMFSuccess; > > } > > > virtual PVMFStatus ThreadLogoff() { > > > if ( IsAdded() ) { > > > Cancel(); > > RemoveFromScheduler(); > > } > > > return PVMFSuccess; > > } > > > // OsclTimerObject implementation > > protected: > > virtual void Run() { > > } > > > private: > > OsclTimer<OsclMemAllocator> *m_pMyTimer; > > > }; > > > -- > > Best regards.- Скрыть цитируемый текст - > > - Показать цитируемый текст - --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---