Closed lgorse closed 9 years ago
Writing the trailer happens when the broadcast stops. Is the app crashing when you stop the broadcast?
If the broadcast is stopping I'm not making that request voluntarily - I simply start the broadcast by pressing on the record button. I don't press it again to stop it.
Anything else I can provide - please ask! I'm investigating as well but not sure where to start on this one.
Also I think the automatic restart only occurs when I run the app from android studio. I'm waking around right now and when I start a stream the app simply crashes
The error is related to the EncodingConfig being set to landscape (maybe forced to landscape). It does not happen when I either don't include a config in the .broadcast method, or when I include a config with "portrait" as the orientation.
Check out this error log without the config - which is always a successful stream launch:
01-23 23:19:31.396 27694-27694/com.example.lgorse.cineios_test I/Muxer﹕ Created muxer for output: rtmp://publish-sfo1.cine.io/live/Xys3zNuX?rock13
01-23 23:19:31.396 27694-27694/com.example.lgorse.cineios_test D/EncodingConfig﹕ IS LANDSCAPE: false
01-23 23:19:31.396 27694-27694/com.example.lgorse.cineios_test D/EncodingConfig﹕ IS LANDSCAPE: false
And check out this one which forces landscape:
01-23 22:55:52.526 22071-22071/com.example.lgorse.cineios_test I/Muxer﹕ Created muxer for output: rtmp://publish-sfo1.cine.io/live/Xys3zNuX?rock13
01-23 22:55:52.536 22071-22071/com.example.lgorse.cineios_test D/EncodingConfig﹕ IS LANDSCAPE: true
01-23 22:55:52.536 22071-22071/com.example.lgorse.cineios_test D/EncodingConfig﹕ IS LANDSCAPE: true
And then when I set the config orientation as "portrait" streaming is successful!!!
Watch this space.
By the way are you able to reproduce the error?
One last step I undertook:
I checked the values that BroadcastActivity.onresume() took for width and height. And even though orientation was landscape, width and height were set to portrait:
mGLView.queueEvent(new Runnable() {
@Override
public void run() {
Log.i("WHAT IS MY WIDTH WHAT IS MY HEIGHT", "Width: "+ mEncodingConfig.getWidth() + "height: " +mEncodingConfig.getHeight());
mRenderer.setCameraPreviewSize(mEncodingConfig.getWidth(), mEncodingConfig.getHeight());
}
});
Result:
01-24 01:31:38.066 29381-29435/com.example.lgorse.cineios_test I/WHAT IS MY WIDTH WHAT IS MY HEIHGT﹕ Width: 720height: 1280
01-24 01:31:38.576 29381-29541/com.example.lgorse.cineios_test I/WHAT IS MY WIDTH WHAT IS MY HEIHGT﹕ Width: 720height: 1280
01-24 01:32:21.526 30582-30604/com.example.lgorse.cineios_test I/WHAT IS MY WIDTH WHAT IS MY HEIHGT﹕ Width: 720height: 1280
This is where I sign out - hopefully this will help figure out if the problem is on my end only or if this is a reproducible bug - and will have cut down some of your debugging time as well.
I've had a lot of false diagnostics because I haven't controlled for something unexpected: how I hold the camera.
If I leave the phone face down on a surface (not holding it) => the error occurs. If I hold the phone up and aim it => the error does not always occur.
NOTE: yesterday the error never occured when I held the phone. Today it does often. I'm not 100% sure this is going to lead to solving the bug.
However the error does not occur in portrait mode (or when no config is passed). So it seems to me the error is avoidable.
Just released a new version. You were correct in there was a bug where it was setting the resolution to the inverse width and height. Setting the camera w/h needs to always be landscape and this was not doing it properly.
https://github.com/cine-io/cineio-broadcast-android/releases/tag/v0.0.12
It works.
I had to wipe the previous version from the phone however.
The error does happen occasionally (maybe 1/15 opens), still upon capturing video. I'll open an issue if I can catch a pattern in it.
I just got the error upon opening the app and starting to record. I thought I'd post the error log in case the cause looks familiar given your work over the weekend.
It's still a signal 11 error that now occurs during "daemonfinalizer" (check out line 5 from the bottom of the log)
01-25 20:51:12.122 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ entry: 10000 - 30000
01-25 20:51:12.122 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ Couldn't find match for 15000, using 15000
01-25 20:51:12.122 10436-10436/com.example.lgorse.cineios_test D/BroadcastActivity﹕ TOTAL SUPPORTED FORMATS: 2
01-25 20:51:12.122 10436-10436/com.example.lgorse.cineios_test D/BroadcastActivity﹕ SUPPORTED FORMAT: 256
01-25 20:51:12.122 10436-10436/com.example.lgorse.cineios_test D/BroadcastActivity﹕ SUPPORTED FORMAT: 16
01-25 20:51:12.132 10436-10436/com.example.lgorse.cineios_test D/BroadcastActivity﹕ onResume complete: io.cine.android.BroadcastActivity@42ad3fe8
01-25 20:51:12.132 10436-10632/com.example.lgorse.cineios_test D/CameraSurfaceRenderer﹕ setCameraPreviewSize
01-25 20:51:12.142 10436-10436/com.example.lgorse.cineios_test D/AspectFrameLayout﹕ onMeasure target=-1.0 width=[MeasureSpec: EXACTLY 1920] height=[MeasureSpec: EXACTLY 1080]
01-25 20:51:12.142 10436-10436/com.example.lgorse.cineios_test D/AspectFrameLayout﹕ onMeasure target=-1.0 width=[MeasureSpec: EXACTLY 1920] height=[MeasureSpec: EXACTLY 1080]
01-25 20:51:12.192 10436-10632/com.example.lgorse.cineios_test D/CameraSurfaceRenderer﹕ onSurfaceCreated
01-25 20:51:12.202 10436-10632/com.example.lgorse.cineios_test D/GlUtil﹕ Created program 3 (TEXTURE_EXT)
01-25 20:51:12.202 10436-10632/com.example.lgorse.cineios_test D/CameraSurfaceRenderer﹕ onSurfaceChanged 1920x1080
01-25 20:51:12.242 10436-10436/com.example.lgorse.cineios_test D/BroadcastActivity﹕ CameraHandler [Handler (io.cine.android.BroadcastActivity$CameraHandler) {42ae0198}]: what=0
01-25 20:51:12.772 10436-10436/com.example.lgorse.cineios_test D/BroadcastActivity﹕ CameraHandler [Handler (io.cine.android.BroadcastActivity$CameraHandler) {42ae0198}]: what=1
01-25 20:51:12.772 10436-10436/com.example.lgorse.cineios_test D/BroadcastActivity﹕ handle setting camera orientation
01-25 20:51:12.772 10436-10436/com.example.lgorse.cineios_test D/BroadcastActivity﹕ SETTING ASPECT RATIO: 1.7777777777777777
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/AspectFrameLayout﹕ Setting aspect ratio to 1.7777777777777777 (was -1.0)
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ Camera preferred preview size for video is 1920x1080
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 1920x1080
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 1440x1080
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 1280x720
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 1056x864
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 960x720
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 800x480
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 720x480
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 640x480
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 352x288
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 320x240
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ supported: 176x144
01-25 20:51:12.782 10436-10436/com.example.lgorse.cineios_test D/CameraUtils﹕ setting preview size: 1280x720
01-25 20:51:12.792 10436-10632/com.example.lgorse.cineios_test D/CameraSurfaceRenderer﹕ setCameraPreviewSize
01-25 20:51:12.792 10436-10436/com.example.lgorse.cineios_test I/Choreographer﹕ Skipped 32 frames! The application may be doing too much work on its main thread.
01-25 20:51:12.792 10436-10436/com.example.lgorse.cineios_test D/AspectFrameLayout﹕ onMeasure target=1.7777777777777777 width=[MeasureSpec: EXACTLY 1920] height=[MeasureSpec: EXACTLY 1080]
01-25 20:51:12.792 10436-10436/com.example.lgorse.cineios_test D/AspectFrameLayout﹕ aspect ratio is good (target=1.7777777777777777, view=1920x1080)
01-25 20:51:12.792 10436-10436/com.example.lgorse.cineios_test D/AspectFrameLayout﹕ onMeasure target=1.7777777777777777 width=[MeasureSpec: EXACTLY 1920] height=[MeasureSpec: EXACTLY 1080]
01-25 20:51:12.792 10436-10436/com.example.lgorse.cineios_test D/AspectFrameLayout﹕ aspect ratio is good (target=1.7777777777777777, view=1920x1080)
01-25 20:51:13.422 10436-10494/com.example.lgorse.cineios_test E/BufferQueue﹕ [unnamed-10436-0] dequeueBuffer: min undequeued buffer count (2) exceeded (dequeued=5 undequeudCount=1)
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test I/Muxer﹕ Created muxer for output: rtmp://publish-sfo1.cine.io/live/Xys3zNuX?rock13
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ init
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ initializing output_fmt_context ...
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test I/ffmpegbridge﹕ _init_output_fmt_context format: flv path: rtmp://publish-sfo1.cine.io/live/Xys3zNuX?rock13
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ fmt->name: flv
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ fmt->long_name: FLV (Flash Video)
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ fmt->mime_type: video/x-flv
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ fmt->extensions: flv
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ fmt->audio_codec: 86018
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ fmt->video_codec: 28
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ fmt->subtitle_codec: 0
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ fmt->flags: 132160
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ adding video stream ...
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->name: h264
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->long_name: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->type: 0
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->id: 28
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->capabilities: 12322
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test I/ffmpegbridge﹕ _add_stream at index 0
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ _add_stream: using separate headers
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ _add_stream st: 0x77a88d90
01-25 20:51:18.282 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ adding audio stream ...
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->name: aac
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->long_name: AAC (Advanced Audio Coding)
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->type: 1
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->id: 86018
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ codec->capabilities: 1026
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test I/ffmpegbridge﹕ _add_stream at index 1
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ _add_stream: using separate headers
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ _add_stream st: 0x77a89940
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ opening output url ...
01-25 20:51:18.292 10436-10436/com.example.lgorse.cineios_test I/ffmpegbridge﹕ Opening output file for writing at path rtmp://publish-sfo1.cine.io/live/Xys3zNuX?rock13
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ logging (dumping) output_fmt_ctx log ...
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ Output #0, flv, to 'rtmp://publish-sfo1.cine.io/live/Xys3zNuX?rock13':
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ Stream #0:0
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ , 0, 0/0
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ : Video: h264, yuv420p, 1280x720, q=2-31, 1500 kb/s
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ , 15 tbc
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ [ 01-25 20:51:18.652 10436:10436 D/ffmpegbridge ]
Stream #0:1
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ , 0, 0/0
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ : Audio: aac, 44100 Hz, 1 channels, s16, 128 kb/s
01-25 20:51:18.652 10436-10436/com.example.lgorse.cineios_test D/ffmpegbridge﹕ [ 01-25 20:51:18.652 10436:11153 D/FFmpegMuxer ]
Starting looper
01-25 20:51:18.652 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ setting mHandler
01-25 20:51:18.652 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ setting mHandler to: Handler (io.cine.android.streaming.FFmpegMuxer$FFmpegHandler) {42b12c10}
01-25 20:51:18.672 10436-10436/com.example.lgorse.cineios_test D/AudioEncoderConfig﹕ SETTING CHANNEL MONO
01-25 20:51:18.672 10436-10436/com.example.lgorse.cineios_test I/ACodec﹕ [] Now uninitialized
01-25 20:51:18.672 10436-11157/com.example.lgorse.cineios_test I/OMXClient﹕ Using client-side OMX mux.
01-25 20:51:18.692 10436-11157/com.example.lgorse.cineios_test E/OMXMaster﹕ A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
01-25 20:51:18.762 10436-11157/com.example.lgorse.cineios_test W/linker﹕ libsxqk.so has text relocations. This is wasting memory and is a security risk. Please fix.
01-25 20:51:18.762 10436-11157/com.example.lgorse.cineios_test W/linker﹕ libarac.so has text relocations. This is wasting memory and is a security risk. Please fix.
01-25 20:51:18.792 10436-11157/com.example.lgorse.cineios_test I/ACodec﹕ [OMX.google.aac.encoder] Now Loaded
01-25 20:51:18.792 10436-11157/com.example.lgorse.cineios_test I/ACodec﹕ [OMX.google.aac.encoder] Now Loaded->Idle
01-25 20:51:18.792 10436-11157/com.example.lgorse.cineios_test I/ACodec﹕ [OMX.google.aac.encoder] Now Idle->Executing
01-25 20:51:18.792 10436-11157/com.example.lgorse.cineios_test I/ACodec﹕ [OMX.google.aac.encoder] Now Executing
01-25 20:51:18.792 10436-11161/com.example.lgorse.cineios_test D/AudioEncoderConfig﹕ SETTING CHANNEL MONO
01-25 20:51:18.792 10436-11161/com.example.lgorse.cineios_test D/AudioEncoderConfig﹕ SETTING CHANNEL MONO
01-25 20:51:18.802 10436-10632/com.example.lgorse.cineios_test D/CameraSurfaceRenderer﹕ changeRecordingState: was false now true
01-25 20:51:18.802 10436-10436/com.example.lgorse.cineios_test I/Choreographer﹕ Skipped 30 frames! The application may be doing too much work on its main thread.
01-25 20:51:18.822 10436-10632/com.example.lgorse.cineios_test D/CameraSurfaceRenderer﹕ START recording
01-25 20:51:18.822 10436-10632/com.example.lgorse.cineios_test D/TextureMovieEncoder﹕ Encoder: startRecording()
01-25 20:51:18.822 10436-11165/com.example.lgorse.cineios_test D/TextureMovieEncoder﹕ handleStartRecording io.cine.android.streaming.FFmpegMuxer@42ae0030' ctxt=android.opengl.EGLContext@7b4bb8f0
01-25 20:51:18.822 10436-11165/com.example.lgorse.cineios_test I/ACodec﹕ [] Now uninitialized
01-25 20:51:18.832 10436-11167/com.example.lgorse.cineios_test I/OMXClient﹕ Using client-side OMX mux.
01-25 20:51:18.922 10436-11161/com.example.lgorse.cineios_test D/AndroidEncoder﹕ ADDED TRACK INDEX: 1 io.cine.android.streaming.AudioEncoderCore
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ AUDIO CONFIG LENGTH: 2
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ setAudioCodecExtraData
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->codec_type: 1
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->codec_id: 86018
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->codec_tag: 0
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->stream_codec_tag: 0
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->flags: 4194304
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->flags2: 0
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->extradata_size: 2
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x12
01-25 20:51:18.922 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x8
01-25 20:51:18.922 10436-11167/com.example.lgorse.cineios_test I/ACodec﹕ [OMX.qcom.video.encoder.avc] Now Loaded
01-25 20:51:18.922 10436-11167/com.example.lgorse.cineios_test E/ACodec﹕ [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -2147483648
01-25 20:51:18.922 10436-11167/com.example.lgorse.cineios_test I/ACodec﹕ setupVideoEncoder succeeded
01-25 20:51:18.922 10436-11167/com.example.lgorse.cineios_test I/ACodec﹕ [OMX.qcom.video.encoder.avc] Now Loaded->Idle
01-25 20:51:18.942 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ RECEIVED AUDIO DATA NOT ALL TRACKS ADDED
01-25 20:51:18.952 10436-11167/com.example.lgorse.cineios_test I/ACodec﹕ [OMX.qcom.video.encoder.avc] Now Idle->Executing
01-25 20:51:18.952 10436-11167/com.example.lgorse.cineios_test I/ACodec﹕ [OMX.qcom.video.encoder.avc] Now Executing
01-25 20:51:18.962 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ RECEIVED AUDIO DATA NOT ALL TRACKS ADDED
01-25 20:51:18.962 10436-11165/com.example.lgorse.cineios_test D/GlUtil﹕ EGLContext created, client version 2
01-25 20:51:18.972 10436-11165/com.example.lgorse.cineios_test D/GlUtil﹕ Created program 6 (TEXTURE_EXT)
01-25 20:51:18.972 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ RECEIVED AUDIO DATA NOT ALL TRACKS ADDED
01-25 20:51:18.992 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ RECEIVED AUDIO DATA NOT ALL TRACKS ADDED
01-25 20:51:19.022 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ RECEIVED AUDIO DATA NOT ALL TRACKS ADDED
01-25 20:51:19.032 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ RECEIVED AUDIO DATA NOT ALL TRACKS ADDED
01-25 20:51:19.052 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ RECEIVED AUDIO DATA NOT ALL TRACKS ADDED
01-25 20:51:19.092 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ RECEIVED AUDIO DATA NOT ALL TRACKS ADDED
01-25 20:51:19.122 10436-11165/com.example.lgorse.cineios_test D/AndroidEncoder﹕ ADDED TRACK INDEX: 0 io.cine.android.streaming.VideoEncoderCore
01-25 20:51:19.122 10436-11153/com.example.lgorse.cineios_test D/FFmpegMuxer﹕ Capture SPS + PPS
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ setVideoCodecExtraData
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->codec_type: 0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->codec_id: 28
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->codec_tag: 0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->stream_codec_tag: 0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->flags: 4194304
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->flags2: 0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ br_ctx->audio_stream->codec->extradata_size: 25
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x1
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x67
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x42
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x80
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x1f
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0xda
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x1
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x40
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x16
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0xe8
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x6
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0xd0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0xa1
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x35
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x0
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x1
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x68
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0xce
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0x6
01-25 20:51:19.142 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ >codec->extradata byte: 0xe2
01-25 20:51:19.172 10436-10445/com.example.lgorse.cineios_test D/ffmpegbridge﹕ finalize
01-25 20:51:19.172 10436-10445/com.example.lgorse.cineios_test I/ffmpegbridge﹕ Writing trailer ...
01-25 20:51:19.172 10436-10445/com.example.lgorse.cineios_test A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 10445 (FinalizerDaemon)
01-25 20:51:19.172 10436-11165/com.example.lgorse.cineios_test D/dalvikvm﹕ GC_FOR_ALLOC freed 1279K, 13% free 23099K/26368K, paused 30ms, total 32ms
01-25 20:51:19.172 10436-11165/com.example.lgorse.cineios_test I/dalvikvm-heap﹕ Grow heap (frag case) to 27.251MB for 1413136-byte allocation
01-25 20:51:19.172 10436-11153/com.example.lgorse.cineios_test D/ffmpegbridge﹕ writeHeader
01-25 20:51:19.172 10436-11153/com.example.lgorse.cineios_test I/ffmpegbridge﹕ Writing header ...
OK I've been playing with the app and the error does still occur. Recurring patterns:
Always the cause appears to be some issue with landscape mode - there is never a problem with portrait mode.
I'm not sure I'm able to get to the bottom of this - you guys may be able to locate the bug more easily than me. Also do give a holler if you need more info from me or if you're not able to reproduce.
Finally, the error line:
01-25 20:51:19.172 10436-10445/com.example.lgorse.cineios_test A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 10445 (FinalizerDaemon)
either ends with (FinalizerDaemon) or with (FFmpeg). I haven't yet detected the pattern of when it states one vs the other.
Really hope this is helpful!
Daily bug report: I havent' encountered the bug at all today. I'm sure it's a bummer to hear reports of a mystery bug like that - but I'll keep track of this as I play around with the app.
The only change I can detect is that I'm not running the repo from which I initiated the pull request you have outstanding. Nothing brilliant in it, though.
Daily bug report: opened the app and tested multiple times today and have not encountered this bug. Will give it through the weekend, when i will really intensify usage, and close if nothing more shows up
Daily bug report: the error does not reappear due to opening/closing the app as it did before (I'm playing with a Twitter stack that is causing it to appear but presumably this is different)
When I open the app and stream the First time I get a Signal 11 Error. The app crashes and the activiity automatically restarts - and then streaming works.
Here is the verbose log of the initial attempt:
Note that the final term under parentheses changes (Instead of FinalizerDaemon it will say FFMpeg).
Here is what happens right after the error line:
The stream happens just fine after that. I'm guessing some asynchronous memory freeing isn't going on - has this happened for you guys before?