언어 설정

Menu
Sites
Language
Application is terminated randomly

Hello,

I am developing Wearable Web Application,

that has Motion capturing, Stop watch, Measuring the HeartRate, Audio recording and Samsung Accessory Protocol...

Motion capturing means that I have used Motion Sensor to measure X,Y,Z acceleration.

 

But I faced a fatal problem, Application is terminated randomly

It seems that cause of terminated is Motion part.

Because I launched my project without below code, it works well, not terminated.

window.addEventListener("devicemotion", onDeviceMotion, true);

What is the cause of this issue ... heavy load of capturing data sensored by Motion Sensor.???

 

And I got some important logs when application is terminated.

08-30 15:18:53.035 : WARN / MM_SESSIONMGR ( 6810 : 6810 ) : audio-session-mgr.c: __ASM_signal_handler(2267) > ENTER, sig.num(11)
08-30 15:18:53.035 : WARN / MM_SESSIONMGR ( 6810 : 6810 ) : audio-session-mgr.c: __ASM_signal_handler(2331) > LEAVE
08-30 15:18:53.260 : WARN / CRASH_DAEMON ( 238 : 238 ) : worker.c: do_crash_worker(866) > (SWebProcess68101440915533)
08-30 15:18:53.320 : ERROR / EFL ( 6809 : 6809 ) : EvasGL<6809> evas_gl_api_ext.c:110 evgl_evasglDestroyImage() Unable to retrive Current Engine
08-30 15:18:53.320 : ERROR / EFL ( 6809 : 6809 ) : EvasGL<6809> evas_gl_api_ext.c:110 evgl_evasglDestroyImage() Unable to retrive Current Engine
08-30 15:18:53.320 : ERROR / EFL ( 6809 : 6809 ) : EvasGL<6809> evas_gl_api_ext.c:110 evgl_evasglDestroyImage() Unable to retrive Current Engine
08-30 15:18:53.325 : ERROR / EFL ( 6809 : 6809 ) : EvasGL<6809> evas_gl_api_ext.c:110 evgl_evasglDestroyImage() Unable to retrive Current Engine
08-30 15:18:53.325 : ERROR / EFL ( 6809 : 6809 ) : EvasGL<6809> evas_gl_api_ext.c:110 evgl_evasglDestroyImage() Unable to retrive Current Engine
08-30 15:18:53.325 : ERROR / EFL ( 6809 : 6809 ) : EvasGL<6809> evas_gl_api_ext.c:110 evgl_evasglDestroyImage() Unable to retrive Current Engine
08-30 15:18:53.325 : ERROR / EFL ( 6809 : 6809 ) : EvasGL<6809> evas_gl_api_ext.c:110 evgl_evasglDestroyImage() Unable to retrive Current Engine
08-30 15:18:53.325 : ERROR / EFL ( 6809 : 6809 ) : EvasGL<6809> evas_gl_api_ext.c:110 evgl_evasglDestroyImage() Unable to retrive Current Engine
08-30 15:18:53.520 : ERROR / SENSOR ( 475 : 6932 ) : csock.cpp:recv(343)> recv(24, 0x0x56758 + 0, 8 - 0) = 0, beacuse the peer performed shutdown!
08-30 15:18:53.520 : ERROR / SENSOR ( 475 : 6932 ) : cserver.cpp:cb_ipc_stop(876)> Connection broken before unregistering events, reg_state : 0x10002
08-30 15:18:53.520 : ERROR / SENSOR ( 475 : 6932 ) : cserver.cpp:cb_ipc_stop(897)> Does not receive cmd_stop before connection broken for accel_datastream!! 
08-30 15:18:53.525 : ERROR / SENSOR ( 475 : 6936 ) : csock.cpp:recv(343)> recv(32, 0x0x56388 + 0, 8 - 0) = 0, beacuse the peer performed shutdown!
08-30 15:18:53.525 : ERROR / SENSOR ( 475 : 6936 ) : cserver.cpp:cb_ipc_stop(897)> Does not receive cmd_stop before connection broken for gyro_datastream!! 
08-30 15:18:53.535 : ERROR / W-LAUNCHER ( 416 : 416 ) : main.c: app_resume(227) > [app_resume:227] app_resume
08-30 15:18:53.535 : ERROR / W-LAUNCHER ( 416 : 416 ) : main.c: _app_resume(86) > [_app_resume:86] _app_resume

 

What is the problem with this application, and What should I do.

Please let me know how to solve this fatal problem.

Thanks for reading, and have a nice day^^

 

ps. I found a url that has a similar issue with me.

http://iswwwup.com/t/028798f1bc97/tizen-samsung-gear-2-unexpected-application-shutdown.html

They said device-profiles file issue due to such a name "device-profiles (1).xml".

But I checked my "device-profiles" named right, and cannot solve the problem yet.

 

Edited by: Byung geun Lee on 30 8월, 2015
답변 바로가기

Responses

2 댓글
Mark as answer
daniel kim

Hi,

I found that below link has the same problem of you case.   

          http://quabr.com/28453164/samsung-gear-2-unexpected-application-shutdown

But I can't observe the problem with below code in Gear S.

So I guess that it occur in Gear 2.

 

 

var logResult = document.getElementById("test");
var myuHeart;
window.webapis.motion.start("HRM", onchangedCB);

    function onchangedCB(hrmInfo)
    {
        myuHeart = hrmInfo.heartRate ;

    }
     function deviceMotionEvent(e) {

        Ax = e.accelerationIncludingGravity.x / 9.8;
        Ay = e.accelerationIncludingGravity.y / 9.8;
        Az = e.accelerationIncludingGravity.z / 9.8;
        Wx = e.rotationRate.alpha;
        Wy = e.rotationRate.beta;
        Wz = e.rotationRate.gamma;

        console.log(Ax+ "," + Ay+ "," + Az+ "," + myuHeart);
     }

 window.addEventListener("devicemotion", deviceMotionEvent, true);

 }

 

Regards

Byung geun Lee

What a glad to hear that !

Thanks for your kindness effort, daniel Kim.

You always help me a lot at work !