I've been sent an anonymous crash report that my app crashes on an HTC HD2 device. I don't know if it happens on every HTC HD2 but I haven't had a similar report from any other phone type. Here's the app if anyone feels like testing it (the report indicates the crash happens when you press the plus sign on the start screen):
https://market.android.com/details?id=org.seanw.fresco.lite
The exception thrown that causes the crash is:
Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: load_segments[928]: 68 failed to map segment from 'libpaint.so' @ 0x83400000 (0x0000f318). p_vaddr=0x00000000 p_offset=0x00000000
at java.lang.Runtime.loadLibrary(Runtime.java:434)
at java.lang.System.loadLibrary(System.java:554)
...
Click to expand...
Click to collapse
The crash happens when the program attempts to load the NDK library "libpaint.so" via Java's "System.loadLibrary" function. Here's the data I have about the device:
phone = HTC HD2
android_version = 2.3.1
board = bravo
brand = htc_wwe
device = bravo
build_display = GRH78 FRF91/226611
Click to expand...
Click to collapse
Does anyone know what the problem might be? Is there a better place to ask this question?
I have next problem in developing app for android (Android studio, 4.0.3 kernel),
I communicate with my device over wifi. I need send from ever 20ms some bytes to my device. But I cannot send data more quickly like 100ms! When I use timer with 20ms period, system will send data in 100ms together. Setting timer to 200ms works, data sent ever 200ms. But In decreasing period to 20ms.
This is part of code:
// initialization of socket:
SocketAddress sockaddr = new InetSocketAddress(ip, parseInt(prt));
nsocket = new Socket();
//nsocket.setPerformancePreferences(0,1,2);
nsocket.setSendBufferSize(13);
nsocket.setTcpNoDelay(true);
// this is from timer, run every 20ms
nos = nsocket.getOutputStream();
nos.write(cmd);
nos.flush();
But android will send it with 100ms period! and together all bytes from every 30ms period of my timer
I think, it causes naggle algorithm. It's possible to switch it off. I found in documentation somethink about TCP_NODELAY, how can I use it? Is there any way how to send data to socket from android immediatelly?
I believe if you use SQlite and go into the database. You can add TCP_NODELAY, with a value of 1.
For an app I am developing for my Ph.D. thesis, I need to determine the rotation of the device about an axis orthogonal to the screen (can't post a picture to illustrate further due to newness).
My current code works pretty well until the angle hits +- 90 degrees, when it begins to decline instead of increase.
Every time my ROTATION_VECTOR sensor sends data, the following code is run with SensorEvent object sensorEvent provided to the SensorEventListener:
Code:
float[] rotVec = sensorEvent.values.clone();
SensorManager.getQuaternionFromVector(quaternion, rotVec);
SensorManager.getRotationMatrixFromVector(globalRot,quaternion);
SensorManager.remapCoordinateSystem(globalRot, SensorManager.AXIS_Y, SensorManager.AXIS_Z, localRot);
SensorManager.getOrientation(localRot, rawRad);
float device_rotation = rawRad[1];
Any advice on what I need to do? I think I just need to manually reimplement getOrientation to operate over 360 degrees rather than 180 or extract some additional information from the other angles, but am not sure how to proceed.
Has anyone successfully record 96000Hz audio after Android 5.0?
Hi,
As the update of Android 5.0 mentioned, it starts supporting audio recording at 96000Hz. However, it doesn't work on my Samsung Galaxy s5 / s6 edge (both are Android 5.0).
I use the following script to test the capability:
Code:
void checkAvailableSampleRate(){
for (int rate : new int[] {44100, 48000, 96000}) { // add the rates you wish to check against
int bufferSize = AudioRecord.getMinBufferSize(rate, AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT);
if (bufferSize > 0) {
// buffer size is valid, Sample rate supported
Log.d(C.LOG_TAG,"Sample rate "+rate+" is supportted");
// just used for debugging
AudioRecord temp = new AudioRecord(MediaRecorder.AudioSource.MIC, rate, AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT, bufferSize);
Log.d(C.LOG_TAG,"make audioRecord successfully ");
}
}
}
My S5 is unable to get minBuffer size when sample rate is set to 96000Hz. My S6 edge is able to do it but unable to create a AudioRecord instance (get error: "java.lang.IllegalArgumentException: 96000Hz is not a supported sample rate.").
This problem is also asked in this forum for Nexus 9 but there is no conclusion. I am wondering if anyone knows which device can support audio recording at 96000Hz or any customized ROM can help me to do it. Thanks!
My Asus Zenfone 5 is beginning to have some malfunctions :
No more sound, which means :
I can't make calls (the phone freezes to black and I can only start it up again by holding the power button)
I can't receive calls (callers go directly to voicemail)
I can't open the camera to take pictures or videos
Alarms don't ring, they just vibrate
I can't listen to music
I can't watch videos (videos taken with my phone, on youtube, on any social media app...) : video just won't start.
I got this bug report from NewPipe, a youtube client :
Exception​
User Action: play stream
Request: Player error[type=ERROR_CODE_AUDIO_TRACK_INIT_FAILED] occurred while playing
Content Country: GB
Content Language: en-
App Language: fr_FR
Service: YouTube
Version: 0.25.0
OS: Linux Android 9 - 28
Crash log
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:102)
at android.os.Looper.loop(Looper.java:198)
at android.os.HandlerThread.run(HandlerThread.java:65)
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:2110)
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
I don't know if it's related, but I've also noticed that in the play store, when I check the the compatibility of any app with my device, it is identified as Asus UNKNOWN_PRJ_ID, instead of X00QD.
I don't know how to proceed from there, is my phone fixable ?
The last time it happened, I was able to fix the issue by shutting down and restarting the phone a dozen times, but this time it's not working.
Llorenzaccio said:
My Asus Zenfone 5 is beginning to have some malfunctions :
No more sound, which means :
I can't make calls (the phone freezes to black and I can only start it up again by holding the power button)
I can't receive calls (callers go directly to voicemail)
I can't open the camera to take pictures or videos
Alarms don't ring, they just vibrate
I can't listen to music
I can't watch videos (videos taken with my phone, on youtube, on any social media app...) : video just won't start.
I got this bug report from NewPipe, a youtube client :
Exception​
User Action: play stream
Request: Player error[type=ERROR_CODE_AUDIO_TRACK_INIT_FAILED] occurred while playing
Content Country: GB
Content Language: en-
App Language: fr_FR
Service: YouTube
Version: 0.25.0
OS: Linux Android 9 - 28
Crash log
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:102)
at android.os.Looper.loop(Looper.java:198)
at android.os.HandlerThread.run(HandlerThread.java:65)
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:2110)
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
I don't know if it's related, but I've also noticed that in the play store, when I check the the compatibility of any app with my device, it is identified as Asus UNKNOWN_PRJ_ID, instead of X00QD.
I don't know how to proceed from there, is my phone fixable ?
The last time it happened, I was able to fix the issue by shutting down and restarting the phone a dozen times, but this time it's not working.
Click to expand...
Click to collapse
Stating the obvious, it could be hardware related. Has the phone been dropped ever or been contact by liquid, water, etc?
Are you running stock ASUS ROM?
You could back up and try factory reset.