my app is stoped in splash with message error in console:
09-02 23:26:29.099 3684-3684/? I/zygote: Not late-enabling -Xcheck:jni (already on)
09-02 23:26:29.117 3684-3684/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
09-02 23:26:29.253 3684-3684/com.x.X k E/com.facebook.internal.AttributionIdentifiers: getAttributionIdentifiers should not be called from the main thread
09-02 23:26:29.275 3684-3700/com.x.X k D/NetworkSecurityConfig: No Network Security Config specified, using platform default
Related
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.
My android app often goes not responding and then crashes printing the following log:
12-16 00:43:49.788 27523-27523/com.robocats.main W/linker: /data/app/com.google.android.webview-2/lib/arm64/libwebviewchromium.so: unused DT entry: type 0x6ffffffe arg 0x38c70
12-16 00:43:49.788 27523-27523/com.robocats.main W/linker: /data/app/com.google.android.webview-2/lib/arm64/libwebviewchromium.so: unused DT entry: type 0x6fffffff arg 0x3
12-16 00:43:49.908 27523-27523/com.robocats.main I/WebViewFactory: Loading com.google.android.webview version 55.0.2883.91 (code 288309150)
12-16 00:43:49.928 27523-27523/com.robocats.main I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
12-16 00:43:49.928 27523-27523/com.robocats.main I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
12-16 00:43:49.938 27523-27523/com.robocats.main I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
12-16 00:43:49.938 27523-27523/com.robocats.main I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
12-16 00:43:49.948 27523-27523/com.robocats.main I/cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 5331-5332)
12-16 00:43:49.948 27523-27523/com.robocats.main I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"
12-16 00:43:49.958 27523-27523/com.robocats.main I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"
12-16 00:43:49.978 27523-27523/com.robocats.main I/chromium: [INFO:library_loader_hooks.cc(163)] Chromium logging enabled: level = 0, default verbosity = 0
12-16 00:43:50.028 27523-27523/com.robocats.main I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
12-16 00:43:50.328 27523-27523/com.robocats.main D/CognitoCachingCredentialsProvider: Loading credentials from SharedPreferences
12-16 00:43:57.608 27523-27534/com.robocats.main I/art: Thread[7,tid=27534,WaitingInMainSignalCatcherLoop,Thread*=0x55982e3fc0,peer=0x12c000a0,"Signal Catcher"]: reacting to signal 3
12-16 00:43:58.088 27523-27534/com.robocats.main I/art: Wrote stack traces to '/data/anr/traces.txt'
The logs are coming from webview, but I'm not at all using webview in my application. Any pointers here?
I'm trying to write a function to increment unread message count in a chatapp(android) using transaction in Firebase.
My database structure looks like:
The member list can in fact contain more than 2 users for a group chat which I intend to expand later.
Currently, messages can be added into the messageList but after adding to the messageList I want to increase the unreadCount for all other user except the sender as well. I realised that I need to make use of Transaction to make it atomic so this is my incrementUnreadCount code.
private static void incrementUnreadCount(String chatRoomId) {
DatabaseReference mDatabaseMemberList = mDatabaseChatRooms.child(chatRoomId).child("memberList");
mDatabaseMemberList.runTransaction(new Transaction.Handler() {
#Override
public Transaction.Result doTransaction(MutableData mutableData) {
Map<String, Map<String, Object>> tempMemberList = (Map<String, Map<String, Object>>) mutableData.getValue();
if (tempMemberList == null) {
return Transaction.abort();
}
for (String key : tempMemberList.keySet()) {
// if it is not a sender node
if (!key.equals(TutUserManager.getCurrentUid())) {
Map<String, Object> tempMap = tempMemberList.get(key);
long tempCount = (long) tempMap.get("unreadCount");
tempCount += 1;
tempMap.put("unreadCount", tempCount);
tempMemberList.put(key, tempMap);
}
}
mutableData.setValue(tempMemberList);
return Transaction.success(mutableData);
}
#Override
public void onComplete(DatabaseError databaseError, boolean b, DataSnapshot dataSnapshot) {
}
});
}
The following code works only when I send the second message. So the value of unreadCount is 1 less than what it is expected to be.
I read the doc and realised that for the null case it is supposed to be:
return Transaction.success(mutableData);
and not:
return Transaction.abort();
as abort() will make server abort the transaction instead of trying to make the transaction again.
I try to change the code above to use return ransaction.success(mutableData); but it causes the app to crash upon calling the function.
Did I miss something ?
This is what I get from the console:
11/14 23:19:25: Launching app
No apk changes detected since last installation, skipping installation of C:\Users\Potcharaphol\AndroidStudioProjects\Tut\app\build\outputs\apk\app-debug.apk
$ adb shell am force-stop com.pchatanan.tut
$ adb shell am start -n "com.pchatanan.tut/com.pchatanan.tut.MainActivities.GetStartedActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.pchatanan.tut.test | com.pchatanan.tut
Connecting to com.pchatanan.tut
E/HAL: load: id=gralloc != hmi->id=gralloc
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8600', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1339)
I/InstantRun: Instant Run Runtime started. Android package is com.pchatanan.tut, real application class is null.
[ 11-14 23:19:29.241 2931: 2931 E/ ]
process stopped due to unexpected signal 13
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
[ 11-14 23:19:29.819 2931: 2931 E/ ]
process stopped due to unexpected signal 13
I/FA: App measurement is starting up, version: 9877
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA: To enable faster debug mode event logging run:
adb shell setprop firebase.analytics.debug-mode com.pchatanan.tut
I/HwCust: Constructor found for class android.app.HwCustAlarmManagerImpl
I/FirebaseInitProvider: FirebaseApp initialization successful
I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
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
[ 11-14 23:19:30.422 2931: 2931 E/ ]
process stopped due to unexpected signal 13
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
I/HwSecImmHelper: mSecurityInputMethodService is null
W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:4
I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 4
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000018/n/arm64-v8a
[ 11-14 23:19:31.068 2931: 2931 E/ ]
process stopped due to unexpected signal 13
E/HAL: load: id=gralloc != hmi->id=gralloc
I/OpenGLRenderer: Initialized EGL, version 1.4
I/System: core_booster, getBoosterConfig = false
I/System: core_booster, getBoosterConfig = false
[ 11-14 23:19:33.493 2931: 2931 E/ ]
process stopped due to unexpected signal 13
W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
I/System: core_booster, getBoosterConfig = false
I/System: core_booster, getBoosterConfig = false
[ 11-14 23:19:35.396 2931: 2931 E/ ]
process stopped due to unexpected signal 13
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
W/art: Suspending all threads took: 14.466ms
I/FA: Tag Manager is not found and thus will not be used
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/System: core_booster, getBoosterConfig = false
I/System: core_booster, getBoosterConfig = false
I/HwSecImmHelper: mSecurityInputMethodService is null
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
E/RecyclerView: No adapter attached; skipping layout
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
E/RecyclerView: No adapter attached; skipping layout
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
I/Process: Sending signal. PID: 20588 SIG: 9
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'
This is what I get from logcat, there seems to be no errors.
[ 11-14 23:21:49.129 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:49.321 21571-21571/com.pchatanan.tut I/System.out: waiting for debugger to settle...
11-14 23:21:49.522 21571-21571/com.pchatanan.tut I/System.out: waiting for debugger to settle...
11-14 23:21:49.723 21571-21571/com.pchatanan.tut I/System.out: waiting for debugger to settle...
[ 11-14 23:21:49.781 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:49.924 21571-21571/com.pchatanan.tut I/System.out: waiting for debugger to settle...
11-14 23:21:50.125 21571-21571/com.pchatanan.tut I/System.out: debugger has settled (1319)
11-14 23:21:50.149 21571-21571/com.pchatanan.tut I/InstantRun: Instant Run Runtime started. Android package is com.pchatanan.tut, real application class is null.
[ 11-14 23:21:50.364 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:50.842 21571-21633/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:21:50.863 21571-21633/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:21:50.973 21571-21571/com.pchatanan.tut I/FA: App measurement is starting up, version: 9877
11-14 23:21:50.973 21571-21571/com.pchatanan.tut I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
11-14 23:21:50.980 21571-21571/com.pchatanan.tut I/FA: To enable faster debug mode event logging run:
adb shell setprop firebase.analytics.debug-mode com.pchatanan.tut
[ 11-14 23:21:50.999 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:51.035 21571-21571/com.pchatanan.tut I/HwCust: Constructor found for class android.app.HwCustAlarmManagerImpl
11-14 23:21:51.043 21571-21571/com.pchatanan.tut I/FirebaseInitProvider: FirebaseApp initialization successful
11-14 23:21:51.140 21571-21571/com.pchatanan.tut I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
11-14 23:21:51.216 21571-21571/com.pchatanan.tut 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
11-14 23:21:51.601 21571-21571/com.pchatanan.tut I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
[ 11-14 23:21:51.609 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:51.875 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:21:51.925 21571-21571/com.pchatanan.tut W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
11-14 23:21:52.015 21571-21571/com.pchatanan.tut I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:4
11-14 23:21:52.015 21571-21571/com.pchatanan.tut I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 4
11-14 23:21:52.030 21571-21571/com.pchatanan.tut W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000018/n/arm64-v8a
11-14 23:21:52.192 21571-21651/com.pchatanan.tut E/HAL: load: id=gralloc != hmi->id=gralloc
11-14 23:21:52.193 21571-21651/com.pchatanan.tut I/OpenGLRenderer: Initialized EGL, version 1.4
11-14 23:21:52.194 21571-21666/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
[ 11-14 23:21:52.196 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:54.257 21571-21711/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
[ 11-14 23:21:54.586 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:21:55.208 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:56.193 21571-21571/com.pchatanan.tut W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
11-14 23:21:56.248 21571-21743/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
11-14 23:21:56.279 21571-21743/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
[ 11-14 23:21:56.442 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:21:57.081 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:21:57.204 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:21:57.206 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:01.561 21571-21633/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
[ 11-14 23:22:01.587 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:22:02.195 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:22:02.874 2931: 2931 E/ ]
process stopped due to unexpected signal 13
[ 11-14 23:22:03.487 2931: 2931 E/ ]
process stopped due to unexpected signal 13
11-14 23:22:07.605 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:07.720 21571-21641/com.pchatanan.tut I/FA: Tag Manager is not found and thus will not be used
11-14 23:22:07.775 21571-21571/com.pchatanan.tut I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
11-14 23:22:07.985 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:07.985 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:09.062 21571-21942/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
11-14 23:22:09.141 21571-21942/com.pchatanan.tut I/System: core_booster, getBoosterConfig = false
11-14 23:22:09.354 21571-21571/com.pchatanan.tut I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
11-14 23:22:09.454 21571-21571/com.pchatanan.tut E/RecyclerView: No adapter attached; skipping layout
11-14 23:22:09.471 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:09.472 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:09.476 21571-21571/com.pchatanan.tut E/RecyclerView: No adapter attached; skipping layout
11-14 23:22:10.246 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:10.308 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:10.309 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:10.313 21571-21571/com.pchatanan.tut I/HwSecImmHelper: mSecurityInputMethodService is null
11-14 23:22:13.747 21571-21571/com.pchatanan.tut I/Process: Sending signal. PID: 21571 SIG: 9
11-14 23:22:13.995 22048-22063/com.pchatanan.tut E/HAL: load: id=gralloc != hmi->id=gralloc
11-14 23:22:14.012 22048-22048/com.pchatanan.tut I/InstantRun: Instant Run Runtime started. Android package is com.pchatanan.tut, real application class is null.
11-14 23:22:14.575 22048-22083/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:22:14.659 22086-22100/com.pchatanan.tut E/HAL: load: id=gralloc != hmi->id=gralloc
11-14 23:22:14.679 22086-22086/com.pchatanan.tut I/InstantRun: Instant Run Runtime started. Android package is com.pchatanan.tut, real application class is null.
11-14 23:22:15.323 22086-22133/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:22:15.341 22086-22133/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
11-14 23:22:15.462 22086-22086/com.pchatanan.tut I/FA: App measurement is starting up, version: 9877
11-14 23:22:15.462 22086-22086/com.pchatanan.tut I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
11-14 23:22:15.471 22086-22086/com.pchatanan.tut I/FA: To enable faster debug mode event logging run:
adb shell setprop firebase.analytics.debug-mode com.pchatanan.tut
11-14 23:22:15.524 22086-22086/com.pchatanan.tut I/HwCust: Constructor found for class android.app.HwCustAlarmManagerImpl
11-14 23:22:15.532 22086-22086/com.pchatanan.tut I/FirebaseInitProvider: FirebaseApp initialization successful
11-14 23:22:25.611 22086-22133/com.pchatanan.tut W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
In stead of iterate through each node in the Transaction thread, I use .addListenerForSingleValueEvent and iterate through each node. Then for the one that needs to be updated, I run the transaction code. This method works fine.
This is illustrated in the following code:
private static void incrementUnreadCount(String chatRoomId) {
final DatabaseReference mDatabaseMemberList = mDatabaseChatRooms.child(chatRoomId).child("memberList");
mDatabaseMemberList.addListenerForSingleValueEvent(new ValueEventListener() {
#Override
public void onDataChange(DataSnapshot dataSnapshot) {
for(DataSnapshot child : dataSnapshot.getChildren()){
if(!child.getKey().equals(TutUserManager.getCurrentUid())){
mDatabaseMemberList.child(child.getKey()).runTransaction(new Transaction.Handler() {
#Override
public Transaction.Result doTransaction(MutableData mutableData) {
Map<String, Object> tempData = (Map<String, Object>) mutableData.getValue();
if(tempData == null){
return Transaction.success(mutableData);
}
long unreadCount = (long) tempData.get("unreadCount");
unreadCount += 1;
tempData.put("unreadCount", unreadCount);
mutableData.setValue(tempData);
return Transaction.success(mutableData);
}
#Override
public void onComplete(DatabaseError databaseError, boolean b, DataSnapshot dataSnapshot) {
}
});
}
}
}
#Override
public void onCancelled(DatabaseError databaseError) {
}
});
}
When I debug my app, I can't look logcat in AS. Following is the error output.
06-02 18:20:55.861 7319-7319/org.zy.app W/Zygote: mz_is_rooted false
06-02 18:20:55.861 7319-7319/org.zy.app I/art: Late-enabling -Xcheck:jni
06-02 18:20:55.886 7319-7333/org.zy.app I/art: Debugger is no longer active
06-02 18:20:56.061 7319-7344/org.zy.app I/HAL: (hw_get_module_by_class[194]):MODULE load start ==> class_id = gralloc // path = /system/lib/hw/gralloc.exynos5.so
06-02 18:20:56.066 7319-7344/org.zy.app I/OpenGLRenderer: Initialized EGL, version 1.4
06-02 18:20:56.111 7319-7344/org.zy.app I/HAL: (hw_get_module_by_class[194]):MODULE load start ==> class_id = gralloc // path = /system/lib/hw/gralloc.exynos5.so
06-02 18:26:22.646 7319-7333/org.zy.app I/art: Debugger is no longer active
Click line -fold line like this- edited (delete time and uid and package only error) -ok
I try to use cordova in windows for create a simple android app. I create the first project using command cordova create hello com.example.hello HelloWorld
I add the Android platform, I try to build and build success, but when I emulate the app don't start and receive the error on screen:
Unfortunaly, HelloWorld has stopped.
logcat:
03-16 16:44:19.073 2442-2442/com.example.hello W/System﹕ ClassLoader referenced unknown path: /data/app/com.example.hello-1/lib/x86
03-16 16:44:19.266 2442-2442/com.example.hello I/WebViewFactory﹕ Loading com.android.webview version 44.0.2403.119 (code 246011910)
03-16 16:44:19.310 2442-2442/com.example.hello W/System﹕ ClassLoader referenced unknown path: /system/app/webview/lib/x86
03-16 16:44:19.377 2442-2442/com.example.hello I/LibraryLoader﹕ Time to load native libraries: 62 ms (timestamps 9389-9451)
03-16 16:44:19.377 2442-2442/com.example.hello I/LibraryLoader﹕ Expected native library version number "",actual native library version number ""
03-16 16:44:19.392 2442-2442/com.example.hello I/LibraryLoader﹕ Expected native library version number "",actual native library version number ""
03-16 16:44:19.392 2442-2442/com.example.hello I/chromium﹕ [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
03-16 16:44:19.483 2442-2442/com.example.hello I/BrowserStartupController﹕ Initializing chromium process, singleProcess=true
03-16 16:44:19.484 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:19.486 2442-2442/com.example.hello E/SysUtils﹕ ApplicationContext is null in ApplicationStatus
03-16 16:44:19.568 2442-2442/com.example.hello W/chromium﹕ [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
03-16 16:44:19.571 2442-2442/com.example.hello E/libEGL﹕ validate_display:255 error 3008 (EGL_BAD_DISPLAY)
03-16 16:44:19.571 2442-2442/com.example.hello E/libEGL﹕ validate_display:255 error 3008 (EGL_BAD_DISPLAY)
03-16 16:44:19.571 2442-2442/com.example.hello E/chromium﹕ [ERROR:gl_surface_egl.cc(327)] No suitable EGL configs found.
03-16 16:44:19.571 2442-2442/com.example.hello E/chromium﹕ [ERROR:gl_surface_android.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
03-16 16:44:19.571 2442-2442/com.example.hello E/chromium﹕ [ERROR:browser_main_loop.cc(698)] GLSurface::InitializeOneOff failed
03-16 16:44:19.628 2442-2468/com.example.hello W/AudioManagerAndroid﹕ Requires BLUETOOTH permission
03-16 16:44:19.667 2442-2442/com.example.hello E/DataReductionProxySettingListener﹕ No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
03-16 16:44:19.757 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:19.762 2442-2442/com.example.hello W/AwContents﹕ onDetachedFromWindow called when already detached. Ignoring
03-16 16:44:20.182 2442-2442/com.example.hello D/SystemWebViewEngine﹕ CordovaWebView is running on device made by: unknown
03-16 16:44:20.188 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:20.188 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:20.246 2442-2452/com.example.hello I/art﹕ Background sticky concurrent mark sweep GC freed 7609(505KB) AllocSpace objects, 3(60KB) LOS objects, 64% free, 861KB/2MB, paused 1.373ms total 448.240ms
03-16 16:44:20.310 2442-2466/com.example.hello W/chromium﹕ [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
03-16 16:44:20.368 2442-2442/com.example.hello D/gralloc_goldfish﹕ Emulator without host-side GPU emulation detected.
03-16 16:44:20.376 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:20.410 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:20.586 2442-2452/com.example.hello I/art﹕ Background partial concurrent mark sweep GC freed 1447(97KB) AllocSpace objects, 2(2MB) LOS objects, 35% free, 926KB/1438KB, paused 2.668ms total 209.255ms
03-16 16:44:20.587 2442-2480/com.example.hello A/chromium﹕ [FATAL:gl_surface_android.cc(58)] Check failed: kGLImplementationNone != GetGLImplementation() (0 vs. 0)
03-16 16:44:20.587 2442-2480/com.example.hello A/libc﹕ Fatal signal 6 (SIGABRT), code -6 in tid 2480 (GpuThread)
This is almost exactly the same error as Error in Android Programming while connecting to Phonegap. It seems to be related to this bug from ionic.
According to them, "switching from Snapshot to Host GPU solved this problem."
This makes sense as three of the last errors are related to opengl.
Note to various moderators: I tried to close one as a duplicate of the other, but that can't be done because there's no answer. Tried looking on meta for 'duplicate unanswered' but they simply say not to do it. I figure I'll post a possible answer and if either one is accepted, I'll close the other as a dup.