{"action":"opened","issue":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/584","repository_url":"https://api.github.com/repos/NativeScript/android-runtime","labels_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/584/comments","events_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/584/events","html_url":"https://github.com/NativeScript/android-runtime/issues/584","id":183014788,"number":584,"title":"javacv not working on nativescript","user":{"login":"matart15","id":17027219,"avatar_url":"https://avatars.githubusercontent.com/u/17027219?v=3","gravatar_id":"","url":"https://api.github.com/users/matart15","html_url":"https://github.com/matart15","followers_url":"https://api.github.com/users/matart15/followers","following_url":"https://api.github.com/users/matart15/following{/other_user}","gists_url":"https://api.github.com/users/matart15/gists{/gist_id}","starred_url":"https://api.github.com/users/matart15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matart15/subscriptions","organizations_url":"https://api.github.com/users/matart15/orgs","repos_url":"https://api.github.com/users/matart15/repos","events_url":"https://api.github.com/users/matart15/events{/privacy}","received_events_url":"https://api.github.com/users/matart15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-14T10:21:23Z","updated_at":"2016-10-14T10:21:23Z","closed_at":null,"body":"<!-- Dear friend, we, the rest of the NativeScript community really appreciate your feedback! While we are doing all we can to take care of every issue, sometimes we get overwhelmed. Because of that, we will consider issues that are not constructive or problems that cannot be reproduced \"dead\". Additionally, we will treat feature requests or bug reports with unanswered questions regarding the behavior/reproduction for more than 20 days \"dead\". All \"dead\" issues will get closed. -->\r\n\r\n## Please, provide the details below:\r\n\r\n### Did you verify this is a real problem by searching [Stack Overflow](http://stackoverflow.com/questions/tagged/nativescript) and the [other open issues in this repo](https://github.com/NativeScript/nativescript/issues)?\r\nyes\r\n\r\n### Tell us about the problem\r\n<!--Please, ensure your title is less than 63 characters long and starts with a capital\r\nletter. -->\r\nNativescript android javacv not working\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 2.3.0\r\n- Cross-platform modules: \"2.3.0\"\r\n- Runtime(s): \"2.3.0\"\r\n\r\n### Did the error happen while the app was being constructed? (buildtime error)\r\nNo\r\n\r\n### Did the error happen while the app was executing? (runtime error)\r\n\r\n```\r\nRun command: `adb logcat`.\r\n10-14 18:33:05.145   204 10726 D QCamera3Stream: static void* qcamera::QCamera3Stream::dataProcRoutine(void*): Exit\r\n10-14 18:33:05.146   204  5898 E mm-camera-intf: mm_camera_poll_thread_del_poll_fd: invalid handler 51712 (0)\r\n10-14 18:33:05.146   217 10656 I mm-camera: mct_pipeline_process_set:command=8000009\r\n10-14 18:33:05.146   217 10656 I mm-camera: mct_pipeline_process_set: stream_type = 6, streamid 4\r\n10-14 18:33:05.146   217 10656 I mm-camera-sensor: module_sensor_module_process_event:2129 ide 10004 MCT_EVENT_CONTROL_STREAMOFF\r\n10-14 18:33:05.146   217 10656 I mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x10004, STREAMOFF\r\n10-14 18:33:05.146   217 10656 I mm-camera: cpp_module_handle_streamoff_event:2146, info: doing stream-off for identity 0x10004\r\n10-14 18:33:05.146   217 10656 I mm-camera: cpp_module_handle_streamoff_event:2220, info: stream-off done for identity 0x10004\r\n10-14 18:33:05.146   217 10656 I mm-camera: isp_streamoff: E, session_id = 1, stream_id = 4, stream_type = 6\r\n10-14 18:33:05.211   777   796 W WindowAnimator: Failed to dispatch window animation state change.\r\n10-14 18:33:05.211   777   796 W WindowAnimator: android.os.DeadObjectException\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.os.BinderProxy.transactNative(Native Method)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.os.BinderProxy.transact(Binder.java:503)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.view.Choreographer.doCallbacks(Choreographer.java:670)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.view.Choreographer.doFrame(Choreographer.java:603)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.os.Handler.handleCallback(Handler.java:739)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.os.Handler.dispatchMessage(Handler.java:95)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.os.Looper.loop(Looper.java:148)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at android.os.HandlerThread.run(HandlerThread.java:61)\r\n10-14 18:33:05.211   777   796 W WindowAnimator:        at com.android.server.ServiceThread.run(ServiceThread.java:46)\r\n10-14 18:33:05.279   217 10656 I mm-camera: ispif_streamoff: session_id = 1, active_streams = 1\r\n10-14 18:33:05.279   217 10656 I mm-camera: mct_pipeline_process_set: Stream on/off returned\r\n10-14 18:33:05.295   204 10737 D QCamera3Stream: static void* qcamera::QCamera3Stream::dataProcRoutine(void*): Exit\r\n10-14 18:33:05.296   204  5898 E mm-camera-intf: mm_camera_poll_thread_del_poll_fd: invalid handler 50688 (0)\r\n10-14 18:33:05.296   217 10656 I mm-camera: mct_pipeline_process_set:command=8000009\r\n```\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nI successfully called simple android Activity with button from Nativescript. I exported aar and imported it as plugin.\r\n\r\nThen i tried to call custom camera Activity from Nativescript.\r\nthis activity https://github.com/CrazyOrr/FFmpegRecorder\r\n\r\n    animationsFinished: function () {\r\n        const intent = new android.content.Intent(com.tns.NativeScriptApplication.getInstance().getApplicationContext(), java.lang.Class.forName(\"com.tns.NativeScriptActivity\"))\r\n        intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);\r\n        com.tns.NativeScriptApplication.getInstance().startActivity(intent);\r\n    }\r\n\r\nActivity opens with black camera and then gives me this error\r\n\r\n    java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil\r\n    at java.lang.Class.classForName(Native Method)\r\n    at java.lang.Class.forName(Class.java:309)\r\n    at org.bytedeco.javacpp.Loader.load(Loader.java:413)\r\n    at org.bytedeco.javacpp.Loader.load(Loader.java:381)\r\n    at org.bytedeco.javacpp.avcodec$AVPacket.<clinit>(avcodec.java:1650)\r\n\r\n\r\nIt works without problem from android studio. But not working with `tns run android`\r\n\r\ncamera, external storage permissions are given and on for application\r\n\r\n\r\n----------\r\n I did the trick from https://github.com/bytedeco/javacv/issues/133 : moved *.so files to \"app/src/main/jniLibs/armeabi-v7a\" and \"app/src/main/jniLibs/armeabi\" folders and it seems not working\r\n"}}
{"actor":{"display_login":"matart15"}}