Skip to content
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 on canceling tranforming in emulator. #123

Open
pinkredmobile opened this issue May 26, 2021 · 2 comments
Open

Crash on canceling tranforming in emulator. #123

pinkredmobile opened this issue May 26, 2021 · 2 comments

Comments

@pinkredmobile
Copy link

demo app 1.4.15
emulator : Pixel 4(1080x2280 xxhdpi) API 29, Android 10 x86

track 0 : video/avc
check : include, transcode

disable trim
width : 1080
height : 1920
bitrate : 15mbps
key frame interval : 5s

track1 : audio/mp4a-latm
check : include

@izzytwosheds
Copy link
Contributor

Thanks for reporting. I will look into this. LiTr doesn't work on emulator too well, unfortunately.
Can you also post the stack trace for the crash?

@pinkredmobile
Copy link
Author

record : https://drive.google.com/file/d/1XM1wJAJUQ5koVT1yJ7JXW6qfPt3Aftdv/view?usp=sharing

2021-05-28 08:34:55.936 1883-1883/? I/droid.litr.dem: Not late-enabling -Xcheck:jni (already on)
2021-05-28 08:34:55.981 1883-1883/? E/droid.litr.dem: Unknown bits set in runtime_flags: 0x8000
2021-05-28 08:34:55.982 1883-1883/? W/droid.litr.dem: Unexpected CPU variant for X86 using defaults: x86
2021-05-28 08:34:56.091 1883-1883/com.linkedin.android.litr.demo I/MultiDex: VM with version 2.1.0 has multidex support
2021-05-28 08:34:56.091 1883-1883/com.linkedin.android.litr.demo I/MultiDex: Installing application
2021-05-28 08:34:56.091 1883-1883/com.linkedin.android.litr.demo I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2021-05-28 08:34:56.097 1883-1883/com.linkedin.android.litr.demo W/RenderThread: type=1400 audit(0.0:56): avc: denied { write } for name="property_service" dev="tmpfs" ino=7786 scontext=u:r:untrusted_app:s0:c134,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
2021-05-28 08:34:56.107 1883-1987/com.linkedin.android.litr.demo D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
2021-05-28 08:34:56.109 1883-1987/com.linkedin.android.litr.demo W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
2021-05-28 08:34:56.141 1883-1987/com.linkedin.android.litr.demo D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
2021-05-28 08:34:56.149 1883-1987/com.linkedin.android.litr.demo D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
2021-05-28 08:34:56.151 1883-1987/com.linkedin.android.litr.demo D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
2021-05-28 08:34:56.184 1883-1883/com.linkedin.android.litr.demo W/droid.litr.dem: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
2021-05-28 08:34:56.184 1883-1883/com.linkedin.android.litr.demo W/droid.litr.dem: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
2021-05-28 08:34:56.231 1883-1985/com.linkedin.android.litr.demo D/HostConnection: HostConnection::get() New Host Connection established 0xda7c3630, tid 1985
2021-05-28 08:34:56.250 1883-1985/com.linkedin.android.litr.demo D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0
2021-05-28 08:34:56.253 1883-1985/com.linkedin.android.litr.demo W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2021-05-28 08:34:56.253 1883-1985/com.linkedin.android.litr.demo D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
2021-05-28 08:34:56.253 1883-1985/com.linkedin.android.litr.demo D/EGL_emulation: eglCreateContext: 0xda7c79c0: maj 3 min 0 rcv 3
2021-05-28 08:34:56.254 1883-1985/com.linkedin.android.litr.demo D/EGL_emulation: eglMakeCurrent: 0xda7c79c0: ver 3 0 (tinfo 0xe5da2e20)
2021-05-28 08:34:56.268 1883-1985/com.linkedin.android.litr.demo W/Gralloc3: mapper 3.x is not supported
2021-05-28 08:34:56.271 1883-1985/com.linkedin.android.litr.demo D/HostConnection: createUnique: call
2021-05-28 08:34:56.271 1883-1985/com.linkedin.android.litr.demo D/HostConnection: HostConnection::get() New Host Connection established 0xda7c5160, tid 1985
2021-05-28 08:34:56.273 1883-1985/com.linkedin.android.litr.demo D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0
2021-05-28 08:34:56.274 1883-1985/com.linkedin.android.litr.demo D/eglCodecCommon: allocate: Ask for block of size 0x1000
2021-05-28 08:34:56.275 1883-1985/com.linkedin.android.litr.demo D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3ff688000 size 0x2000
2021-05-28 08:34:56.291 1883-1985/com.linkedin.android.litr.demo D/EGL_emulation: eglMakeCurrent: 0xda7c79c0: ver 3 0 (tinfo 0xe5da2e20)
2021-05-28 08:34:56.294 1883-1985/com.linkedin.android.litr.demo D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
2021-05-28 08:35:04.997 1883-1883/com.linkedin.android.litr.demo W/RecyclerView: No adapter attached; skipping layout
2021-05-28 08:35:06.500 1883-1985/com.linkedin.android.litr.demo D/EGL_emulation: eglMakeCurrent: 0xda7c79c0: ver 3 0 (tinfo 0xe5da2e20)
2021-05-28 08:35:07.698 1883-1883/com.linkedin.android.litr.demo W/ClearFileSource: offset/length adjusted from 0/576460752303423487 to 0/63412050
2021-05-28 08:35:07.804 1883-1883/com.linkedin.android.litr.demo W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
2021-05-28 08:35:07.829 1883-1883/com.linkedin.android.litr.demo W/Glide: Load failed for null with size [0x0]
class com.bumptech.glide.load.engine.GlideException: Received null model
2021-05-28 08:35:07.924 1883-1985/com.linkedin.android.litr.demo D/EGL_emulation: eglMakeCurrent: 0xda7c79c0: ver 3 0 (tinfo 0xe5da2e20)
2021-05-28 08:35:07.962 1883-1883/com.linkedin.android.litr.demo W/Glide: Load failed for null with size [0x0]
class com.bumptech.glide.load.engine.GlideException: Received null model
2021-05-28 08:35:09.160 1883-1883/com.linkedin.android.litr.demo W/Glide: Load failed for null with size [0x0]
class com.bumptech.glide.load.engine.GlideException: Received null model
2021-05-28 08:35:10.906 1883-1883/com.linkedin.android.litr.demo W/ClearFileSource: offset/length adjusted from 0/576460752303423487 to 0/63412050
2021-05-28 08:35:10.998 1883-2021/com.linkedin.android.litr.demo I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
2021-05-28 08:35:11.009 1883-2023/com.linkedin.android.litr.demo I/OMXClient: IOmx service obtained
2021-05-28 08:35:11.022 1883-2023/com.linkedin.android.litr.demo W/OMXUtils: do not know color format 0x7f000789 = 2130708361
2021-05-28 08:35:11.024 1883-2023/com.linkedin.android.litr.demo I/ACodec: setupAVCEncoderParameters with [profile: Baseline] [level: Level41]
2021-05-28 08:35:11.025 1883-2023/com.linkedin.android.litr.demo I/ACodec: [OMX.google.h264.encoder] cannot encode color aspects. Ignoring.
2021-05-28 08:35:11.026 1883-2023/com.linkedin.android.litr.demo I/ACodec: [OMX.google.h264.encoder] cannot encode HDR static metadata. Ignoring.
2021-05-28 08:35:11.026 1883-2023/com.linkedin.android.litr.demo I/ACodec: setupVideoEncoder succeeded
2021-05-28 08:35:11.027 1883-2023/com.linkedin.android.litr.demo W/OMXUtils: do not know color format 0x7f000789 = 2130708361
2021-05-28 08:35:11.039 1883-2021/com.linkedin.android.litr.demo D/HostConnection: HostConnection::get() New Host Connection established 0xc5b9b710, tid 2021
2021-05-28 08:35:11.039 1883-2021/com.linkedin.android.litr.demo D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0
2021-05-28 08:35:11.040 1883-2021/com.linkedin.android.litr.demo D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
2021-05-28 08:35:11.040 1883-2021/com.linkedin.android.litr.demo D/EGL_emulation: eglCreateContext: 0xc579a0a0: maj 3 min 0 rcv 3
2021-05-28 08:35:11.047 1883-2021/com.linkedin.android.litr.demo D/EGL_emulation: eglMakeCurrent: 0xc579a0a0: ver 3 0 (tinfo 0xddc0f7d0)
2021-05-28 08:35:11.050 1883-2021/com.linkedin.android.litr.demo E/EGL_emulation: eglQueryContext 32c0 EGL_BAD_ATTRIBUTE
2021-05-28 08:35:11.050 1883-2021/com.linkedin.android.litr.demo E/EGL_emulation: tid 2021: eglQueryContext(1902): error 0x3004 (EGL_BAD_ATTRIBUTE)
2021-05-28 08:35:11.061 1883-2028/com.linkedin.android.litr.demo I/OMXClient: IOmx service obtained
2021-05-28 08:35:11.064 1883-2027/com.linkedin.android.litr.demo D/SurfaceUtils: connecting to surface 0xc5c0a808, reason connectToSurface
2021-05-28 08:35:11.064 1883-2027/com.linkedin.android.litr.demo I/MediaCodec: [OMX.google.h264.decoder] setting surface generation to 1928193
2021-05-28 08:35:11.064 1883-2027/com.linkedin.android.litr.demo D/SurfaceUtils: disconnecting from surface 0xc5c0a808, reason connectToSurface(reconnect)
2021-05-28 08:35:11.064 1883-2027/com.linkedin.android.litr.demo D/SurfaceUtils: connecting to surface 0xc5c0a808, reason connectToSurface(reconnect)
2021-05-28 08:35:11.068 1883-2028/com.linkedin.android.litr.demo E/ACodec: [OMX.google.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
2021-05-28 08:35:11.782 1883-2027/com.linkedin.android.litr.demo D/MediaCodec: [OMX.google.h264.decoder] setting dataspace on output surface to #104
2021-05-28 08:35:11.784 1883-2021/com.linkedin.android.litr.demo D/VideoTrackTranscoder: Decoder output format changed: {crop-right=3839, color-format=19, slice-height=2160, image-data=java.nio.HeapByteBuffer[pos=0 lim=104 cap=104], mime=video/raw, stride=3840, using-sw-renderer=1, color-standard=1, color-transfer=3, crop-bottom=2159, crop-left=0, width=3840, color-range=2, crop-top=0, height=2160}
2021-05-28 08:35:11.785 1883-2027/com.linkedin.android.litr.demo W/Gralloc3: allocator 3.x is not supported
2021-05-28 08:35:11.824 1883-2027/com.linkedin.android.litr.demo D/eglCodecCommon: allocate: Ask for block of size 0xbde000
2021-05-28 08:35:11.824 1883-2027/com.linkedin.android.litr.demo D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3fd6e1000 size 0xbdf000
2021-05-28 08:35:11.912 1883-2027/com.linkedin.android.litr.demo D/SoftwareRenderer: setting dataspace on output surface to #104
2021-05-28 08:35:11.929 1883-2023/com.linkedin.android.litr.demo D/ACodec: dataspace changed to 0x10c10000 (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) (R:2(Limited), S:1(BT709), T:3(SMPTE_170M))
2021-05-28 08:35:11.939 1883-2021/com.linkedin.android.litr.demo D/MediaMuxerMediaTarget: All tracks added, starting MediaMuxer, writing out 17 queued samples
2021-05-28 08:35:11.939 1883-2021/com.linkedin.android.litr.demo I/MPEG4Writer: limits: 4294967295/0 bytes/us, bit rate: -1 bps and the estimated moov size 3192 bytes
2021-05-28 08:35:11.942 1883-2079/com.linkedin.android.litr.demo I/MPEG4Writer: setStartTimestampUs: 0
2021-05-28 08:35:11.942 1883-2079/com.linkedin.android.litr.demo I/MPEG4Writer: Earliest track starting time: 0
2021-05-28 08:35:11.947 1883-2021/com.linkedin.android.litr.demo D/VideoTrackTranscoder: Encoder output format received {max-bitrate=5000000, csd-1=java.nio.HeapByteBuffer[pos=0 lim=10 cap=10], color-transfer=3, mime=video/avc, width=1280, bitrate=5000000, color-range=2, frame-rate=30, color-standard=1, height=720, csd-0=java.nio.HeapByteBuffer[pos=0 lim=18 cap=18]}
2021-05-28 08:35:12.131 1883-2078/com.linkedin.android.litr.demo I/MPEG4Writer: setStartTimestampUs: 0
2021-05-28 08:35:13.297 1883-2027/com.linkedin.android.litr.demo D/SurfaceUtils: disconnecting from surface 0xc5c0a808, reason disconnectFromSurface
2021-05-28 08:35:13.305 1883-2021/com.linkedin.android.litr.demo E/Surface: getSlotFromBufferLocked: unknown buffer: 0x0
2021-05-28 08:35:13.310 1883-2078/com.linkedin.android.litr.demo I/MPEG4Writer: Received total/0-length (7/0) buffers and encoded 7 frames. - Video
2021-05-28 08:35:13.311 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Video track stopping. Stop source
2021-05-28 08:35:13.311 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Video track source stopping
2021-05-28 08:35:13.311 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Video track source stopped
2021-05-28 08:35:13.312 1883-2079/com.linkedin.android.litr.demo I/MPEG4Writer: Received total/0-length (27/0) buffers and encoded 27 frames. - Audio
2021-05-28 08:35:13.312 1883-2079/com.linkedin.android.litr.demo I/MPEG4Writer: Audio track drift time: 0 us
2021-05-28 08:35:13.312 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Video track stopped. Stop source
2021-05-28 08:35:13.312 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Audio track stopping. Stop source
2021-05-28 08:35:13.312 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Audio track source stopping
2021-05-28 08:35:13.312 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Audio track source stopped
2021-05-28 08:35:13.313 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Audio track stopped. Stop source
2021-05-28 08:35:13.313 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Duration from tracks range is [233299, 575999] us
2021-05-28 08:35:13.313 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Stopping writer thread
2021-05-28 08:35:13.313 1883-2063/com.linkedin.android.litr.demo D/MPEG4Writer: 0 chunks are written in the last batch
2021-05-28 08:35:13.314 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Writer thread stopped
2021-05-28 08:35:13.314 1883-2021/com.linkedin.android.litr.demo I/MPEG4Writer: Ajust the moov start time from 0 us -> 0 us
2021-05-28 08:35:13.314 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Video track stopping. Stop source
2021-05-28 08:35:13.314 1883-2021/com.linkedin.android.litr.demo D/MPEG4Writer: Audio track stopping. Stop source
2021-05-28 08:35:13.338 1883-2021/com.linkedin.android.litr.demo A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 2021 (pool-1-thread-1), pid 1883 (droid.litr.demo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants