IntentService started twice - android

I have used IntentSerivce to download a large json. I have used Gson and Retrofit2 in the first place. After I have found that Jackson is better for marshaling of large json.
And here problem starts, intentService has been triggered twice even in code is called only once.
I am triggering intentService from splash screen, the orientation of the device is landscape. There are no flipping up/down so I guess that there is no recreation of activity when orientation is changed. Also app is hardcoded to start in landscape orientation.
Here are logs from logCat
I/APPLICATION CLASS: DB FOUND
02-28 10:15:25.034 1561-2108/? I/ActivityManager: START u0 {flg=0x10000000 cmp=aoc.netcast.rs.android_ott_client/.view.SplashScreen} from uid 10073 on display 0
02-28 10:15:25.040 3195-3195/? I/INTENT PERFORMING: Starting intent...
02-28 10:15:25.041 3195-3195/? I/INTENT PERFORMING: Intent started...
02-28 10:15:25.053 1206-1286/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
02-28 10:15:25.062 3195-3210/? W/nAnnotationIntrospector: Unable to load JDK7 annotation types; will have to skip
02-28 10:15:25.074 3195-3195/? I/INTENT PERFORMING: Starting intent...
02-28 10:15:25.074 3195-3195/? I/INTENT PERFORMING: Intent started...
02-28 10:15:25.090 3195-3210/? W/System.err: WARNING: could not load Java7 Path class
02-28 10:15:25.330 1206-1206/? E/SurfaceFlinger: rejecting buffer: bufWidth=1080, bufHeight=1920, front.active.{w=1080, h=1776}
[ 02-28 10:15:25.341 3195: 3209 D/ ]
HostConnection::get() New Host Connection established 0x7fa7db557360, tid 3209
02-28 10:15:25.344 3195-3209/? I/OpenGLRenderer: Initialized EGL, version 1.4
02-28 10:15:25.344 1561-1612/? I/InputReader: Reconfiguring input devices. changes=0x00000004
02-28 10:15:25.344 1561-1612/? I/InputReader: Device reconfigured: id=0, name='qwerty2', size 1080x1920, orientation 1, mode 1, display id 0
02-28 10:15:25.350 1694-2096/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7fa7cf1b1b10
02-28 10:15:25.353 1694-2096/? E/EGL_emulation: tid 2096: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH)
02-28 10:15:25.353 1694-2096/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x7fa7ce77fa80, error=EGL_BAD_MATCH
02-28 10:15:25.365 3195-3209/? E/EGL_emulation: tid 3209: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH)
02-28 10:15:25.365 3195-3209/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x7fa7db548c40, error=EGL_BAD_MATCH
02-28 10:15:25.367 1694-2096/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7fa7cf1b23d0
02-28 10:15:25.378 1694-2096/? E/EGL_emulation: tid 2096: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH)
02-28 10:15:25.378 1694-2096/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x7fa7ce77fac0, error=EGL_BAD_MATCH
02-28 10:15:25.449 1561-1580/? I/ActivityManager: Displayed aoc.netcast.rs.android_ott_client/.view.SplashScreen: +390ms (total +578ms)
02-28 10:15:25.458 1561-1580/? I/WindowManager: Screen frozen for +559ms due to Window{85b86c9 u0 aoc.netcast.rs.android_ott_client/aoc.netcast.rs.android_ott_client.view.SplashScreen}
02-28 10:15:27.461 1561-1580/? I/art: Starting a blocking GC Explicit
02-28 10:15:27.471 1561-1580/? I/art: Explicit concurrent mark sweep GC freed 14571(904KB) AllocSpace objects, 3(60KB) LOS objects, 31% free, 8MB/12MB, paused 127us total 9.460ms
02-28 10:15:30.335 1561-2989/? I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
I don't know why is this happening, can you please help me to solve this?

Related

Superpowered Sdk- write changed audio effected file to external storage

I need to write the output file in external storage with applied effects but don't know how to do this. Any help will be highly appreciated to make audio output mp3 or mp4 file with effects. I have successfully done the pitch change of real time, I have used some code of write file to external storage but the file generated is only 0 bytes and corrupted.I have used below code
const char *output1 = "/storage/emulated/0/Music/123456.mp3";
const char *openError = decoder->open(input, false, 0, 0, 0);
if (openError) {
delete decoder;
return false;
};
FILE *fd = createWAV(output1, decoder->samplerate, 2);
if (!fd) {
delete decoder;
return false;
};
float effectMix = 0.5f;
SuperpoweredFX *effect = NULL;
if (effectId == 0) {
player->setPitchShift(10);
effect = new SuperpoweredEcho(decoder->samplerate);
((SuperpoweredEcho *) effect)->setMix(effectMix);
} else if (effectId == 1) {
effect = new SuperpoweredReverb(decoder->samplerate);
((SuperpoweredReverb *) effect)->setMix(effectMix);
}
if (effect == NULL) {
delete decoder;
return false;
}
effect->enable(true);
short int *intBuffer = (short int *) malloc(
decoder->samplesPerFrame * 2 * sizeof(short int) + 16384);
float *floatBuffer = (float *) malloc(decoder->samplesPerFrame * 2 * sizeof(float) + 1024);
unsigned int samplesDecoded;
while (true) {
samplesDecoded = decoder->samplesPerFrame;
if (decoder->decode(intBuffer, &samplesDecoded) == SUPERPOWEREDDECODER_ERROR) {
break;
}
if (samplesDecoded < 1) {
break;
}
SuperpoweredShortIntToFloat(intBuffer, floatBuffer, samplesDecoded);
effect->process(floatBuffer, floatBuffer, samplesDecoded);
// Convert the PCM samples from 32-bit floating point to 16-bit integer.
SuperpoweredFloatToShortInt(floatBuffer, intBuffer, samplesDecoded);
}
fwrite(intBuffer, 1, samplesDecoded * 4, fd);
closeWAV(fd);
delete decoder;
delete effect;
free(intBuffer);
free(floatBuffer);
return true;
Please help with this code.
I have error like below.
11-14 14:48:35.447 10065-10065/? I/art: Late-enabling -Xcheck:jni
VMHOOK: rlim_cur : 0 pid:10065
11-14 14:48:35.497 10065-10070/? E/art: Failed sending reply to debugger: Broken pipe
11-14 14:48:35.507 10065-10070/? I/art: Debugger is no longer active
11-14 14:48:35.537 10065-10065/? I/MultiDex: VM with version 2.1.0 has multidex support
Installing application
VM has multidex support, MultiDex support library is disabled.
11-14 14:48:35.627 10065-10065/? V/FA: Registered activity lifecycle callback
11-14 14:48:35.647 10065-10065/? D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
11-14 14:48:35.647 10065-10065/? I/FirebaseInitProvider: FirebaseApp initialization successful
11-14 14:48:35.847 10065-10080/? V/FA: Collection enabled
App package, google app id: com.korakoepitchchanger, 1:872304933700:android:c6dbb37cfd23f040
11-14 14:48:35.847 10065-10080/? I/FA: App measurement is starting up, version: 13001
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.korakoepitchchanger
11-14 14:48:35.847 10065-10080/? D/FA: Debug-level message logging enabled
11-14 14:48:35.947 10065-10080/? V/FA: Connecting to remote service
11-14 14:48:36.127 10065-10080/? V/FA: Connection attempt already in progress
11-14 14:48:36.497 10065-10065/? V/FA: onActivityCreated
11-14 14:48:36.557 10065-10080/com.korakoepitchchanger I/FA: Tag Manager is not found and thus will not be used
11-14 14:48:36.587 10065-10080/com.korakoepitchchanger D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=SplashActivity, firebase_screen_id(_si)=2861861576925568549}]
11-14 14:48:36.657 10065-10080/com.korakoepitchchanger V/FA: Connection attempt already in progress
Connection attempt already in progress
Activity resumed, time: 187857395
11-14 14:48:36.707 10065-10080/com.korakoepitchchanger D/FA: Connected to remote service
11-14 14:48:36.707 10065-10080/com.korakoepitchchanger V/FA: Processing queued up service tasks: 4
11-14 14:48:37.077 10065-10080/com.korakoepitchchanger V/FA: Screen exposed for less than 1000 ms. Event not sent. time: 530
Activity paused, time: 187857925
11-14 14:48:37.217 10065-10065/com.korakoepitchchanger V/FA: onActivityCreated
11-14 14:48:37.377 10065-10065/com.korakoepitchchanger I/CrashlyticsCore: Initializing Crashlytics 2.6.3.25
11-14 14:48:37.437 10065-10164/com.korakoepitchchanger D/libc: [NET] android_getaddrinfofornetcontext+,hn 24(0x73657474696e67),sn(),hints(known),family 0,flags 1024, proc=com.korakoepitchchanger
[NET] android_getaddrinfo_proxy get netid:0
11-14 14:48:37.457 10065-10164/com.korakoepitchchanger D/libc: [NET] android_getaddrinfo_proxy-, success
11-14 14:48:37.997 10065-10065/com.korakoepitchchanger I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:10900
Selected remote version of com.google.android.gms.ads.dynamite, version >= 10900
11-14 14:48:38.097 10065-10065/com.korakoepitchchanger W/System: ClassLoader referenced unknown path: /data/data/com.google.android.gms/app_chimera/m/00000034/n/arm64-v8a
11-14 14:48:38.167 10065-10065/com.korakoepitchchanger D/DynamitePackage: Instantiated singleton DynamitePackage.
Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl
11-14 14:48:38.797 10065-10065/com.korakoepitchchanger I/WebViewFactory: Loading com.google.android.webview version 70.0.3538.80 (code 353808050)
11-14 14:48:39.077 10065-10164/com.korakoepitchchanger D/libc: [NET] android_getaddrinfofornetcontext+,hn 19(0x6170692e637261),sn(),hints(known),family 0,flags 1024, proc=com.korakoepitchchanger
11-14 14:48:39.087 10065-10164/com.korakoepitchchanger D/libc: [NET] android_getaddrinfo_proxy get netid:0
11-14 14:48:39.107 10065-10164/com.korakoepitchchanger D/libc: [NET] android_getaddrinfo_proxy-, success
11-14 14:48:39.317 10065-10075/com.korakoepitchchanger I/art: Background sticky concurrent mark sweep GC freed 8353(1299KB) AllocSpace objects, 5(100KB) LOS objects, 1% free, 101MB/102MB, paused 1.796ms total 102.918ms
11-14 14:48:39.327 10065-10065/com.korakoepitchchanger I/art: Rejecting re-init on previously-failed class java.lang.Class<hs>
Rejecting re-init on previously-failed class java.lang.Class<hs>
11-14 14:48:39.387 10065-10065/com.korakoepitchchanger I/cr_LibraryLoader: Time to load native libraries: 2 ms (timestamps 1635-1637)
11-14 14:48:39.647 10065-10065/com.korakoepitchchanger I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
11-14 14:48:39.657 10065-10065/com.korakoepitchchanger I/cr_LibraryLoader: Expected native library version number "70.0.3538.80", actual native library version number "70.0.3538.80"
11-14 14:48:39.807 10065-10065/com.korakoepitchchanger I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
11-14 14:48:39.867 10065-10075/com.korakoepitchchanger W/art: Suspending all threads took: 54.598ms
11-14 14:48:39.877 10065-10075/com.korakoepitchchanger I/art: Background sticky concurrent mark sweep GC freed 10288(811KB) AllocSpace objects, 2(40KB) LOS objects, 0% free, 101MB/102MB, paused 57.343ms total 82.106ms
11-14 14:48:40.657 10065-10164/com.korakoepitchchanger W/CrashlyticsCore: Expected method missing: registerOnMeasurementEventListener
java.lang.NoSuchMethodException: parameter type is null
at java.lang.Class.getMethod(Class.java:616)
at java.lang.Class.getDeclaredMethod(Class.java:586)
at com.crashlytics.android.c.u.a(Unknown Source)
at com.crashlytics.android.c.u.a(Unknown Source)
at com.crashlytics.android.c.k.a(Unknown Source)
at com.crashlytics.android.c.l.d(Unknown Source)
at com.crashlytics.android.c.l.f(Unknown Source)
at b.a.a.a.h.a(Unknown Source)
at b.a.a.a.h.a(Unknown Source)
at b.a.a.a.a.c.a$2.call(Unknown Source)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
11-14 14:48:41.177 10065-10317/com.korakoepitchchanger W/cr_media: Requires BLUETOOTH permission
11-14 14:48:41.207 10065-10337/com.korakoepitchchanger E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
11-14 14:48:41.207 10065-10337/com.korakoepitchchanger I/Adreno: QUALCOMM build : 8249e7b, Iacb76f3f7d
Build Date : 03/22/16
OpenGL ES Shader Compiler Version: XE031.06.00.05
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.BR.1.2.6_RB1.06.00.01.179.016
Remote Branch : NONE
Reconstruct Branch : NOTHING
11-14 14:48:41.427 10065-10065/com.korakoepitchchanger D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
11-14 14:48:41.437 10065-10313/com.korakoepitchchanger D/libc: [NET] android_getaddrinfofornetcontext+,hn 27(0x676f6f676c6561),sn(),hints(known),family 0,flags 1024, proc=com.korakoepitchchanger
[NET] android_getaddrinfo_proxy get netid:0
11-14 14:48:41.457 10065-10313/com.korakoepitchchanger D/libc: [NET] android_getaddrinfo_proxy-, success
11-14 14:48:41.497 10065-10337/com.korakoepitchchanger W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
11-14 14:48:41.577 10065-10337/com.korakoepitchchanger W/VideoCapabilities: Unsupported mime video/x-ms-wmv
11-14 14:48:41.597 10065-10337/com.korakoepitchchanger W/AudioCapabilities: Unsupported mime audio/qcelp
11-14 14:48:41.607 10065-10337/com.korakoepitchchanger W/AudioCapabilities: Unsupported mime audio/x-ms-wma
Unsupported mime audio/qcelp
11-14 14:48:41.607 10065-10337/com.korakoepitchchanger W/VideoCapabilities: Unsupported mime video/x-ms-wmv
11-14 14:48:41.617 10065-10337/com.korakoepitchchanger W/AudioCapabilities: Unsupported mime audio/ac3
11-14 14:48:41.637 10065-10065/com.korakoepitchchanger I/Ads: Updating ad debug logging enablement.
11-14 14:48:41.677 10065-10075/com.korakoepitchchanger W/art: Suspending all threads took: 8.034ms
11-14 14:48:41.687 10065-10075/com.korakoepitchchanger I/art: Background sticky concurrent mark sweep GC freed 3313(196KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 102MB/102MB, paused 12.936ms total 70.241ms
11-14 14:48:41.747 10065-10075/com.korakoepitchchanger W/art: Suspending all threads took: 8.534ms
11-14 14:48:41.757 10065-10075/com.korakoepitchchanger I/art: Background partial concurrent mark sweep GC freed 12066(895KB) AllocSpace objects, 2(120KB) LOS objects, 13% free, 102MB/118MB, paused 11.969ms total 73.844ms
11-14 14:48:41.777 10065-10065/com.korakoepitchchanger I/Ads: Starting ad request.
SDK version: afma-sdk-a-v14574021.12451000.1
Use AdRequest.Builder.addTestDevice("8884694ABCF6A031A5CA1B31EF06F481") to get test ads on this device.
11-14 14:48:41.777 10065-10065/com.korakoepitchchanger W/Ads: Not retrying to fetch app settings
11-14 14:48:41.797 10065-10337/com.korakoepitchchanger I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
11-14 14:48:41.957 10065-10080/com.korakoepitchchanger D/FA: Logging event (FE): _vs, Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SplashActivity, firebase_previous_id(_pi)=2861861576925568549, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=2861861576925568551}]
11-14 14:48:42.047 10065-10236/com.korakoepitchchanger W/Ads: Update ad debug logging enablement as false
11-14 14:48:42.067 10065-10080/com.korakoepitchchanger V/FA: Activity resumed, time: 187862712
11-14 14:48:42.847 10065-10077/com.korakoepitchchanger W/Ads: There was a problem getting an ad response. ErrorCode: 0
11-14 14:48:42.877 10065-10080/com.korakoepitchchanger D/FA: Logging event (FE): ad_query(_aq), Bundle[{firebase_event_origin(_o)=am, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=2861861576925568551, ad_event_id(_aeid)=2861861576925568550}]
11-14 14:48:42.927 10065-10065/com.korakoepitchchanger W/Ads: Failed to load ad: 0
11-14 14:48:43.237 10065-10065/com.korakoepitchchanger E/=>>>: Visible
11-14 14:48:47.897 10065-10080/com.korakoepitchchanger V/FA: Activity paused, time: 187868740
11-14 14:48:47.897 10065-10080/com.korakoepitchchanger D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=6028, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=2861861576925568551}]
11-14 14:48:51.817 10065-10080/com.korakoepitchchanger V/FA: Activity resumed, time: 187872663
Screen exposed for less than 1000 ms. Event not sent. time: 7
11-14 14:48:51.827 10065-10080/com.korakoepitchchanger V/FA: Activity paused, time: 187872669
11-14 14:48:52.017 10065-10065/com.korakoepitchchanger V/FA: onActivityCreated
11-14 14:48:52.087 10065-10065/com.korakoepitchchanger I/>>>: applied
11-14 14:48:52.097 10065-10065/com.korakoepitchchanger I/>>>: applied
11-14 14:48:52.097 10065-10065/com.korakoepitchchanger E/>>>: /storage/emulated/0/Music/123.mp3
11-14 14:48:52.187 10065-10065/com.korakoepitchchanger I/>>>: applied
11-14 14:48:52.207 10065-10065/com.korakoepitchchanger E/>>>>: 30
11-14 14:48:52.257 10065-10080/com.korakoepitchchanger D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=MainActivity, firebase_previous_id(_pi)=2861861576925568551, firebase_screen_class(_sc)=Temp2Activity, firebase_screen_id(_si)=2861861576925568552}]
11-14 14:48:52.377 10065-10080/com.korakoepitchchanger V/FA: Activity resumed, time: 187873057
11-14 14:48:53.137 10065-10065/com.korakoepitchchanger W/MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: /storage/emulated/0/Music/123.mp3
11-14 14:48:53.137 10065-10065/com.korakoepitchchanger V/MediaPlayer: network type=wifi
11-14 14:48:53.167 10065-10065/com.korakoepitchchanger I/MediaPlayer: It's not a proxy project.
11-14 14:48:53.167 10065-10065/com.korakoepitchchanger D/MediaPlayer: ANDROID_HTC_INVOKE_GET_CALLING_PROCESS packageName: com.korakoepitchchanger
11-14 14:48:53.247 10065-10065/com.korakoepitchchanger D/MediaPlayer: setSubtitleAnchor in MediaPlayer
11-14 14:48:53.307 10065-10065/com.korakoepitchchanger E/>>>>: 30
11-14 14:48:54.307 10065-10065/com.korakoepitchchanger E/>>>>: 30
11-14 14:48:54.577 10065-10761/com.korakoepitchchanger A/libc: invalid address or address of corrupt block 0x5570b17e30 passed to dlfree
11-14 14:48:54.777 10065-10761/com.korakoepitchchanger W/google-breakpad: Failed to generate minidump.
11-14 14:48:54.877 10065-10761/com.korakoepitchchanger W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
Chrome build fingerprint:
70.0.3538.80
353808050
### ### ### ### ### ### ### ### ### ### ### ### ###
11-14 14:48:54.877 10065-10761/com.korakoepitchchanger A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xdeadbaad in tid 10761 (AsyncTask #1)
11-14 14:48:56.687 10065-10759/com.korakoepitchchanger W/AudioTrack: releaseBuffer() track 0x5570bad4f0 disabled due to previous underrun, restarting
error log shows some firebase issues but one major issue found in the code is you have put
fwrite(intBuffer, 1, samplesDecoded * 4, fd);
outside the while loop.
It should be inside it as the intBuffer gets filled with chunk of audio data in each iteration.

Android: Instant app showing just white screen

I was trying to make an basic Hello world instant app. For that I am following https://developer.android.com/topic/instant-apps/getting-started/first-instant-app.html
I have set up everything as per the doc, but I am not able to get my app running properly. All I am getting is a white screen
SDK updated
Output
Even I am not getting any thing meaningful from logcat output also
06-29 11:37:14.376 5419-5431/? I/DevAtomProvider: Dev Manager providing jar from /data/user/0/com.google.android.instantapps.devman/cache/iapk_atoms/com.example.myfourthinstantapplication/atom-download--feature-1498716430329/feature.jar
06-29 11:37:14.111 5529-5529/? W/isor.isolated15: type=1400 audit(0.0:26): avc: denied { getattr } for path="/data/data/com.google.android.instantapps.supervisor" dev="dm-0" ino=7647 scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
06-29 11:37:14.660 5475-5559/? E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
06-29 11:37:14.666 5475-5559/? I/aiagpu: [0629/113714:INFO:gpu_host.cc(46)] [channel = GPU_CHANNEL_1] init
[ 06-29 11:37:14.671 5475: 5559 D/ ]
HostConnection::get() New Host Connection established 0x91f551c0, tid 5559
[ 06-29 11:37:14.675 5475: 5559 W/ ]
Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
06-29 11:37:14.683 5475-5559/? D/EGL_emulation: eglCreateContext: 0xa2b91dc0: maj 1 min 0 rcv 1
06-29 11:37:14.690 5475-5559/? W/System: ClassLoader referenced unknown path:
06-29 11:37:14.715 5475-5475/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
06-29 11:37:14.768 5475-5564/? I/Isotope: UID: [10086] PID: [5475] HygieneTaskService : Starting task: HygieneTaskService.schedule
06-29 11:37:14.794 5475-5564/? W/InstanceID/Rpc: Found 10013
06-29 11:37:14.939 5529-5540/? V/native: jni_stub.cpp:24 Read:32 from instant_app_interface_fd
06-29 11:37:14.939 5529-5540/? V/native: jni_stub.cpp:42 Read function ptr : 1
06-29 11:37:14.939 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/gpu/GpuClientCreatorNativeImpl 0xa5735904 2
06-29 11:37:14.939 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/gpu/WindowContainerNativeImpl 0xa573591c 2
06-29 11:37:14.939 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/gpu/WindowBufferContainerNativeImpl 0xa5735934 2
06-29 11:37:14.940 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/syscall/SyscallServiceClient 0xa5735a00 6
06-29 11:37:14.940 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/syscall/IPCNative 0xa5737a34 1
06-29 11:37:14.940 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/syscall/SyscallService 0xa57359a0 6
06-29 11:37:14.940 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/syscall/NativeLogSettings 0xa5735a60 6
06-29 11:37:14.940 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/gpu/GpuHostCreatorNativeImpl 0xa57358e0 3
06-29 11:37:14.940 5529-5540/? D/native: jni_stub.cpp:63 Registering com/google/android/instantapps/supervisor/syscall/LibraryLoader 0xa57359e8 1
06-29 11:37:15.345 5475-5559/? W/Isotope: UID: [10086] PID: [5475] ServiceMgrForwarder : Service not found: dropbox
06-29 11:37:15.347 5475-5559/? W/Isotope: UID: [10086] PID: [5475] ServiceMgrForwarder : Service not found: graphicsstats
06-29 11:37:15.363 5475-5559/? W/Isotope: UID: [10086] PID: [5475] ServiceMgrForwarder : Service not found: overlay
06-29 11:37:15.553 5529-5567/? D/SyscallServiceClient: Syscall client initialized
06-29 11:37:15.562 5529-5540/? I/aiagpu: [0629/113715:INFO:gpu_client.cc(55)] GpuClient::Initialize
06-29 11:37:15.606 5475-5555/? I/IsotopeNative: storage_manager.cpp:171 [StorageManager]: calling uid 99002 with package name com.example.myfourthinstantapplication cannot access /data/user wrt root directory /data/data/com.google.android.instantapps.supervisor/files
06-29 11:37:15.606 5475-5555/? I/IsotopeNative: storage_manager.cpp:171 [StorageManager]: calling uid 99002 with package name com.example.myfourthinstantapplication cannot access /data/user wrt root directory /data/data/com.google.android.instantapps.supervisor/files
06-29 11:37:15.606 5475-5555/? I/IsotopeNative: storage_manager.cpp:171 [StorageManager]: calling uid 99002 with package name com.example.myfourthinstantapplication cannot access /data/user wrt root directory /data/data/com.google.android.instantapps.supervisor/files
06-29 11:37:15.607 5475-5555/? I/IsotopeNative: storage_manager.cpp:171 [StorageManager]: calling uid 99002 with package name com.example.myfourthinstantapplication cannot access /data/user wrt root directory /data/data/com.google.android.instantapps.supervisor/files
06-29 11:37:15.607 5475-5555/? I/IsotopeNative: storage_manager.cpp:171 [StorageManager]: calling uid 99002 with package name com.example.myfourthinstantapplication cannot access /data/user wrt root directory /data/data/com.google.android.instantapps.supervisor/files
06-29 11:37:15.607 5475-5555/? I/IsotopeNative: storage_manager.cpp:171 [StorageManager]: calling uid 99002 with package name com.example.myfourthinstantapplication cannot access /data/user wrt root directory /data/data/com.google.android.instantapps.supervisor/files
06-29 11:37:15.607 5475-5555/? I/IsotopeNative: storage_manager.cpp:171 [StorageManager]: calling uid 99002 with package name com.example.myfourthinstantapplication cannot access /data/user wrt root directory /data/data/com.google.android.instantapps.supervisor/files
06-29 11:37:18.003 1931-3113/? W/io.grpc.internal.ci: [{0}] Failed to resolve name. status={1}
06-29 11:37:18.051 1550-1584/? I/InputReader: Reconfiguring input devices. changes=0x00000010
06-29 11:37:18.060 1717-1717/? D/CarrierSvcBindHelper: No carrier app for: 0
06-29 11:37:22.085 2559-2625/? I/Finsky: [150] com.google.android.finsky.g.d.a(24): Completed 0 account content syncs with 0 successful.
06-29 11:37:22.087 2559-2559/? I/Finsky: [1] com.google.android.finsky.services.e.a(5): Installation state replication succeeded.
06-29 11:37:33.022 1313-1335/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 3574921 , only wrote 3574080
06-29 11:37:33.109 1550-1563/? I/ProcessStatsService: Prepared write state in 9ms
06-29 11:37:33.233 5529-5529/? W/art: Attempt to set the sensitive thread twice. Tid:5529
06-29 11:37:33.383 5475-5485/? I/art: Background partial concurrent mark sweep GC freed 19558(1255KB) AllocSpace objects, 8(252KB) LOS objects, 35% free, 7MB/11MB, paused 4.514ms total 155.311ms
06-29 11:37:33.409 1550-1855/? I/ActivityManager: START u0 {dat=https://myfourthinstantapplication.example.com/... flg=0x10000000 cmp=com.google.android.instantapps.supervisor/.shadow.ShadowActivity10 (has extras)} from uid 10086 on display 0
06-29 11:37:33.489 1269-1305/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 2691072
06-29 11:37:33.509 1550-1559/? I/art: Background partial concurrent mark sweep GC freed 11387(828KB) AllocSpace objects, 4(208KB) LOS objects, 23% free, 12MB/16MB, paused 2.852ms total 113.459ms
06-29 11:37:33.520 1269-1269/? E/EGL_emulation: tid 1269: eglCreateSyncKHR(1901): error 0x3004 (EGL_BAD_ATTRIBUTE)
06-29 11:37:33.597 1985-2151/? D/EGL_emulation: eglMakeCurrent: 0xb0305480: ver 2 0 (tinfo 0xb03036c0)
06-29 11:37:33.708 1550-1559/? I/art: Background partial concurrent mark sweep GC freed 1008(54KB) AllocSpace objects, 0(0B) LOS objects, 23% free, 13MB/17MB, paused 3.307ms total 152.453ms
06-29 11:37:33.943 1630-1648/? I/art: Background partial concurrent mark sweep GC freed 14682(952KB) AllocSpace objects, 2(132KB) LOS objects, 25% free, 11MB/15MB, paused 2.209ms total 115.433ms
06-29 11:37:33.945 5529-5529/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
06-29 11:37:34.586 1269-1274/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
06-29 11:37:34.587 5475-5487/? W/Isotope: UID: [10086] PID: [5475] ServiceMgrForwarder : Service not found: graphicsstats
[ 06-29 11:37:34.591 5475: 5486 D/ ]
HostConnection::get() New Host Connection established 0x91f18840, tid 5486
[ 06-29 11:37:34.593 5475: 5486 W/ ]
Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
[ 06-29 11:37:34.623 5529: 5529 D/ ]
HostConnection::get() New Host Connection established 0xa3eb2bc0, tid 5529
[ 06-29 11:37:34.624 5529: 5529 W/ ]
Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
06-29 11:37:34.736 5529-5579/? D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
06-29 11:37:34.737 5475-5486/? I/IsotopeNative: storage_manager.cpp:171 [StorageManager]: calling uid 99002 with package name com.example.myfourthinstantapplication cannot access /dev/socket/property_service wrt root directory /data/data/com.google.android.instantapps.supervisor/files
06-29 11:37:34.737 5475-5486/? W/IsotopeNative: syscall_server.cpp:737 [SyscallServer]: SyscallServer: accessing path /dev/socket/property_service in 8 which is not allowed!
06-29 11:37:34.762 5529-5579/? D/libEGL: loaded /system/lib/egl/libGLES_emulation.so
06-29 11:37:34.926 5529-5529/? W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
06-29 11:37:34.977 5529-5579/? I/OpenGLRenderer: Initialized EGL, version 1.4
06-29 11:37:34.977 5529-5579/? D/OpenGLRenderer: Swap behavior 1
06-29 11:37:34.977 5529-5579/? W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
06-29 11:37:34.977 5529-5579/? D/OpenGLRenderer: Swap behavior 0
[ 06-29 11:37:34.979 5475: 5570 D/ ]
HostConnection::get() New Host Connection established 0x91f25000, tid 5570
[ 06-29 11:37:34.983 5475: 5570 W/ ]
Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
[ 06-29 11:37:35.025 5475: 5580 D/ ]
HostConnection::get() New Host Connection established 0x91f259c0, tid 5580
[ 06-29 11:37:35.028 5475: 5580 W/ ]
Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
06-29 11:37:35.068 5475-5580/? D/EGL_emulation: eglCreateContext: 0xa2bcb900: maj 2 min 0 rcv 2
06-29 11:37:35.072 5475-5580/? D/EGL_emulation: eglMakeCurrent: 0xa2bcb900: ver 2 0 (tinfo 0x905ff620)
06-29 11:37:35.214 5475-5580/? D/EGL_emulation: eglMakeCurrent: 0xa2bcb900: ver 2 0 (tinfo 0x905ff620)
06-29 11:37:35.446 5475-5512/? D/EGL_emulation: eglMakeCurrent: 0xb0305660: ver 2 0 (tinfo 0xb0303700)
06-29 11:37:35.451 1550-1570/? I/ActivityManager: Displayed com.google.android.instantapps.supervisor/.shadow.ShadowActivity10: +2s4ms
06-29 11:37:35.860 1550-1570/? I/WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.WindowStateAnimator.finishExit:565 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:427 com.android.server.wm.WindowAnimator.updateAppWindowsLocked:176 com.android.server.wm.WindowAnimator.animateLocked:678
06-29 11:37:35.889 5475-5475/? D/Supervisor: UrlHandler stopping
06-29 11:37:35.907 1550-1855/? I/ActivityManager: Activity reported stop, but no longer stopping: ActivityRecord{25fc4e u0 com.google.android.instantapps.supervisor/.UrlHandler t29 f}
06-29 11:37:36.262 1313-1336/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 3883444 , only wrote 3729600
06-29 11:37:41.168 1550-2912/? D/ConnectivityService: reportNetworkConnectivity(100, false) by 10013
06-29 11:37:41.193 1550-2016/? I/ActivityManager: Start proc 5588:com.google.android.talk/u0a55 for broadcast com.google.android.talk/com.google.android.apps.hangouts.service.GcmStateReceiver
06-29 11:37:41.198 5588-5588/? W/art: Unexpected CPU variant for X86 using defaults: x86
06-29 11:37:41.201 1550-1571/? W/ProcessCpuTracker: Skipping unknown process pid 5587
06-29 11:37:41.247 5588-5588/? W/System: ClassLoader referenced unknown path: /system/app/Hangouts/lib/x86
06-29 11:37:41.477 5588-5588/? I/Babel_telephony: TeleModule.onApplicationCreate
06-29 11:37:41.494 5588-5611/? I/Babel_SMS: MmsConfig: mnc/mcc: 310/260
06-29 11:37:41.494 5588-5611/? I/Babel_SMS: MmsConfig.loadMmsSettings
06-29 11:37:41.498 5588-5611/? I/Babel_SMS: MmsConfig.loadDeviceMmsSettings from API: mUserAgent=GoldfishNexus, mUaProfUrl=http://gsm.lge.com/html/gsm/Nexus5-M3.xml
06-29 11:37:41.499 5588-5611/? I/Babel_SMS: MmsConfig.loadFromDatabase
06-29 11:37:41.513 5588-5611/? E/SQLiteLog: (1) no such table: mmsconfig
06-29 11:37:41.520 5588-5611/? I/Babel_SMS: MmsConfig: no mmsconfig table android.database.sqlite.SQLiteException: no such table: mmsconfig (code 1): , while compiling: SELECT key, value, type FROM mmsconfig WHERE numeric=?
06-29 11:37:41.520 5588-5611/? I/Babel_SMS: MmsConfig.loadFromResources
06-29 11:37:41.521 5588-5611/? E/Babel_SMS: canonicalizeMccMnc: invalid mccmnc nullnull
06-29 11:37:41.522 5588-5611/? W/Babel_SMS: MmsConfig: invalid key=userAgent or type=string
06-29 11:37:41.522 5588-5611/? W/Babel_SMS: MmsConfig: invalid key=uaProfUrl or type=string
06-29 11:37:41.522 5588-5611/? I/Babel_SMS: MmsConfig.loadMmsSettings: mUserAgent=GoldfishNexus, mUaProfUrl=http://gsm.lge.com/html/gsm/Nexus5-M3.xml
06-29 11:37:41.531 5588-5588/? I/Babel_Prime: wrapCrashReportingIntoUncaughtExceptionHandler
06-29 11:37:41.531 5588-5588/? I/Babel_Prime: isMemoryEnabled=false
06-29 11:37:41.532 5588-5588/? I/Babel_Prime: isTimerEnabled=false
06-29 11:37:41.532 5588-5588/? I/Babel_Prime: isCrashCounterEnabled=true
06-29 11:37:41.552 5588-5588/? I/Babel_Crash: Startup - clean
06-29 11:37:41.591 1550-1598/? D/ConnectivityService: NetworkAgentInfo [MOBILE (LTE) - 100] validation passed
06-29 11:37:41.610 5588-5588/? I/Babel_Prime: startMemoryMonitor
06-29 11:37:41.631 5588-5588/? D/Babel: onCreate: Shutdown runnable posted in onCreate with a delay of 5000 ms.
06-29 11:37:41.783 5588-5588/? V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 259 native methods...
06-29 11:37:41.843 5588-5588/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
06-29 11:37:41.850 5588-5588/? I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
06-29 11:37:41.874 5588-5588/? D/Babel: Idle: Shutdown runnable posted in release with a delay of 5000 ms.
06-29 11:37:46.921 5588-5588/? D/Babel: RefCountedService(com.google.android.apps.hangouts.requestwriter.RequestWriter) onDestroy (count=0, startId=1 stopped=true)
06-29 11:37:46.924 1550-3351/? I/ActivityManager: Killing 4980:com.google.android.talk:matchstick/u0a55 (adj 906): empty #17
06-29 11:37:46.952 1550-2016/? D/ActivityManager: cleanUpApplicationRecord -- 4980
06-29 11:37:47.537 1550-1559/? I/art: Background sticky concurrent mark sweep GC freed 38683(3MB) AllocSpace objects, 6(264KB) LOS objects, 22% free, 13MB/17MB, paused 2.228ms total 225.708ms
06-29 11:37:56.504 5588-5606/? W/Babel: bcq TOOK TOO LONG! (15041ms > 10000ms)
06-29 11:37:56.504 5588-5607/? W/Babel: bcq TOOK TOO LONG! (15026ms > 10000ms)
06-29 11:37:56.525 5627-5627/? W/art: Unexpected CPU variant for X86 using defaults: x86
06-29 11:37:56.526 1550-1563/? I/ActivityManager: Start proc 5627:com.google.android.talk:matchstick/u0a55 for broadcast com.google.android.talk/com.google.android.libraries.matchstick.net.MatchstickInProcessReceiver
06-29 11:37:56.534 1550-1561/? I/Telecom: PhoneAccountRegistrar: SimCallManager queried, returning: null: TSI.gSCM#AHM
06-29 11:37:56.540 5588-5588/? I/Babel_telephony: TeleModule.updateConnectionManagerRegistration, registration preference changed from false to false
06-29 11:37:56.540 5588-5588/? W/Babel: BAM#gBA: invalid account id: -1
06-29 11:37:56.540 5588-5588/? W/Babel: BAM#gBA: invalid account id: -1
06-29 11:37:56.540 5588-5588/? I/Babel_telephony: TeleModule.updateIncomingCallRegistration, preferred account for incoming calls changed from: null to null
06-29 11:37:56.548 1550-2015/? I/Telecom: PhoneAccountRegistrar: SimCallManager queried, returning: null: TSI.gSCM#AHU
06-29 11:37:56.573 5627-5627/? W/System: ClassLoader referenced unknown path: /system/app/Hangouts/lib/x86
06-29 11:37:56.798 5627-5642/? I/MS_RegisterService: RegisterService intent:Intent { act=register_intent_action flg=0x10 cmp=com.google.android.talk/com.google.android.libraries.matchstick.net.SilentRegisterService } isPeriodic:false
06-29 11:37:56.844 5627-5642/? V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 259 native methods...
06-29 11:37:56.872 5627-5642/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
06-29 11:37:56.876 5627-5642/? I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
06-29 11:37:56.877 5627-5642/? I/MS_RegisterService: Not registered and not enabled. Doing nothing.
The white screen is visible that means your instant app is running well in emulator. First post your full code so that I can suggest something in better way. Meanwhile, there are some points you check cross check:
1. Check if the XML file of your java activity file is having some text to display on screen.
2. If your app is installed in the emulator, just uninstall it first then select your instant app to run on emulator.
change the emulator's graphics emulated performance from automatic to either Hardware GLES 2.0 or Software GLES 2.0 as shown in this blogpost:
http://dominoc925.blogspot.fr/2017/08/android-studio-emulator-how-i-resolved.html
Resolved white screen. possible encounters are
1) if following message
in terminal window I/mple.myfirstap: Background concurrent copying GC
freed 8149(516KB) AllocSpace objects, 0(0B) LOS objects, 50% free,
1828KB/3MB, paused
5.100ms total 179.836ms D/EGL_emulation: eglMakeCurrent: 0xe0724840: ver 2 0 (tinfo 0xe27cddc0) Application terminated.
Goto layout/activity_display_message.xml
-> Select textView component
-> And in Attributes window remove Hardcoded string "textValue", (should not use #string resource) clear the hardcoded textValue and
keep it empty for the textbox
2) Optionally you can try uninstalling the app from the emulator and build
it again.
Create a new project and see if again nothing shows. There is no problem in your SDK. If SDK fails then your android studio will not start and gives you message to download SDK or give the path of SDK.

avc: denied { read } for name="/" dev="rootfs" ino=1 scontext=u:r:untrusted_app

I was not able to find here solution to read/write problem on Android File manager application I am trying to create. When running on real device, I am not able to delete a file from SD card.
Could anyone guide me, what am I doing wrong and how to fix the permissions?
I have added read/write permissions to AndroidManifest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
but anyway, I am getting this error message:
avc: denied { read } for name="/" dev="rootfs" ino=1 scontext=u:r:untrusted_app
for dependencies I am using:
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
Full LogCat:
02-28 10:59:49.740 12067-12067/? W/art: Unexpected CPU variant for X86 using defaults: x86_64
02-28 10:59:49.765 12067-12067/? W/System: ClassLoader referenced unknown path: /data/app/com.example.filemanager-1/lib/x86_64
02-28 10:59:49.770 12067-12067/? I/InstantRun: Instant Run Runtime started. Android package is com.example.filemanager, real application class is com.example.filemanager.FileManager.
02-28 10:59:49.797 12067-12074/? E/art: Failed writing handshake bytes (-1 of 14): Broken pipe
02-28 10:59:49.797 12067-12074/? I/art: Debugger is no longer active
02-28 10:59:49.797 12067-12074/? I/art: Starting a blocking GC Instrumentation
02-28 10:59:50.284 12067-12067/? W/System: ClassLoader referenced unknown path: /data/app/com.example.filemanager-1/lib/x86_64
02-28 10:59:50.337 12067-12067/? W/ini.filemanager: type=1400 audit(0.0:27): avc: denied { read } for name="/" dev="rootfs" ino=1 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0
[ 02-28 10:59:50.356 12067:12067 W/ ]
Process pipe failed
02-28 10:59:50.376 12067-12089/? I/OpenGLRenderer: Initialized EGL, version 1.4
02-28 10:59:50.376 12067-12089/? D/OpenGLRenderer: Swap behavior 1
02-28 10:59:50.390 12067-12089/? E/EGL_emulation: tid 12089: eglSurfaceAttrib(1174): error 0x3009 (EGL_BAD_MATCH)
02-28 10:59:50.390 12067-12089/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x76656d668840, error=EGL_BAD_MATCH

Genymotion: "Unfortunately <app> has stopped"

I've created an application in React Native that works fine in iOS. I've copied the code over to the Android portion of it, and separated out the platform-specific components. When I hit a certain component, the app crashes with an "Unfortunately has stopped".
There are no logs, no error in the console, nothing. What do I look for and where can I look? Logs? Somewhere in code?
In ~/genymotion-log/Google Nexus 6<...>-logcat.txt, I see the following:
05-15 23:50:14.379 D/OpenGLRenderer( 620): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
05-15 23:50:14.380 D/Atlas ( 620): Validating map...
05-15 23:50:14.429 I/OpenGLRenderer( 620): Initialized EGL, version 1.4
05-15 23:50:14.429 D/ ( 620): HostConnection::get() New Host Connection established 0xaf31ca40, tid 1876
05-15 23:50:14.463 D/OpenGLRenderer( 620): Enabling debug mode 0
05-15 23:50:14.489 W/EGL_emulation( 620): eglSurfaceAttrib not implemented
05-15 23:50:14.490 W/OpenGLRenderer( 620): Failed to set EGL_SWAP_BEHAVIOR on surface 0x9e45dfc0, error=EGL_SUCCESS
05-15 23:50:14.490 W/EGL_emulation( 941): eglSurfaceAttrib not implemented
05-15 23:50:14.490 W/OpenGLRenderer( 941): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb43e44a0, error=EGL_SUCCESS
05-15 23:50:14.952 I/ActivityManager( 620): Killing 1492:com.android.onetimeinitializer/u0a10 (adj 15): empty #17
05-15 23:50:15.219 W/OpenGLRenderer( 941): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
05-15 23:50:15.440 W/ResourceType( 724): No package identifier when getting value for resource number 0x00000000
05-15 23:50:15.442 W/PackageManager( 724): Failure retrieving resources for com.bidsmart: Resource ID #0x0
05-15 23:50:18.400 W/AudioTrack( 620): AUDIO_OUTPUT_FLAG_FAST denied by client
05-15 23:50:18.424 I/Process ( 1805): Sending signal. PID: 1805 SIG: 9
05-15 23:50:18.463 D/OpenGLRenderer( 620): endAllStagingAnimators on 0xa1a6f780 (RippleDrawable) with handle 0xaf3be470
05-15 23:50:18.468 I/ActivityManager( 620): Process com.bidsmart (pid 1805) has died
05-15 23:50:18.472 W/InputMethodManagerService( 620): Got RemoteException sending setActive(false) notification to pid 1805 uid 10061
No fix, but the reason is I'm pushing too much data from the server to the client. Once I ran adb logcat, I got this:
java.lang.OutOfMemoryError: Failed to allocate a 2470012 byte allocation with 48508 free bytes and 47KB until OOM.
Turns out I'm pushing my images over and over to the client until it breaks. iOS can handle it but RN can't.
Link to StackOverflow related thread: Android:java.lang.OutOfMemoryError: Failed to allocate a 23970828 byte allocation with 2097152 free bytes and 2MB until OOM

Unable to Show Progress Dialog [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm using ProgressDialog to show a loading page in my android app .
My code looks like :
final ProgressDialog dialog = new ProgressDialog(this);
dialog.setCancelable(false);
dialog.setMessage("please Wait ...");
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setProgressStyle(R.style.progress_dialog_style);
dialog.show();
String toastMsg = null;
LoginService loginService = new LoginService(LoginActivity.this);
ProfileDetails profileDetails = loginService.checkLogin(mobile_number.getText().toString().trim(), password.getText().toString().trim());
if(profileDetails != null && loginService.changeLogin(MainActivity.LOGIN_YES, mobile_number.getText().toString().trim())) {
toastMsg = MainActivity.LOGIN_SUCCESSFUL;
}
if(profileDetails == null) {
runOnUiThread(new Runnable() {
public void run() {
dialog.dismiss();
}
});
}
and then i perform some DB Operations and get some data
and i use dialog.dismiss().
If i get data successfully i use startActivity(intent);
Here
i) if i use dialog.dismiss() when i run the code i am not able to see the Dialog.
ii) When i remove the dialog.dimiss() section i am able to see the Dialog but unable to close it.
Please resolve this problem.
Thank You
Log i got is
12-16 00:12:42.325 2146-2172/mycompany.com.weekendmovierating W/EGL_emulation﹕ eglSurfaceAttrib not implemented
12-16 00:12:42.325 2146-2172/mycompany.com.weekendmovierating W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa34423e0, error=EGL_SUCCESS
12-16 00:12:42.632 2146-2172/mycompany.com.weekendmovierating W/EGL_emulation﹕ eglSurfaceAttrib not implemented
12-16 00:12:42.632 2146-2172/mycompany.com.weekendmovierating W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa34422e0, error=EGL_SUCCESS
12-16 00:12:42.804 2146-2160/mycompany.com.weekendmovierating I/art﹕ WaitForGcToComplete blocked for 58.235ms for cause Background
12-16 00:12:42.937 2146-2156/mycompany.com.weekendmovierating W/art﹕ Suspending all threads took: 38.186ms
12-16 00:12:42.938 2146-2160/mycompany.com.weekendmovierating W/art﹕ Suspending all threads took: 19.448ms
12-16 00:12:42.946 2146-2160/mycompany.com.weekendmovierating I/art﹕ Background sticky concurrent mark sweep GC freed 8670(494KB) AllocSpace objects, 5(100KB) LOS objects, 0% free, 5MB/5MB, paused 21.810ms total 130.763ms
12-16 00:12:43.105 2146-2160/mycompany.com.weekendmovierating W/art﹕ Suspending all threads took: 61.760ms
12-16 00:12:43.171 2146-2146/mycompany.com.weekendmovierating I/Choreographer﹕ Skipped 44 frames! The application may be doing too much work on its main thread.
12-16 00:12:43.245 2146-2160/mycompany.com.weekendmovierating I/art﹕ Background partial concurrent mark sweep GC freed 1796(126KB) AllocSpace objects, 2(76KB) LOS objects, 39% free, 5MB/9MB, paused 12.887ms total 76.159ms
12-16 00:12:43.803 2146-2172/mycompany.com.weekendmovierating W/EGL_emulation﹕ eglSurfaceAttrib not implemented
12-16 00:12:43.803 2146-2172/mycompany.com.weekendmovierating W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3fdece0, error=EGL_SUCCESS
12-16 00:12:44.892 1294-1313/system_process I/ActivityManager﹕ Displayed mycompany.com.weekendmovierating/mycompany.weekendmovierating.activity.SelectLanguageActivity: +2s541ms
12-16 00:12:45.023 2146-2146/mycompany.com.weekendmovierating I/Choreographer﹕ Skipped 69 frames! The application may be doing too much work on its main thread.
12-16 00:12:45.055 1545-6738/com.android.inputmethod.latin E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7d6dc0
12-16 00:12:45.082 2146-2172/mycompany.com.weekendmovierating E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7da1d0
12-16 00:12:45.093 2146-2172/mycompany.com.weekendmovierating E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7d8870
12-16 00:12:45.148 2146-2172/mycompany.com.weekendmovierating E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7d85d0
12-16 00:12:45.342 2146-2146/mycompany.com.weekendmovierating E/WindowManager﹕ android.view.WindowLeaked: Activity mycompany.weekendmovierating.activity.LoginActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{ffa0769 V.E...... R......D 0,0-760,192} that was originally added here
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:368)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:299)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
at android.app.Dialog.show(Dialog.java:319)
at mycompany.weekendmovierating.activity.LoginActivity.login(LoginActivity.java:87)
at java.lang.reflect.Method.invoke(Native Method)
at android.view.View$DeclaredOnClickListener.onClick(View.java:4447)
at android.view.View.performClick(View.java:5198)
at android.view.View$PerformClick.run(View.java:21147)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
12-16 00:12:45.371 2146-2156/mycompany.com.weekendmovierating W/art﹕ Suspending all threads took: 25.085ms
12-16 00:12:45.397 1294-1305/system_process W/WindowManager﹕ Failed looking up window
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy#aa60cd1 does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8723)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8714)
at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2697)
at com.android.server.wm.Session.remove(Session.java:187)
at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:242)
at com.android.server.wm.Session.onTransact(Session.java:130)
at android.os.Binder.execTransact(Binder.java:453)
runOnUiThread(new Runnable() {
#Override
public void run()
{
progress.dismiss();
}
Dismiss your dialog like this in runnable thread.

Categories

Resources