After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 708015 - androidmedia: "Failed to call Java method"
androidmedia: "Failed to call Java method"
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal minor
: 1.4.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-13 09:38 UTC by Sebastian Dröge (slomo)
Modified: 2014-09-01 06:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2013-09-13 09:38:32 UTC
Happens on many devices apparently, like the new Nexus 7 (2013 version):

09-13 16:50:19.434: E/GStreamer+amc(25695): 0:00:04.957153320 0x75a26e00 gstamc.c:702:gst_amc_codec_dequeue_output_buffer Failed to call Java method


Should add (as a first step) something that prints the Java exception including backtrace and everything whenever a method call fails or we get an exception elsewhere.
Comment 1 Sebastian Dröge (slomo) 2013-09-13 10:11:04 UTC
From the gst-android mailing list:

Here is what I got:
gst_amc_codec_dequeue_output_buffer Failed to call Java method
  java.lang.IllegalStateException
    at android.media.MediaCodec.dequeueOutputBuffer(Native Method)
    at dalvik.system.NativeStart.run(Native Method)

gst_amc_codec_dequeue_input_buffer Failed to call Java method
  java.lang.IllegalStateException
    at android.media.MediaCodec.dequeueInputBuffer(Native Method)
    at dalvik.system.NativeStart.run(Native Method)


Not very useful :(
Comment 2 Sebastian Dröge (slomo) 2013-09-27 13:00:26 UTC
Does not seem to cause bigger problems though, downgrading importance
Comment 3 Sebastian Dröge (slomo) 2014-09-01 06:38:52 UTC
commit aee9d12b863ca3faa266b611e70b1bbeaeebb010
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Thu Jun 19 11:26:41 2014 +0200

    androidmedia: Also don't report warnings for queue/dequeue errors during flushing in error cases
    
    ... and fix a case where we released an invalid buffer index.

commit 880f3d8a185f0b126ebc2b0ad0b0c12969683053
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Thu Jun 19 11:15:56 2014 +0200

    androidmedia: Don't consider input buffer queueing failures as an error during flushing

commit 71c0e0e19feea20d7262d50438952b2ceef3c544
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Thu Jun 19 11:12:47 2014 +0200

    androidmedia: Clean up flushing code and don't consider output buffer releasing failures during flushing as an error