{"action":"created","issue":{"url":"https://api.github.com/repos/opencv/opencv/issues/7400","repository_url":"https://api.github.com/repos/opencv/opencv","labels_url":"https://api.github.com/repos/opencv/opencv/issues/7400/labels{/name}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/7400/comments","events_url":"https://api.github.com/repos/opencv/opencv/issues/7400/events","html_url":"https://github.com/opencv/opencv/issues/7400","id":181133255,"number":7400,"title":"Error in native library: Java_org_opencv_videoio_VideoCapture_open_11","user":{"login":"toaditoad","id":15110724,"avatar_url":"https://avatars.githubusercontent.com/u/15110724?v=3","gravatar_id":"","url":"https://api.github.com/users/toaditoad","html_url":"https://github.com/toaditoad","followers_url":"https://api.github.com/users/toaditoad/followers","following_url":"https://api.github.com/users/toaditoad/following{/other_user}","gists_url":"https://api.github.com/users/toaditoad/gists{/gist_id}","starred_url":"https://api.github.com/users/toaditoad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toaditoad/subscriptions","organizations_url":"https://api.github.com/users/toaditoad/orgs","repos_url":"https://api.github.com/users/toaditoad/repos","events_url":"https://api.github.com/users/toaditoad/events{/privacy}","received_events_url":"https://api.github.com/users/toaditoad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T11:57:08Z","updated_at":"2016-10-05T13:01:39Z","closed_at":null,"body":"When trying to open a video file with the following Java/Scala code, it throws an error in the native OpenCV library. \r\n\r\n```.scala\r\nval capture = new VideoCapture()\r\ncapture.open(\"file.mov\")\r\n```\r\n\r\n##### Error (full log: [hs_err_pid91421.txt](https://github.com/opencv/opencv/files/511033/hs_err_pid91421.txt))\r\n```\r\n#\r\n# A fatal error has been detected by the Java Runtime Environment:\r\n#\r\n#  SIGSEGV (0xb) at pc=0x00000001195f34ae, pid=91421, tid=0x000000000000cb03\r\n#\r\n# JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14)\r\n# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode bsd-amd64 compressed oops)\r\n# Problematic frame:\r\n# C  [libopencv_java310.dylib+0xed4ae]  Java_org_opencv_videoio_VideoCapture_open_11+0xae\r\n#\r\n# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\r\n#\r\n# If you would like to submit a bug report, please visit:\r\n#   http://bugreport.java.com/bugreport/crash.jsp\r\n# The crash happened outside the Java Virtual Machine in native code.\r\n# See problematic frame for where to report the bug.\r\n#\r\n```\r\n\r\n##### System information (version)\r\n<!-- Example\r\n- OpenCV => 3.1\r\n- Operating System / Platform => Windows 64 Bit\r\n- Compiler => Visual Studio 2015\r\n-->\r\n\r\n- OpenCV => 3.1 (master branch as of today)\r\n- Operating System / Platform => OS X El Capitan Version 10.11.6\r\n- Compiler => \r\n```\r\n$ clang --version\r\nApple LLVM version 8.0.0 (clang-800.0.38)\r\nTarget: x86_64-apple-darwin15.6.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\n```\r\n\r\n##### Detailed description\r\nI have used the CMake Gui to specify the settings, Homebrew to install relevant most recent packages (including ffmpeg 3.1.4).\r\n\r\nI had it working in a different master pull but there it does not work well with the contrib, especially the tracker. Updating both repositories to the most recent master branches, let the tracker work correctly but not the simple VideoCapture.open().\r\n\r\nMaybe, it is irrelevant but what I noticed is that the two CMakeCache and CMakeVars files differ in two entries. However, I cannot update the current values of the current build try like they seem to have worked with the old one since CMake seems to override it somehow.\r\n```\r\n# current not working version\r\nOPENCV_MODULE_opencv_highgui_OPT_DEPS=opencv_imgcodecs;opencv_videoio\r\nOPENCV_MODULE_opencv_highgui_REQ_DEPS=opencv_imgproc\r\n\r\n# old but working version\r\nOPENCV_MODULE_opencv_highgui_OPT_DEPS=\r\nOPENCV_MODULE_opencv_highgui_REQ_DEPS=opencv_imgproc;opencv_imgcodecs;opencv_videoio\r\n```\r\n\r\n[CMakeVars.txt](https://github.com/opencv/opencv/files/511040/CMakeVars.txt)\r\n\r\nAnyone any ideas where the problem might be? What other information can I provide?"},"comment":{"url":"https://api.github.com/repos/opencv/opencv/issues/comments/251667512","html_url":"https://github.com/opencv/opencv/issues/7400#issuecomment-251667512","issue_url":"https://api.github.com/repos/opencv/opencv/issues/7400","id":251667512,"user":{"login":"toaditoad","id":15110724,"avatar_url":"https://avatars.githubusercontent.com/u/15110724?v=3","gravatar_id":"","url":"https://api.github.com/users/toaditoad","html_url":"https://github.com/toaditoad","followers_url":"https://api.github.com/users/toaditoad/followers","following_url":"https://api.github.com/users/toaditoad/following{/other_user}","gists_url":"https://api.github.com/users/toaditoad/gists{/gist_id}","starred_url":"https://api.github.com/users/toaditoad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toaditoad/subscriptions","organizations_url":"https://api.github.com/users/toaditoad/orgs","repos_url":"https://api.github.com/users/toaditoad/repos","events_url":"https://api.github.com/users/toaditoad/events{/privacy}","received_events_url":"https://api.github.com/users/toaditoad/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T13:01:39Z","updated_at":"2016-10-05T13:01:39Z","body":"Yes, I also had the XCode 8 issue but it seems to be resolved with #7159 and #7266 \r\n\r\nJust to make it clear: I have no compilation error - it happens when running the application.\r\n\r\nDo I get you correctly that you say the \"original\" Java wrappers provided by this master branch seem to be broken whereas the JavaCV wrappers might be a workaround? It is a completely independent project, right?"}}
{"actor":{"display_login":"toaditoad"}}