-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in Show and Capture camera #2
Comments
That's really bizarre. The color format is set 10 lines before the crash. What device and OS version? Can you enable the VERBOSE logging in VideoEncoderCore -- I'd like to see what comes out of the "format" log message on line 73. |
It appeared both in Nexus 4 with 4.4.2 and in Moto X with 4.3 . This is the verbose log from the crash. Tested on Nexus 4 with 4.4.2. In my Nexus 7 with 4.3 it seems to work without a crash though.
|
The problem is this:
For some reason you're getting the software AVC codec rather than the hardware-accelerated implementation. The software codec doesn't support input from surfaces. That's going to prevent a number of things from working, including the movie generation (which might be related to the other bug you filed). My guess would be that something running in the background is using all available hardware encoder resources. I don't know an easy way to figure out what. Since this is affecting multiple devices it could be something that you have installed or run on them. I've run Grafika on N4, N5, N7(2012/2013), N10, Galaxy Nexus, Moto X, and my wife's Galaxy S4, and haven't encountered any problems, but I have very few Play Store apps installed on them. I down-revved my N4 just now and didn't see a failure. |
I'm closing these since they seem to be related to some of my devices. :) I'll comment if I find out what is causing the usage of software encoder. |
I'll add "to do" items to handle the failures better. Crashing mysteriously is Bad (even for Grafika, which makes few claims to robustness). |
Hi all, |
If you're running Android 4.2.2, the surface-input feature doesn't exist at all (it was added in 4.3 / API 18). AFAIK Grafika won't work on any of the emulators, as all of them rely on the software codecs. |
I got it ! thx for your reply |
If I comment the line 121
ContentManager.getInstance().createAll(this);
where the app crashes the list menu appears correctly. If I then choseShow + capture camera
it shows the preview correctly. I then press the "Record" button and get the following exception and the app crashes.The text was updated successfully, but these errors were encountered: