I develop an android app in phonegap
but when I open the app in succession then app opens and shows a blank white page?!
I do the follwoing: open, close(with backbutton),open,close then app open with blank page?!
logcat :
07-03 15:10:23.894: D/Config(11923): Unlimited access to network resources
07-03 15:10:23.904: I/CordovaLog(11923): Found start page location: index.html
07-03 15:10:23.904: I/CordovaLog(11923): Changing log level to DEBUG(3)
07-03 15:10:23.904: D/CordovaActivity(11923): CordovaActivity.onCreate()
07-03 15:10:23.914: D/CordovaWebView(11923): CordovaWebView is running on device made by: samsung
07-03 15:10:23.914: D/JsMessageQueue(11923): Set native->JS mode to 2
07-03 15:10:23.914: D/CordovaActivity(11923): CordovaActivity.init()
07-03 15:10:23.924: D/CordovaWebView(11923): >>> loadUrl(file:///android_asset/www/index.html)
07-03 15:10:23.924: D/PluginManager(11923): init()
07-03 15:10:23.924: D/CordovaWebView(11923): >>> loadUrlNow()
07-03 15:10:23.934: D/Config(11923): Unlimited access to network resources
07-03 15:10:23.934: I/CordovaLog(11923): Found start page location: index.html
07-03 15:10:23.934: I/CordovaLog(11923): Changing log level to DEBUG(3)
07-03 15:10:23.934: D/CordovaActivity(11923): Resuming the App
07-03 15:10:23.934: D/CordovaActivity(11923): CB-3064: The errorUrl is null
07-03 15:10:23.934: D/SecWifiDisplayUtil(11923): Metadata value : SecSettings2
07-03 15:10:23.934: D/ViewRootImpl(11923): #1 mView = com.android.internal.policy.PhoneWindow$DecorView{5319767 I.E...... R.....ID 0,0-0,0}
07-03 15:10:23.964: D/SoftKeyboardDetect(11923): Ignore this event
07-03 15:10:24.004: D/ViewRootImpl(11923): MSG_RESIZED_REPORT: ci=Rect(0, 63 - 0, 0) vi=Rect(0, 63 - 0, 0) or=1
07-03 15:10:24.004: D/CordovaActivity(11923): onMessage(onPageStarted,file:///android_asset/www/index.html)
07-03 15:10:24.014: D/SoftKeyboardDetect(11923): Ignore this event
07-03 15:10:24.014: I/Timeline(11923): Timeline: Activity_idle id: android.os.BinderProxy#1404550 time:256529963
07-03 15:10:24.014: W/cr_BindingManager(11923): Cannot call determinedVisibility() - never saw a connection for the pid: 11923
07-03 15:10:24.184: E/AndroidProtocolHandler(11923): Unable to open asset URL: file:///android_asset/www/cordova_plugins.js
07-03 15:10:24.184: D/CordovaLog(11923): file:///android_asset/www/js/custom.js: Line 77 : Uncaught TypeError: Cannot read property 'connection' of undefined
07-03 15:10:24.184: I/chromium(11923): [INFO:CONSOLE(77)] "Uncaught TypeError: Cannot read property 'connection' of undefined", source: file:///android_asset/www/js/custom.js (77)
07-03 15:10:24.254: D/CordovaNetworkManager(11923): Connection Type: none
07-03 15:10:24.254: D/CordovaNetworkManager(11923): Connection Type: none
07-03 15:10:24.254: D/CordovaActivity(11923): onMessage(networkconnection,none)
07-03 15:10:24.254: D/CordovaActivity(11923): onMessage(spinner,stop)
07-03 15:10:24.334: D/CordovaWebViewClient(11923): onPageFinished(file:///android_asset/www/index.html)
07-03 15:10:24.334: D/CordovaActivity(11923): onMessage(onPageFinished,file:///android_asset/www/index.html)
07-03 15:10:39.174: D/CordovaActivity(11923): Paused the application!
07-03 15:10:39.174: D/CordovaWebView(11923): Handle the pause
07-03 15:10:39.194: V/ActivityThread(11923): updateVisibility : ActivityRecord{6130f7b token=android.os.BinderProxy#1404550 {da.com.ir/da.com.ir.Main}} show : true
Related
I followed the instructions from the realm page and did these steps:
npm install realm
react-native link realm --> For iOS everything works out without any further steps at this point.
Opened android studio and updated changes in settings.gradle, app/build.gradle and imported the RealmReactPackage in MainApplication.java
If I build and start the app, everything is working out fine. Then I add new RealmReactPackage() to the list to the other ReactPackages.
If I start the app now, the app crashes immediately. The logcat doesn't say any reason for the crash, but I add the output anyways below.
Things I tried already:
Clear caches
Restart packager
Deinstall app from emulator
Clear node-modules and run npm install again and repeat the steps from above
My setup:
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-navigation": "v2.0.1937"
Node version 9.5.0
Android Studio version: 3.1.3
What I didn't do so far:
There is one instruction at the realm site under Examples:
Note that on Android, you need the NDK installed and must have set the ANDROID_NDK environment variable.
export ANDROID_NDK=/usr/local/Cellar/android-ndk/r10e
My Question is, is this relevant for my config or just for the examples?
LogCat Output:
07-03 17:51:04.909 1664 1676 I ActivityManager: START u0 {flg=0x10100000 cmp=com.cowoperation/.MainActivity} from uid 2000
07-03 17:51:04.938 1664 2392 I ActivityManager: Start proc 32299:com.cowoperation/u0a91 for activity com.cowoperation/.MainActivity
07-03 17:51:05.319 32299 32325 V FA : App package, google app id: com.cowoperation, 1:314188610363:android:2d8c823aa5045bd7
07-03 17:51:05.320 32299 32299 V fb-UnpackingSoSource: locked dso store /data/user/0/com.cowoperation/lib-main
07-03 17:51:05.320 32299 32325 I FA : adb shell setprop debug.firebase.analytics.app com.cowoperation
07-03 17:51:05.320 32299 32299 I fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.cowoperation/lib-main
07-03 17:51:05.321 32299 32299 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.cowoperation/lib-main
07-03 17:51:05.654 32299 32345 I zygote : Thread[30,tid=32345,Native,Thread*=0x88b19a00,peer=0x13214b48,"Thread-8"] recursive attempt to load library "/data/app/com.cowoperation-gxY-ptC8QV3xKg796vAtEA==/lib/x86/libfb.so"
07-03 17:51:05.808 1664 1690 I ActivityManager: Displayed com.cowoperation/.MainActivity: +878ms
07-03 17:51:05.880 32299 32325 V FA : Event recorded: Event{appId='com.cowoperation', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6439080053319785913}]}
07-03 17:51:05.979 32299 32345 E AndroidRuntime: Process: com.cowoperation, PID: 32299
07-03 17:51:05.979 32299 32345 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN5realm8jni_util9hack_initEv" referenced by "/data/app/com.cowoperation-gxY-ptC8QV3xKg796vAtEA==/lib/x86/librealmreact.so"...
07-03 17:51:05.980 32299 32345 E UncaughtException: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN5realm8jni_util9hack_initEv" referenced by "/data/app/com.cowoperation-gxY-ptC8QV3xKg796vAtEA==/lib/x86/librealmreact.so"...
07-03 17:51:06.074 32299 32325 V FA : Event recorded: Event{appId='com.cowoperation', name='app_exception(_ae)', params=Bundle[{firebase_event_origin(_o)=crash, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6439080053319785913, timestamp=1530633065983, fatal=1}]}
07-03 17:51:06.153 32299 32325 V FA : Event recorded: Event{appId='com.cowoperation', name='user_engagement(_e)', params=Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=596, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6439080053319785913}]}
07-03 17:51:06.359 1664 2392 W ActivityManager: Force finishing activity com.cowoperation/.MainActivity
07-03 17:51:06.373 1664 1684 I ActivityManager: Showing crash dialog for package com.cowoperation u0
07-03 17:51:06.569 32299 32325 V FA : Event recorded: Event{appId='com.cowoperation', name='user_engagement(_e)', params=Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=266, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6439080053319785913}]}
I'm currently running into a problem where the code
googleApiClient = new GoogleApiClient.Builder(activity, this,this)
.addApi(Games.API).addScope(Games.SCOPE_GAMES)
.build();
works just fine, but
googleApiClient = new GoogleApiClient.Builder(activity, this,this)
.addApi(Drive.API)
.build();
doesn't want to connect, only returning
ConnectionResult{statusCode=INTERNAL_ERROR, resolution=null, message=null}
There seems to be a lot of questions on this, but most of them only adress a specific scenario. So far it seems like my scenario would be unique, and therefore off-topic on this site. My product name is set in the developer console, the package matches and the signature is correct. The required apis are enabled, and no suggestion given in any topic seems to help out. It seems like only time, trial and error will solve this problem in my case.
Now the question arises however, how does one debug this problem? It seems to be such a common problem without a common resolution, so what steps would one take to find out how to resolve the problem?
Edit:
To get a bit more specific on this scenario, it seems like the problem lies somewhere with the com.google.android.gms service. That one crashes every time. Below this is the logcat of the following code:
new AsyncTask<Void,Void,Void>() {
#Override
protected Void doInBackground(Void... voids) {
Log.d("Snapshot", "3");
googleApiClient.blockingConnect();
Log.d("Snapshot", "4");
return null;
}
}.execute();
The errors in this logcat are consistent and occur every time, Of course with varying timestamps and process ID's, and some of this is probably unrelated to the issue, but to me it's near impossible to filter this out.
07-03 16:05:52.025 23176-24251/nl.dvandenberg.energymonitor D/Snapshot: 3
--------- beginning of system
07-03 16:05:52.026 891-6829/? W/AppOps: Bad call: specified package com.google.android.gms under uid 10252 but it is really 10010
07-03 16:05:52.043 335-1227/? D/AudioPolicyManager: startOutput()--
07-03 16:05:52.043 335-1227/? I/AudioFlinger: vl# new track,stream:1,masterVolume:1.000000,typeVolume:0.501188,vlf:0.501160,vrf:0.501160
07-03 16:05:52.046 335-987/? D/audio_hw_primary: start_output_stream: enter: stream(0xb59a3640)usecase(1: low-latency-playback) devices(0x2)
07-03 16:05:52.046 335-987/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
07-03 16:05:52.046 335-987/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
07-03 16:05:52.046 335-987/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0
07-03 16:05:52.051 335-987/? E/msm8974_platform: wdd add mixer_path low-latency-playback i2s prop_value 15055
07-03 16:05:52.052 335-987/? D/audio_hw_primary: select_devices: done
07-03 16:05:52.175 891-1864/? D/ConnectivityService: listenForNetwork for NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.175 891-1245/? D/ConnectivityService: handleRegisterNetworkRequest checking NetworkAgentInfo [WIFI () - 382]
07-03 16:05:52.175 891-1245/? D/ConnectivityService: apparently satisfied. currentScore=60
07-03 16:05:52.176 891-1245/? D/ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.177 26026-26135/? D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
07-03 16:05:52.311 26026-26136/? W/DriveInitializer: Background init thread started
07-03 16:05:52.331 26141-26141/? D/StatusBar.MSimNetworkController: refreshViews phoneId =0mMSimDataConnected =false
07-03 16:05:52.331 26141-26141/? D/StatusBar.MSimNetworkController: refreshViews mMSimDataActivity =0
07-03 16:05:52.334 26141-26141/? D/StatusBar.MSimNetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming for phoneId: 0
07-03 16:05:52.335 335-985/? D/AudioPolicyManager: stopOutput() output 4, stream 1, session 785
07-03 16:05:52.335 335-985/? D/AudioPolicyManager: stopOutput()--
07-03 16:05:52.360 26026-26137/? I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:1 and remote module com.google.android.gms.googlecertificates:1
07-03 16:05:52.360 26026-26137/? I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 1
07-03 16:05:52.391 26026-26137/? D/ChimeraFileApk: Primary ABI of requesting process is armeabi-v7a
07-03 16:05:52.393 26026-26137/? D/ChimeraFileApk: Classloading successful. Optimized code found.
07-03 16:05:52.393 26026-26137/? I/asset: Success to oxygen resources /system/framework/oxygen-framework-res.apk
07-03 16:05:52.398 26026-26137/? D/GoogleCertificates: com.google.android.gms.googlecertificates module is loaded
07-03 16:05:52.455 26026-26139/? I/GCore-Chimera-Crash: Cg0KB3ZJbmZyYTQQor84Gl8KHWNvbS5nb29nbGUuYW5kcm9pZC
5wbGF5LmdhbWVzEhQzLjcuMjMgKDI4Njc2MzctMDM4KRjWq-AR
IiMKHGNvbS5nb29nbGUuYW5kcm9pZC5nbXMuZ2FtZXMQsKvgEQ
==
GCore-Chimera-Crash
--------- beginning of crash
07-03 16:05:52.458 26026-26139/? E/AndroidRuntime: FATAL EXCEPTION: highpool[0]
Process: com.google.android.gms, PID: 26026
java.lang.NullPointerException: Attempt to read from field 'kau jwg.a' on a null object reference
at jzf.a(:com.google.android.gms:336)
at kip.a(:com.google.android.gms:11149)
at kip.b(:com.google.android.gms:415)
at kiq.run(:com.google.android.gms:1054)
at loq.run(:com.google.android.gms:53)
at itt.run(:com.google.android.gms:453)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at iyg.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
07-03 16:05:52.460 26026-26139/? E/AndroidRuntime: Error reporting crash
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:200)
at android.os.Handler.<init>(Handler.java:114)
at android.content.AsyncQueryHandler.<init>(AsyncQueryHandler.java:125)
at net.oneplus.odm.insight.tracker.AbstractTracker$TrackerAsyncQueryHandler.<init>(AbstractTracker.java:110)
at net.oneplus.odm.insight.tracker.AbstractTracker.<init>(AbstractTracker.java:60)
at net.oneplus.odm.insight.tracker.AppTracker.<init>(AppTracker.java:24)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:99)
at icd.uncaughtException(:com.google.android.gms:54)
at ibx.uncaughtException(:com.google.android.gms:62)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
07-03 16:05:52.463 26026-26139/? I/Process: Sending signal. PID: 26026 SIG: 9
07-03 16:05:52.489 891-3957/? I/ActivityManager: Process com.google.android.gms (pid 26026) has died
07-03 16:05:52.489 891-5403/? E/WifiService: Multicaster binderDied
07-03 16:05:52.489 891-1250/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ], android.os.BinderProxy#d4be6da)
07-03 16:05:52.490 891-1245/? D/ConnectivityService: releasing NetworkRequest NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.490 891-1245/? D/ConnectivityService: sending notification RELEASED for NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.491 891-1245/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.492 19485-19485/? V/GAV3: Thread[main,5,main]: service disconnected: ComponentInfo{com.google.android.gms/com.google.android.gms.analytics.service.AnalyticsService}
07-03 16:05:52.492 19485-19485/? V/GAV3: Thread[main,5,main]: Unexpected disconnect.
07-03 16:05:52.493 19485-19485/? V/GAV3: Thread[main,5,main]: service disconnected: ComponentInfo{com.google.android.gms/com.google.android.gms.analytics.service.AnalyticsService}
07-03 16:05:52.493 19485-19485/? V/GAV3: Thread[main,5,main]: Unexpected disconnect.
07-03 16:05:52.496 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/com.google.android.location.places.service.GeoDataService in 1000ms
07-03 16:05:52.496 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.drive.api.ApiService in 11000ms
07-03 16:05:52.496 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.analytics.service.AnalyticsService in 21000ms
07-03 16:05:52.497 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.signin.service.SignInAsyncService in 31000ms
07-03 16:05:52.497 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.measurement.service.MeasurementBrokerService in 31000ms
07-03 16:05:52.497 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.signin.service.SignInBrokerService in 41000ms
07-03 16:05:52.497 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.cast.media.CastMediaRouteProviderService in 51000ms
07-03 16:05:52.508 23176-23176/nl.dvandenberg.energymonitor D/Snapshot: Connection failed: ConnectionResult{statusCode=INTERNAL_ERROR, resolution=null, message=null}
07-03 16:05:52.513 23176-23176/nl.dvandenberg.energymonitor I/AppCompatDelegate: The Activity's LayoutInflater already has a Factory installed so we can not install AppCompat's
07-03 16:05:52.529 891-5403/? V/WindowManager: not Base app: Adding window Window{3ad0e9e8 u0 nl.dvandenberg.energymonitor/nl.dvandenberg.energymonitor.SplashActivity} at 23 of 29
07-03 16:05:52.540 23176-24251/nl.dvandenberg.energymonitor D/Snapshot: 4
Edit 2:
I have managed to solve my own problem, by adding .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN) to the builder. I've got no idea as to why this works or is needed, but as long as it works I'll take it.
I'm not posting this as an answer, as in this question I'd like to focus on how to find the source of this issue, not on making a list of possible solutions.
I've written an application and now when I want to launch it on Android 5, it launches on other versions of Android perfectly and I don't get any error from those but I get these errors on Android Lollipop:
[07-03 07:57:35.780 2955: 2955 I/] debuggerd: Nov 6 2015 06:54:22
07-03 07:57:42.193 2966-2966/? E/memtrack: Couldn't load memtrack module (No such file or directory)
07-03 07:57:42.193 2966-2966/? E/android.os.Debug: failed to load memtrack module: -2
07-03 08:02:10.113 2997-2997/com.android.settings E/InstalledAppDetails: Exception when retrieving package:ir.mazandaran.persiandesigners android.content.pm.PackageManager$NameNotFoundException: ir.mazandaran.persiandesigners
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:114)
at com.android.settings.applications.InstalledAppDetails.retrieveAppEntry(InstalledAppDetails.java:658)
at com.android.settings.applications.InstalledAppDetails.refreshUi(InstalledAppDetails.java:692)
at com.android.settings.applications.InstalledAppDetails.onActivityResult(InstalledAppDetails.java:564)
at android.app.Activity.dispatchActivityResult(Activity.java:6139)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3535)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3582)
at android.app.ActivityThread.access$1300(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1327)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
07-03 08:02:44.704 3130-3130/? E/memtrack: Couldn't load memtrack module (No such file or directory)
07-03 08:02:44.704 3130-3130/? E/android.os.Debug: failed to load memtrack module: -2
07-03 08:03:08.141 3159-3159/? E/memtrack: Couldn't load memtrack module (No such file or directory)
07-03 08:03:08.141 3159-3159/? E/android.os.Debug: failed to load memtrack module: -2
07-03 08:03:08.307 981-981/? E/EGL_emulation: tid 981: eglCreateSyncKHR(1181): error 0x3004 (EGL_BAD_ATTRIBUTE)
07-03 08:03:12.348 3173-3207/ir.mazandaran.persiandesigners A/libc: Fatal signal 4 (SIGILL), code 2, fault addr 0xf6f7446e in tid 3207 (pool-1-thread-1)
07-03 08:03:14.153 1022-1847/system_process E/SharedPreferencesImpl: Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml
07-03 08:03:14.187 1022-1062/system_process E/InputDispatcher: channel '34b7e9a4 ir.mazandaran.persiandesigners/ir.mazandaran.persiandesigners.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-03 08:03:14.251 981-981/? E/EGL_emulation: tid 981: eglCreateSyncKHR(1181): error 0x3004 (EGL_BAD_ATTRIBUTE)
07-03 08:03:15.113 250-250/? E/lowmemorykiller: Error opening /proc/3173/oom_score_adj; errno=2
07-03 08:03:19.860 3252-3290/ir.mazandaran.persiandesigners A/libc: Fatal signal 4 (SIGILL), code 2, fault addr 0xf6f7446e in tid 3290 (pool-1-thread-1)
07-03 08:03:20.676 1022-1847/system_process E/SharedPreferencesImpl: Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml
07-03 08:03:46.265 3349-3349/? E/memtrack: Couldn't load memtrack module (No such file or directory)
07-03 08:03:46.265 3349-3349/? E/android.os.Debug: failed to load memtrack module: -2
07-03 08:03:46.308 981-981/? E/EGL_emulation: tid 981: eglCreateSyncKHR(1181): error 0x3004 (EGL_BAD_ATTRIBUTE)
07-03 08:03:50.627 3363-3409/ir.mazandaran.persiandesigners A/libc: Fatal signal 4 (SIGILL), code 2, fault addr 0xf6f7446e in tid 3409 (pool-1-thread-1)
07-03 08:03:53.470 1022-1098/system_process E/NativeCrashListener: Exception dealing with report
android.system.ErrnoException: read failed: EAGAIN (Try again)
at libcore.io.Posix.readBytes(Native Method)
at libcore.io.Posix.read(Posix.java:147)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:230)
at android.system.Os.read(Os.java:364)
at com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240)
at com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)
07-03 08:03:53.503 1022-1062/system_process E/InputDispatcher: channel '1019e92 ir.mazandaran.persiandesigners/ir.mazandaran.persiandesigners.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-03 08:03:53.504 1022-1847/system_process E/SharedPreferencesImpl: Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml
07-03 08:03:55.910 3445-3481/ir.mazandaran.persiandesigners A/libc: Fatal signal 4 (SIGILL), code 2, fault addr 0xf6f7446e in tid 3481 (pool-1-thread-1)
07-03 08:03:56.288 1022-1847/system_process E/SharedPreferencesImpl: Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml
07-03 08:03:56.335 1022-1062/system_process E/InputDispatcher: channel '88a8b24 ir.mazandaran.persiandesigners/ir.mazandaran.persiandesigners.FistActiivty (server)' ~ Channel is unrecoverably broken and will be disposed!
07-03 08:03:56.336 1022-1062/system_process E/InputDispatcher: channel 'fcd7eb6 ir.mazandaran.persiandesigners/ir.mazandaran.persiandesigners.FistActiivty (server)' ~ Channel is unrecoverably broken and will be disposed!
07-03 08:03:56.735 1022-3509/system_process E/ActivityManager: Invalid thumbnail dimensions: 384x384
07-03 08:04:03.840 3521-3558/ir.mazandaran.persiandesigners A/libc: Fatal signal 4 (SIGILL), code 2, fault addr 0xf6f7446e in tid 3558 (pool-1-thread-1)
07-03 08:04:04.260 1022-1847/system_process E/SharedPreferencesImpl: Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml
07-03 08:08:57.044 81-81/? E/Genyd: recv() error
[ 07-03 08:08:57.044 81: 81 E/] Socket read error
[ 07-03 08:08:57.044 81: 81 D/] Socket deconnection
01-01 00:00:00.000 0-0/? E/Internal: device not found
when i am attempting to press the button to open a another activity
first click it looks,
02-03 20:48:42.489 17665-17665/? D/dalvikvm: Late-enabling CheckJNI
02-03 20:48:42.579 17665-17665/? I/PGA: Attempting to create new SOCKET connectionn pid = 17665, tid = 17665
02-03 20:48:42.619 17665-17665/? I/PGA: New SOCKET connection: com.example.balamasthang.smartattendance (pid 17665, tid 17665)
02-03 20:48:42.619 17665-17665/? W/PGA: [17665] egl: eglCreateWindowSurface (0x4a8937a0, 0x0, 0x7989bc88, 0x77603be0)
02-03 20:48:42.619 17665-17665/? W/PGA: [17665] egl: eglCreateWindowSurface (0x4a8937a0, 0x0, 0x7989bc88, 0x77603be0) returned
02-03 20:48:42.629 17665-17665/? D/OpenGLRenderer: Enabling debug mode 0
When i was clicking second time it looks
something like java.lang ..... error in red color. . but only visible 1 seconds. and it was gone. . and looks like a first click in logcat.
Please help me to solve this problem
You should define activity in android manifest. Can you forget it ?
07-03 23:59:01.067: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
07-03 23:59:28.297: ERROR/BatteryService(60): usbOnlinePath not found
07-03 23:59:28.307: ERROR/BatteryService(60): batteryVoltagePath not found
07-03 23:59:28.307: ERROR/BatteryService(60): batteryTemperaturePath not found
07-03 23:59:28.407: ERROR/SurfaceFlinger(60): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
07-03 23:59:39.097: ERROR/EventHub(60): could not get driver version for /dev/input/mouse0, Not a typewriter
07-03 23:59:39.137: ERROR/EventHub(60): could not get driver version for /dev/input/mice, Not a typewriter
07-03 23:59:39.777: ERROR/System(60): Failure starting core service
07-03 23:59:39.777: ERROR/System(60): java.lang.SecurityException
07-03 23:59:39.777: ERROR/System(60): at android.os.BinderProxy.transact(Native Method)
07-03 23:59:39.777: ERROR/System(60): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
07-03 23:59:39.777: ERROR/System(60): at android.os.ServiceManager.addService(ServiceManager.java:72)
07-03 23:59:39.777: ERROR/System(60): at com.android.server.ServerThread.run(SystemServer.java:176)
07-03 23:59:39.837: ERROR/AndroidRuntime(60): Crash logging skipped, no checkin service
07-04 00:00:00.400: ERROR/vold(26): Cannot start volume '/sdcard' (volume is not bound)
07-04 00:00:01.147: ERROR/MediaPlayerService(30): Couldn't open fd for content://settings/system/notification_sound
07-04 00:00:01.227: ERROR/MediaPlayer(60): Unable to to create media player
07-04 00:00:06.315: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:11.615: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:12.124: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:35.335: ERROR/AndroidRuntime(126): ERROR: thread attach failed
07-04 00:00:42.835: ERROR/AndroidRuntime(211): ERROR: thread attach failed
I'm assuming that you're working on Android, and that you're also referring to the exception in the middle of the log.
The SecurityException means you probably forgot to give the application the necessary permissions - you should change the Manifest XML file, as explained here.