I have a Samsung J330F. When I try to play any audio with the back and call speaker it just crashes. The fix provided didn't do anything. Any help? The log is when i try to play a video in newpipe
com.google.android.exoplayer2.ExoPlaybackException: MediaCodecAudioRenderer error, index=1, format=Format(null, null, null, audio/raw, null, -1, null, [-1, -1, -1.0], [2, 44100]), format_supported=YES
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:566)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.audio.AudioSink$InitializationException: AudioTrack init failed 0 Config(44100, 12, 44100)
at com.google.android.exoplayer2.audio.DefaultAudioSink$Configuration.buildAudioTrack(DefaultAudioSink.java:2092)
at com.google.android.exoplayer2.audio.DefaultAudioSink.buildAudioTrack(DefaultAudioSink.java:1070)
at com.google.android.exoplayer2.audio.DefaultAudioSink.buildAudioTrackWithRetry(DefaultAudioSink.java:1049)
at com.google.android.exoplayer2.audio.DefaultAudioSink.initializeAudioTrack(DefaultAudioSink.java:846)
at com.google.android.exoplayer2.audio.DefaultAudioSink.handleBuffer(DefaultAudioSink.java:929)
at com.google.android.exoplayer2.audio.MediaCodecAudioRenderer.processOutputBuffer(MediaCodecAudioRenderer.java:703)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.drainOutputBuffer(MediaCodecRenderer.java:1894)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:792)
at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:989)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:490)
... 3 more
Suppressed: com.google.android.exoplayer2.audio.AudioSink$InitializationException: AudioTrack init failed 0 Config(44100, 12, 44100)
... 13 more
Caused by: java.lang.UnsupportedOperationException: Cannot create AudioTrack
at android.media.AudioTrack$Builder.build(AudioTrack.java:1018)
at com.google.android.exoplayer2.audio.DefaultAudioSink$Configuration.createAudioTrackV29(DefaultAudioSink.java:2141)
at com.google.android.exoplayer2.audio.DefaultAudioSink$Configuration.createAudioTrack(DefaultAudioSink.java:2119)
at com.google.android.exoplayer2.audio.DefaultAudioSink$Configuration.buildAudioTrack(DefaultAudioSink.java:2084)
... 12 more
Caused by: java.lang.UnsupportedOperationException: Cannot create AudioTrack
at android.media.AudioTrack$Builder.build(AudioTrack.java:1018)
at com.google.android.exoplayer2.audio.DefaultAudioSink$Configuration.createAudioTrackV29(DefaultAudioSink.java:2141)
at com.google.android.exoplayer2.audio.DefaultAudioSink$Configuration.createAudioTrack(DefaultAudioSink.java:2119)
at com.google.android.exoplayer2.audio.DefaultAudioSink$Configuration.buildAudioTrack(DefaultAudioSink.java:2084)
Click to expand...
Click to collapse
did you find any solutions? i am in the same boat as you..
Related
hello guys this is my first fix. I hope it fixes the bluetooth bug on liquidsmooth 2.37 for galaxy ace 2 (http://forum.xda-developers.com/showthread.php?t=2573302)
As @judas1977 said it was from kernel and gives some help and idea how to change it, I tried to make a fix for it. just download and flash it from recovery It worked for my device and I hope it will work for you too =)
here is the link
https://drive.google.com/file/d/0B-8__H0BBJIJRkxYVmZxTXlSM00/edit?usp=sharing
thanks for
@judas1977
@Rox
@shine911
and everyone who helped to developed this awesome rom
development
If i find enough time i will try to update rom with new updates or some fixes
blastos01 said:
If i find enough time i will try to update rom with new updates or some fixes
Click to expand...
Click to collapse
While you're at it, you wouldn't happen to know the bluetooth fix for the GT-S7560?
fix
BT was the biggest for me. I changed the kernel with the latest cm10.2 kernel. So the patch has to change all kernel related issues.
idk
SamsungGalaxySamsung said:
While you're at it, you wouldn't happen to know the bluetooth fix for the GT-S7560?
Click to expand...
Click to collapse
As i dont have your device i dont know what is the problem with BT un your device. i think i need too much time for it.
Sorry for my bad english.
Thanks no problem
Sent from my GT-S7560 using XDA Premium 4 mobile app
wi-fi ?
I guess wi-fi feature has been improved. can any body confirm?
I think my device catches wi-fi signal more effectively after flashing patch
blastos01 said:
As i dont have your device i dont know what is the problem with BT un your device. i think i need too much time for it.
Sorry for my bad english.
Click to expand...
Click to collapse
Here is the logcat for BT on boot:
Code:
E/bt-btif ( 1433): btif_enable_service: current services:0x2000000
E/bt-btif ( 1433): btif_enable_service: current services:0x2000040
E/bt-btif ( 1433): btif_enable_service: current services:0x2040040
E/bt-btif ( 1433): warning : no command pending, ignore ack
E/bt-btif ( 1433): btif_enable_service: current services:0x2140040
E/bt_vendor_qcom( 1433): open(/sys/class/rfkill/rfkill1/type) failed: No such file or directory (2)
E/bt_vendor_qcom( 1433): open() failed: No such file or directory (2)
E/bt_vendor_qcom( 1433): open() failed: No such file or directory (2)
E/bt_h4 ( 1433): [h4] Unknown HCI message type drop this byte 0x0
E/BluetoothAdapterState( 1433): Error enabling Bluetooth
E/BluetoothManagerService( 896): recoverBluetoothServiceFromError
E/BluetoothServiceJni( 1433): Callback env check fail: env: 0x11ca8, callback: 0x62b00
E/BluetoothServiceJni( 1433): Callback: 'adapter_state_change_callback' is not called on the correct thread
Anas Karbila said:
Here is the logcat for BT on boot:
Code:
E/bt-btif ( 1433): btif_enable_service: current services:0x2000000
E/bt-btif ( 1433): btif_enable_service: current services:0x2000040
E/bt-btif ( 1433): btif_enable_service: current services:0x2040040
E/bt-btif ( 1433): warning : no command pending, ignore ack
E/bt-btif ( 1433): btif_enable_service: current services:0x2140040
E/bt_vendor_qcom( 1433): open(/sys/class/rfkill/rfkill1/type) failed: No such file or directory (2)
E/bt_vendor_qcom( 1433): open() failed: No such file or directory (2)
E/bt_vendor_qcom( 1433): open() failed: No such file or directory (2)
E/bt_h4 ( 1433): [h4] Unknown HCI message type drop this byte 0x0
E/BluetoothAdapterState( 1433): Error enabling Bluetooth
E/BluetoothManagerService( 896): recoverBluetoothServiceFromError
E/BluetoothServiceJni( 1433): Callback env check fail: env: 0x11ca8, callback: 0x62b00
E/BluetoothServiceJni( 1433): Callback: 'adapter_state_change_callback' is not called on the correct thread
Click to expand...
Click to collapse
I have exams and too much work with my master thesis. for now I can't tell you when will I try to change the problem or... sorry for these =(
blastos01 said:
I have exams and too much work with my master thesis. for now I can't tell you when will I try to change the problem or... sorry for these =(
Click to expand...
Click to collapse
Alright thanks for reply.
I am hoping that someone can help point me in the right direction since this issue is driving me nuts. My FireTv worked perfectly, ppdated through the official method to the latest FW (51.1.1.0), installed XBMC, rooted it, etc. After a while I decided to do a factory reset. Everything went OK but since then I cannot play any Instant videos or Netflix content. Instant video throws an error saying to try again or contact customer support. Netflix buffers around 40% and then gives an error.
I tried everything without any luck:
- Cleared Amazon VOD data and cache
- Cleared Netflix data and cache
- Reset factory settings again
- Downgraded firmware, upgraded firmware
- Unregister from account, created new account with prime trial, registered to new account
No matter what I did the error is still there.
I have other devices (PS3, Smart TV, iPad) and on all of them Prime Instant Video runs just fine on the same account.
Here is some data from logcat in case somebody knows what it means:
W/ContextImpl( 640): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1353 com.amazon.internal.policy.impl.AmazonPhoneWindowManager$SendTopWindowChanged.run:3297 android.os.Handler.handleCallback:725 android.os.Handler.dispatchMessage:92 android.os.Looper.loop:137
I/AudioService( 640): AudioFocus requestAudioFocus() from [email protected]
W/PackageManager( 640): Launching com.amazon.tv.device (32003) with AMZ_APP_GID
I/ActivityManager( 640): Start proc com.amazon.tv.device.cms.util for broadcast com.amazon.tv.device/.cms.util.CMSUpdateReceiver: pid=5403 uid=32003 gids={72003, 1028, 9001}
I/ActivityManager( 640): No longer want com.amazon.alta.h2clientservice (pid 2018): empty #17
D/AivPlayCore( 275): COMXAivPlayCore - num of supported audio formats 3
D/AivPlayCore( 275): COMXAivPlayCore - num of supported video formats 2
D/AivPlayCore( 275): COMXAivPlayCore - Video codec 4, name - OMX.qcom.video.decoder.mpeg4
D/AivPlayCore( 275): COMXAivPlayCore - Video codec 7, name - OMX.qcom.video.decoder.avc
D/AivPlayCore( 275): COMXAivPlayCore::component_init
D/AivPlaySvr( 275): Created thread for AivPlayCoreTh
D/AivPlaySvr( 275): omx_aivplay_msg: message thread start name - AivPlayCoreTh
D/pr_crypto_plugin( 275): createCryptoFactory()
E/pr_crypto_plugin( 275): PRCryptoPlugin version = 0x4
W/pr_crypto_plugin( 275): PRCryptoPlugin:RCryptoPlugin: DRM header size = 0
D/PlayReady( 275): playready_initialize starts! g_qsee_apps_version = 8
D/QSEECOMAPI: ( 275): QSEECom_start_app sb_length = 0x19000
D/QSEECOMAPI: ( 275): App is not loaded in QSEE
An then:
D/PlayReady( 274): playready_initialize starts! g_qsee_apps_version = 8
D/QSEECOMAPI: ( 274): QSEECom_start_app sb_length = 0x19000
D/QSEECOMAPI: ( 275): Loaded image: APP id = 1
D/QSEECOMAPI: ( 274): App is already loaded QSEE and app id = 1
D/PlayReady( 274): playready_initialize returns -2147166970
E/PlayReady( 274): Error: playready_initialize failed and return = -2147166970
D/PlayReady( 274): playready_initialize returns context = 0
D/PlayReady( 274): Closing services starts!
D/QSEECOMAPI: ( 274): QSEECom_shutdown_app
D/QSEECOMAPI: ( 274): QSEECom_shutdown_app, app_id = 1
E/PRDrmPlugInImp( 274): acquirePlayReadyIfNeeded:: the playready_initialize failed and returns = 0X8004d506
E/PRDrmPlugInImp( 274): GetConstraints:: the playready_initialize failed and returns = 0X8004d506
D/PRDrmPlugInImp( 274): PRDRMPluginAPI::releasePlayReadyIfNeeded, prInited = -2147166970, prCachedMode = 0
D/PRDrmPlugIn( 274): PRDrmPlugin:nGetConstraints, lastError = 0X8004d506
E/PRDrmPlugIn( 274): PRDrmPlugin:nGetConstraints, there's no valid license available, Error key added.
D/PRDrmPlugIn( 274): PRDrmPlugin:nAcquireDrmInfo
D/PRDrmPlugIn( 274): PRDrmPlugin:nAcquireDrmInfo, MimeType = application/vnd.ms-playready.media.pyv
I'm seeing the same issue and so are my parents across 3 different units.
YouTube, crackle, xbmc, all work. Netflix, Hulu, and Prime content that hasn't been cached all get errors.
What are others seeing?
-UPDATE-
I just spoke to Kyle in tech support (super weird call) and he had me force close the app, clear cache, clear data for the Amazon Video app. That fixed all 3.
mistr_e said:
I'm seeing the same issue and so are my parents across 3 different units.
YouTube, crackle, xbmc, all work. Netflix, Hulu, and Prime content that hasn't been cached all get errors.
What are others seeing?
-UPDATE-
I just spoke to Kyle in tech support (super weird call) and he had me force close the app, clear cache, clear data for the Amazon Video app. That fixed all 3.
Click to expand...
Click to collapse
Tried it again, still no go on my side. I have a funny feeling that they are doing something on their side to fix the error and once that is done, a cache and data cleanup on the unit fixes the issue. Hopefully other people will chime in...
Hello! I have a Bluetooth Connection Issue with my HTC 10...
Situation:
HTC 10, 8.0
Telstra (Australia)
Randomly when I'm connected to Bluetooth devices (car and speakers) the music or audio playback stutters, freezes or stops completely.
Fixes attempted
Wipe caches, wiped data, uninstalled, reinstalled, cleared Bluetooth caches and data
Reset network preferences (as per recommendation from Telstra crowd support)
3 Factory resets and complete wipes (this year)
2 new car Bluetooth kits (I'm not trying anymore)
The other morning at 9:34 the music froze suddenly as I was driving. I taught myself how to do a logcat and then searched through everything that happened at 9:34am that had to do with Bluetooth and/or errors.
Logcat
07-21 09:34:23.177 1041 20533 29781 W AudioFlinger: write blocked for 2096 msecs, 1 delayed writes, thread 0xf3003240
07-21 09:34:23.178 1041 20533 29781 I bt\_a2dp\_hw: start\_audio\_datapath: state 3
07-21 09:34:23.179 1002 28723 28777 I chatty : uid=1002(bluetooth) uipc-main expire 1204 lines
07-21 09:34:23.180 1041 20533 29781 E bt\_a2dp\_hw: a2dp\_command: A2DP COMMAND A2DP\_CTRL\_CMD\_START error 1
07-21 09:34:23.180 1041 20533 29781 E bt\_a2dp\_hw: start\_audio\_datapath: Audiopath start failed (status -1)
07-21 09:34:23.202 1041 20533 29781 I bt\_a2dp\_hw: start\_audio\_datapath: state 3
07-21 09:34:23.205 1041 20533 29781 E bt\_a2dp\_hw: a2dp\_command: A2DP COMMAND A2DP\_CTRL\_CMD\_START error 1
07-21 09:34:23.205 1041 20533 29781 E bt\_a2dp\_hw: start\_audio\_datapath: Audiopath start failed (status -1)
07-21 09:34:23.227 1041 20533 29781 I bt\_a2dp\_hw: start\_audio\_datapath: state 3
07-21 09:34:23.229 1041 20533 29781 E bt\_a2dp\_hw: a2dp\_command: A2DP COMMAND A2DP\_CTRL\_CMD\_START error 1
07-21 09:34:23.230 1041 20533 29781 E bt\_a2dp\_hw: start\_audio\_datapath: Audiopath start failed (status -1)
07-21 09:34:23.252 1041 20533 29781 I bt\_a2dp\_hw: start\_audio\_datapath: state 3
07-21 09:34:23.254 1041 20533 29781 E bt\_a2dp\_hw: a2dp\_command: A2DP COMMAND A2DP\_CTRL\_CMD\_START error 1
So I'm guessing that those errors have something to do with the Bluetooth in my phone connecting to the Bluetooth Audio Kit in my car. This may explain why I get the 'Bluetooth Has stopped Unexpectedly' Error Report at least once a month from my phone.
It seems that there are similar issues here on XDA & Reddit from people who are either installing custom Roms and kernels, or who have not modified their phones are are going through something similar. I haven't rooted (and I don't plan to). Some of these people have gotten replacement devices but the issue presents itself again.
I have posted the same information on Reddit, Telstra Crowd Support and now here.
I don't suppose HTC are going to release a patch...?
Who else has this issue?
Any suggestions or ideas?
Thank you!
Playing media makes no sound in VLC, Firefox, YouTube, NewPipe, you name it.
In the meantime, all system sounds do play all right, and vocal messages too.
Device: Lenovo P2 “kuntao”
ROM: LineageOS 17.1 ♥ with Open GApps nano, installed with `adb sideload` and TWRP.
Rooted: yes
Prior to the 17.1, I was a happy user of the version 16, always up-to-date, and didn't experience any issues with sound.
Here's an essential excerpt from `adb logcat` output when launching VLC:
Code:
...
04-28 07:31:16.322 1205 5907 E audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device speaker ret=-14
04-28 07:31:16.328 1205 5907 E audio_hw_primary: start_output_stream: pcm_prepare returned -1
04-28 07:31:16.423 1205 5907 E audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device speaker ret=-14
04-28 07:31:16.430 10437 10504 W VLC : [00000077ba41e690/2908] libvlc audio output: timing screwed, reset positions
04-28 07:31:16.430 10437 10504 W VLC : [00000077ba41e690/2908] libvlc audio output: playback too late (71136): up-sampling
04-28 07:31:16.431 1205 5907 E audio_hw_primary: start_output_stream: pcm_prepare returned -1
04-28 07:31:16.524 1205 2504 E /vendor/bin/hw/[email protected]: Failed to get IAshmemDeviceService.
...
Workaround
As a workaround, all you need to do to get the speaker to work properly is to enable the “Do not disturb / Total silence” mode, and then disable it.
Hello,
I was wondering if there is a Lineage OS distribution for Lenovo Tab 11 Pro with the reference TB-J716F. If not, is it possible for me to build one? I'm a noob in custom ROMs, but I'm willing to learn
LinageOS doesn't specifically support this tablet. You can however flash a GSI (Generic System Image) since this tablet supports Project Treble with this guide. Make sure you have updated to the latest ZUI update before flashing the GSI.
Right now I'm using Andy Yan's LineageOS GSI builds, they work great on this tablet
The GSI used to have some annoying bugs but after the latest ZUI 14 update they got fixed.
I tried making a normal LineageOS port, but it's really hard and the build process always takes very long. The errors are hard to understand too
Ungeskriptet said:
LinageOS doesn't specifically support this tablet. You can however flash a GSI (Generic System Image) since this tablet supports Project Treble with this guide. Make sure you have updated to the latest ZUI update before flashing the GSI.
Right now I'm using Andy Yan's LineageOS GSI builds, they work great on this tablet
The GSI used to have some annoying bugs but after the latest ZUI 14 update they got fixed.
I tried making a normal LineageOS port, but it's really hard and the build process always takes very long. The errors are hard to understand too
Click to expand...
Click to collapse
Thanks, I'll check all of that once I managed to get my tab working.........
Ungeskriptet said:
LinageOS doesn't specifically support this tablet. You can however flash a GSI (Generic System Image) since this tablet supports Project Treble with this guide. Make sure you have updated to the latest ZUI update before flashing the GSI.
Right now I'm using Andy Yan's LineageOS GSI builds, they work great on this tablet
The GSI used to have some annoying bugs but after the latest ZUI 14 update they got fixed.
I tried making a normal LineageOS port, but it's really hard and the build process always takes very long. The errors are hard to understand too
Click to expand...
Click to collapse
I managed to install LineageOS. But I cannot install twrp using your image.
These are my logs:
Code:
01-01 08:33:29.842 0 0 I init : starting service 'recovery'...
01-01 08:33:29.847 756 756 F linker : CANNOT LINK EXECUTABLE "/system/bin/vendor.qti.hardware.vibrator.service": library "android.hardware.vibrator-V1-ndk_platform.so" not found: needed by main executable
01-01 08:33:29.847 0 0 I init : Service 'vendor.qti.vibrator' (pid 756) exited with status 1
01-01 08:33:29.847 0 0 I init : Sending signal 9 to service 'vendor.qti.vibrator' (pid 756) process group...
01-01 08:33:29.847 0 0 I libprocessgroup: Successfully killed process cgroup uid 0 pid 756 in 0ms
01-01 08:33:29.882 755 755 W libc : Unable to set property "ro.twrp.boot" to "1": error code: 0xb
01-01 08:33:29.882 755 755 W libc : Unable to set property "ro.twrp.version" to "3.6.1_11-0": error code: 0xb
01-01 08:33:29.882 0 0 E init : Unable to set property 'ro.twrp.boot' from uid:0 gid:0 pid:755: Read-only property was already set
01-01 08:33:29.882 0 0 E init : Unable to set property 'ro.twrp.version' from uid:0 gid:0 pid:755: Read-only property was already setunsupported, phys idx 0
01-01 08:33:29.900 755 755 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10 in tid 755 (recovery), pid 755 (recovery)
01-01 08:33:29.902 758 758 F libc : failed to exec crash_dump helper: No such file or directory
01-01 08:33:29.903 755 755 F libc : crash_dump helper failed to exec
01-01 08:33:29.908 0 0 I init : Service 'recovery' (pid 755) received signal 11
redblood252 said:
I managed to install LineageOS. But I cannot install twrp using your image.
These are my logs:
Code:
01-01 08:33:29.842 0 0 I init : starting service 'recovery'...
01-01 08:33:29.847 756 756 F linker : CANNOT LINK EXECUTABLE "/system/bin/vendor.qti.hardware.vibrator.service": library "android.hardware.vibrator-V1-ndk_platform.so" not found: needed by main executable
01-01 08:33:29.847 0 0 I init : Service 'vendor.qti.vibrator' (pid 756) exited with status 1
01-01 08:33:29.847 0 0 I init : Sending signal 9 to service 'vendor.qti.vibrator' (pid 756) process group...
01-01 08:33:29.847 0 0 I libprocessgroup: Successfully killed process cgroup uid 0 pid 756 in 0ms
01-01 08:33:29.882 755 755 W libc : Unable to set property "ro.twrp.boot" to "1": error code: 0xb
01-01 08:33:29.882 755 755 W libc : Unable to set property "ro.twrp.version" to "3.6.1_11-0": error code: 0xb
01-01 08:33:29.882 0 0 E init : Unable to set property 'ro.twrp.boot' from uid:0 gid:0 pid:755: Read-only property was already set
01-01 08:33:29.882 0 0 E init : Unable to set property 'ro.twrp.version' from uid:0 gid:0 pid:755: Read-only property was already setunsupported, phys idx 0
01-01 08:33:29.900 755 755 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10 in tid 755 (recovery), pid 755 (recovery)
01-01 08:33:29.902 758 758 F libc : failed to exec crash_dump helper: No such file or directory
01-01 08:33:29.903 755 755 F libc : crash_dump helper failed to exec
01-01 08:33:29.908 0 0 I init : Service 'recovery' (pid 755) received signal 11
Click to expand...
Click to collapse
You shouldn't need TWRP.
mikefnz said:
You shouldn't need TWRP.
Click to expand...
Click to collapse
Why not? All I have is stock rom recovery....
redblood252 said:
Why not? All I have is stock rom recovery....
Click to expand...
Click to collapse
Just need adb & fastboot
For example:
Download vbmeta.img from google
Reboot to fastboot
Open an cmd:
fastboot flash vbmeta vbmeta.img
fastboot reboot fastboot
fastboot flash system XYZ.img
fastboot reboot recovery
Make an factory reset
Reboot