2015-12-10 11:37:30 -0600 | received badge | ● Editor (source) |
2015-12-10 08:19:54 -0600 | asked a question | Android SIGSEGV on Gaussian filter (Issue appears to be inside Mat class) Hi all, I have an android application with a JavaCameraView in my activity and I'm modifying the camera feed through onCameraFrame. I'm applying a Gaussian Blur followed by a Laplacian filter and merging the two together. Due to this being quite computationally heavy I've offloaded this processing onto another thread which runs every other camera frame and updates a Mat field variable (I don't mind the Laplaced image being a bit behind the camera feed). The app will run perfectly fine for around 30 seconds or so and then crash. EDIT: I've done some more investigation and this isn't the only problem that there appears to be. Removing the Gaussian filter statement merely serves to delay the inevitable as there's another issue that occurs in addWeighted when it calls Mat::deallocate (which in turn runs MatAllocator::unmap where I get the same problem. I've traced this back through LogCat and have the following stack trace:
|