Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with PID detection #1

Open
lineten opened this issue Aug 14, 2012 · 2 comments
Open

Problem with PID detection #1

lineten opened this issue Aug 14, 2012 · 2 comments

Comments

@lineten
Copy link

lineten commented Aug 14, 2012

final String pidTest = String.format("(% 5d)", android.os.Process.myPid());

With the space in situ this doesn't work on my handset (Galaxy Nexus JellyBean).

This works (without the space).

final String pidTest = String.format("(%5d)", android.os.Process.myPid());

@robUx4
Copy link
Contributor

robUx4 commented Aug 16, 2012

OK, we'll investigate. We have to find which version of the logcat had this change. I suppose you use an official ROM ?

@lineten
Copy link
Author

lineten commented Aug 16, 2012

Hi. Sample log follows. Yeah stock jellybean on galaxy nexus

samsung Galaxy Nexus (JRO03C) API v16 (4.1.1) [START LOGCAT] ---------
beginning of /dev/log/main 08-16 06:43:41.678 D/dalvikvm(21465):
GC_CONCURRENT freed 147K, 3% free 11083K/11335K, paused 16ms+2ms, total
39ms 08-16 06:43:41.764 D/libEGL (21465): loaded
/vendor/lib/egl/libEGL_POWERVR_SGX540_120.so 08-16 06:43:41.779 D/libEGL
(21465): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so 08-16
06:43:41.779 D/libEGL (21465): loaded
/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so 08-16 06:43:41.857
D/OpenGLRenderer(21465): Enabling debug mode 0 08-16 06:43:43.803
D/dalvikvm(21465): GC_CONCURRENT freed 236K, 4% free 11297K/11655K, paused
16ms+10ms, total 37ms 08-16 06:43:43.810 D/AndroidRuntime(21465): Shutting
down VM 08-16 06:43:43.810 W/dalvikvm(21465): threadid=1: thread exiting
with uncaught exception (group=0x41f42300) --------- beginning of
/dev/log/system 08-16 06:43:43.834 E/AndroidRuntime(21465): FATAL
EXCEPTION: main 08-16 06:43:43.834 E/AndroidRuntime(21465):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.lineten.arseblog/com.lineten.arseblog.ui.Main}:
java.lang.NullPointerException 08-16 06:43:43.834 E/AndroidRuntime(21465):
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.app.ActivityThread.access$600(ActivityThread.java:130) 08-16
06:43:43.834 E/AndroidRuntime(21465): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) 08-16
06:43:43.834 E/AndroidRuntime(21465): at
android.os.Handler.dispatchMessage(Handler.java:99) 08-16 06:43:43.834
E/AndroidRuntime(21465): at android.os.Looper.loop(Looper.java:137) 08-16
06:43:43.834 E/AndroidRuntime(21465): at
android.app.ActivityThread.main(ActivityThread.java:4745) 08-16
06:43:43.834 E/AndroidRuntime(21465): at
java.lang.reflect.Method.invokeNative(Native Method) 08-16 06:43:43.834
E/AndroidRuntime(21465): at
java.lang.reflect.Method.invoke(Method.java:511) 08-16 06:43:43.834
E/AndroidRuntime(21465): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 08-16
06:43:43.834 E/AndroidRuntime(21465): at
dalvik.system.NativeStart.main(Native Method) 08-16 06:43:43.834
E/AndroidRuntime(21465): Caused by: java.lang.NullPointerException 08-16
06:43:43.834 E/AndroidRuntime(21465): at
android.os.Parcel.readStringList(Parcel.java:1829) 08-16 06:43:43.834
E/AndroidRuntime(21465): at
com.lineten.encappsulate.EncappItemGrid.(EncappItemGrid.java:75) 08-16
06:43:43.834 E/AndroidRuntime(21465): at
com.lineten.encappsulate.EncappItemGrid$1.createFromParcel(EncappItemGrid.java:90)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
com.lineten.encappsulate.EncappItemGrid$1.createFromParcel(EncappItemGrid.java:88)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.os.Parcel.readParcelable(Parcel.java:2103) 08-16 06:43:43.834
E/AndroidRuntime(21465): at android.os.Parcel.readValue(Parcel.java:1965)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.os.Parcel.readMapInternal(Parcel.java:2226) 08-16 06:43:43.834
E/AndroidRuntime(21465): at android.os.Bundle.unparcel(Bundle.java:223)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.os.Bundle.getSparseParcelableArray(Bundle.java:1232) 08-16
06:43:43.834 E/AndroidRuntime(21465): at
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:806)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1065)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.support.v4.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1839)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:202)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
com.lineten.arseblog.ui.Main.onCreate(Main.java:111) 08-16 06:43:43.834
E/AndroidRuntime(21465): at
android.app.Activity.performCreate(Activity.java:5008) 08-16 06:43:43.834
E/AndroidRuntime(21465): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
08-16 06:43:43.834 E/AndroidRuntime(21465): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
08-16 06:43:43.834 E/AndroidRuntime(21465): ... 11 more 08-16 06:43:46.373
I/Process (21465): Sending signal. PID: 21465 SIG: 9 08-16 06:43:50.068
D/dalvikvm(21487): GC_CONCURRENT freed 229K, 3% free 11025K/11335K, paused
4ms+3ms, total 21ms 08-16 06:43:50.068 D/dalvikvm(21487):
WAIT_FOR_CONCURRENT_GC blocked 1ms 08-16 06:43:50.295 D/dalvikvm(21487):
GC_FOR_ALLOC freed 63K, 2% free 11310K/11463K, paused 20ms, total 20ms
08-16 06:43:50.404 D/dalvikvm(21487): GC_CONCURRENT freed 175K, 3% free
11606K/11847K, paused 7ms+9ms, total 37ms 08-16 06:43:50.506
D/Arseblog(21487): Setup Analytics 08-16 06:43:50.568 D/dalvikvm(21487):
GC_CONCURRENT freed 461K, 5% free 11607K/12167K, paused 12ms+3ms, total
37ms 08-16 06:43:50.584 D/dalvikvm(21487): GC_FOR_ALLOC freed 7K, 5% free
11600K/12167K, paused 14ms, total 14ms 08-16 06:43:50.584
I/dalvikvm-heap(21487): Grow heap (frag case) to 11.637MB for 262160-byte
allocation 08-16 06:43:50.607 D/dalvikvm(21487): GC_FOR_ALLOC freed 18K, 6%
free 11837K/12487K, paused 24ms, total 24ms 08-16 06:43:50.646 D/libEGL
(21487): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so 08-16
06:43:50.654 D/libEGL (21487): loaded
/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so 08-16 06:43:50.654
D/libEGL (21487): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
08-16 06:43:50.732 D/OpenGLRenderer(21487): Enabling debug mode 0 08-16
06:43:50.834 D/dalvikvm(21487): GC_CONCURRENT freed 301K, 5% free
11945K/12487K, paused 3ms+3ms, total 30ms 08-16 06:43:50.920
V/GCMRegistrar(21487): Is registered on server: true 08-16 06:43:51.162
D/dalvikvm(21487): GC_FOR_ALLOC freed 92K, 5% free 11975K/12487K, paused
17ms, total 18ms 08-16 06:43:51.162 I/dalvikvm-heap(21487): Grow heap (frag
case) to 11.916MB for 169876-byte allocation 08-16 06:43:51.178
D/dalvikvm(21487): GC_FOR_ALLOC freed <1K, 5% free 12140K/12679K, paused
14ms, total 14ms 08-16 06:43:51.685 D/dalvikvm(21487): GC_CONCURRENT freed
271K, 3% free 12407K/12743K, paused 18ms+4ms, total 54ms 08-16 06:43:51.685
D/dalvikvm(21487): WAIT_FOR_CONCURRENT_GC blocked 14ms 08-16 06:43:51.873
D/dalvikvm(21487): GC_FOR_ALLOC freed 395K, 5% free 12416K/12935K, paused
23ms, total 26ms 08-16 06:43:51.873 I/dalvikvm-heap(21487): Grow heap (frag
case) to 12.443MB for 271576-byte allocation 08-16 06:43:51.904
D/dalvikvm(21487): GC_FOR_ALLOC freed 20K, 5% free 12661K/13255K, paused
35ms, total 35ms 08-16 06:43:52.100 D/dalvikvm(21487): GC_FOR_ALLOC freed
406K, 6% free 12521K/13255K, paused 37ms, total 38ms 08-16 06:43:52.146
D/dalvikvm(21487): GC_FOR_ALLOC freed 84K, 5% free 12605K/13255K, paused
27ms, total 27ms 08-16 06:43:52.154 I/dalvikvm-heap(21487): Grow heap (frag
case) to 12.700MB for 346728-byte allocation 08-16 06:43:52.185
D/dalvikvm(21487): GC_FOR_ALLOC freed 168K, 7% free 12775K/13639K, paused
37ms, total 37ms 08-16 06:43:52.225 D/dalvikvm(21487): GC_FOR_ALLOC freed
342K, 8% free 12612K/13639K, paused 32ms, total 32ms 08-16 06:43:52.256
D/dalvikvm(21487): GC_FOR_ALLOC freed 2K, 5% free 12965K/13639K, paused
17ms, total 19ms 08-16 06:43:52.264 I/dalvikvm-heap(21487): Grow heap (frag
case) to 13.066MB for 362250-byte allocation 08-16 06:43:52.287
D/dalvikvm(21487): GC_FOR_ALLOC freed 358K, 8% free 12960K/14023K, paused
24ms, total 24ms 08-16 06:43:52.482 D/dalvikvm(21487): GC_CONCURRENT freed
403K, 6% free 13187K/14023K, paused 12ms+14ms, total 46ms 08-16
06:43:58.217 D/dalvikvm(21487): GC_CONCURRENT freed 624K, 6% free
13280K/14023K, paused 15ms+6ms, total 51ms 08-16 06:43:58.514
D/dalvikvm(21487): GC_FOR_ALLOC freed 378K, 8% free 13059K/14151K, paused
23ms, total 25ms 08-16 06:43:58.514 I/dalvikvm-heap(21487): Grow heap (frag
case) to 12.947MB for 140848-byte allocation 08-16 06:43:58.537
D/dalvikvm(21487): GC_FOR_ALLOC freed 77K, 9% free 13118K/14343K, paused
21ms, total 22ms 08-16 06:43:58.568 D/dalvikvm(21487): GC_FOR_ALLOC freed
141K, 9% free 13064K/14343K, paused 31ms, total 31ms 08-16 06:43:58.600
D/dalvikvm(21487): GC_FOR_ALLOC freed <1K, 8% free 13234K/14343K, paused
22ms, total 22ms 08-16 06:43:58.600 I/dalvikvm-heap(21487): Grow heap (frag
case) to 13.150MB for 174004-byte allocation 08-16 06:43:58.631
D/dalvikvm(21487): GC_FOR_ALLOC freed 170K, 9% free 13234K/14535K, paused
32ms, total 32ms 08-16 06:44:00.303 I/Choreographer(21487): Skipped 30
frames! The application may be doing too much work on its main thread.
08-16 06:44:00.357 D/dalvikvm(21487): GC_CONCURRENT freed 861K, 11% free
13074K/14535K, paused 13ms+6ms, total 40ms 08-16 06:44:00.365
D/dalvikvm(21487): WAIT_FOR_CONCURRENT_GC blocked 28ms 08-16 06:44:00.428
D/dalvikvm(21487): GC_FOR_ALLOC freed 154K, 9% free 13298K/14535K, paused
34ms, total 34ms 08-16 06:44:00.428 I/dalvikvm-heap(21487): Grow heap (frag
case) to 13.355MB for 323696-byte allocation 08-16 06:44:00.451
D/dalvikvm(21487): GC_FOR_ALLOC freed 4K, 9% free 13609K/14855K, paused
17ms, total 17ms 08-16 06:44:00.482 D/dalvikvm(21487): GC_FOR_ALLOC freed
8K, 9% free 13611K/14855K, paused 27ms, total 27ms 08-16 06:44:00.482
I/dalvikvm-heap(21487): Grow heap (frag case) to 13.661MB for 323696-byte
allocation 08-16 06:44:00.498 D/dalvikvm(21487): GC_FOR_ALLOC freed <1K, 9%
free 13927K/15175K, paused 16ms, total 16ms 08-16 06:44:05.060
I/Arseblog(21487): Generating Debug Log For Arseblog [END LOGCAT]
On 16 Aug 2012 08:10, "Steve Lhomme" [email protected] wrote:

OK, we'll investigate. We have to find which version of the logcat had
this change. I suppose you use an official ROM ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-7778289.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant