HierarchyViewer does not work with production devices. If adb shell
getprop ro.secure prints out "1", then HierarchyViewer cannot be used.

On Mon, Jun 29, 2009 at 9:17 AM, jarkman<[email protected]> wrote:
>
> I've just tried to use Hierarchy Viewer on 1.5r2 for the first time,
> and I have also seen a problem. I'm using XP, and I consistently get a
> crash when I hit 'Load View Hierarchy' when connected to a real device
> ( a UK G1 on TMO ).
>
> I do not see the same problem with the emulator - it works fine there.
> Or, at least, it works much better, though i have had one crash.
>
> Do you have any luck when you try the emulator ?
>
>
> Here's a typical stack from a crash when connected to my device:
>
>
> C:\Android\android-sdk-windows-1.5_r2\tools>hierarchyviewer
> ==> Starting client
> ==> DUMP
> 29-Jun-2009 17:04:37 org.openide.util.Exceptions printStackTrace
> SEVERE: null
> java.net.SocketException: Connection reset
>        at java.net.SocketInputStream.read(SocketInputStream.java:168)
>        at sun.nio.cs.StreamDecoder$CharsetSD.readBytes
> (StreamDecoder.java:411)
>        at sun.nio.cs.StreamDecoder$CharsetSD.implRead
> (StreamDecoder.java:453)
>        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>        at java.io.InputStreamReader.read(InputStreamReader.java:167)
>        at java.io.BufferedReader.fill(BufferedReader.java:136)
>        at java.io.BufferedReader.readLine(BufferedReader.java:299)
>        at java.io.BufferedReader.readLine(BufferedReader.java:362)
>        at
> com.android.hierarchyviewer.scene.ViewHierarchyLoader.loadScene
> (ViewHierarchyLoader.java:71)
>        at com.android.hierarchyviewer.ui.Workspace
> $LoadGraphTask.doInBackground(Workspace.java:1185)
>        at com.android.hierarchyviewer.ui.Workspace
> $LoadGraphTask.doInBackground(Workspace.java:1177)
>        at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
>        at java.util.concurrent.FutureTask$Sync.innerRun
> (FutureTask.java:269)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>        at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
> (ThreadPoolExecutor.java:650)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:675)
>        at java.lang.Thread.run(Thread.java:595)
> ==> DONE
> java.util.concurrent.ExecutionException:
> java.lang.NullPointerException
>        at java.util.concurrent.FutureTask$Sync.innerGet
> (FutureTask.java:205)
>        at java.util.concurrent.FutureTask.get(FutureTask.java:80)
>        at org.jdesktop.swingworker.SwingWorker.get(Unknown Source)
>        at com.android.hierarchyviewer.ui.Workspace$LoadGraphTask.done
> (Workspace.java:1194)
>        at org.jdesktop.swingworker.SwingWorker$5.run(Unknown Source)
>        at org.jdesktop.swingworker.SwingWorker
> $DoSubmitAccumulativeRunnable.run(Unknown Source)
>        at org.jdesktop.swingworker.AccumulativeRunnable.run(Unknown
> Source)
>        at org.jdesktop.swingworker.SwingWorker
> $DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
>        at javax.swing.Timer.fireActionPerformed(Timer.java:271)
>        at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
>        at java.awt.event.InvocationEvent.dispatch
> (InvocationEvent.java:209)
>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
> (EventDispatchThread.java:242)
>        at java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:163)
>        at java.awt.EventDispatchThread.pumpEvents
> (EventDispatchThread.java:157)
>        at java.awt.EventDispatchThread.pumpEvents
> (EventDispatchThread.java:149)
>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:
> 110)
> Caused by: java.lang.NullPointerException
>        at com.android.hierarchyviewer.ui.Workspace
> $LoadGraphTask.doInBackground(Workspace.java:1186)
>        at com.android.hierarchyviewer.ui.Workspace
> $LoadGraphTask.doInBackground(Workspace.java:1177)
>        at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
>        at java.util.concurrent.FutureTask$Sync.innerRun
> (FutureTask.java:269)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>        at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
> (ThreadPoolExecutor.java:650)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:675)
>        at java.lang.Thread.run(Thread.java:595)
>
>
>
> On Jun 18, 3:43 am, havexz <[email protected]> wrote:
>> HELP NEEDED
>>
>> On Jun 11, 11:34 am, havexz <[email protected]> wrote:
>>
>> > No one is facing this issue?
>>
>> > On Jun 7, 11:32 pm, havexz <[email protected]> wrote:
>>
>> > > I have Window Vista Ultimate machine 32 bit.....
>> > > Hierarchy Viewer used to work fine on the same machine prior to new
>> > > 1.5 sdk. But in the new sdk Hierarchy viewer does not seem to work for
>> > > my ADP. It works fine for the emulator though.
>>
>>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to