mikeucfl / iphonestalker

This is a simple Java application which lists the locations stored in your local iPhone backup files, or where it currently is at by 'Find My iPhone'.
7 stars 2 forks source link

Linux issue with FMI #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter a username/password for FMI
2. Click on a location to display on the map

What is the expected output? What do you see instead?
Should see the location drawn on the map. Instead an exception occurs.

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: 
Color parameter outside of expected range: Red
        at java.awt.Color.testColorValueRange(Color.java:298)
        at java.awt.Color.<init>(Color.java:382)
        at java.awt.Color.<init>(Color.java:357)
        at iphonestalker.gui.MyMapRoute.paint(MyMapRoute.java:150)
        at iphonestalker.gui.MyJMapViewer.paintComponent(MyJMapViewer.java:155)
        at javax.swing.JComponent.paint(JComponent.java:1029)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
        at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1224)
        at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:785)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:713)
        at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:693)
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by MikeU...@gmail.com on 2 Jan 2012 at 10:50

GoogleCodeExporter commented 9 years ago
iphonestalker.util.FindMyIPhoneReader
-------------------------------------

lines 240-241: changed to
                iPhoneLocation.setHorizontalAccuracy(horizontalAccuracy);
System.out.println("horizontalAccuracy: " + horizontalAccuracy);
System.out.println("should be: " + location.get("horizontalAccuracy"));
                iPhoneLocation.setConfidence(70-(int)horizontalAccuracy);

and output showed
horizontalAccuracy: 1344.303113331023
should be: 1344.303113331023

Also, the confidence value used in the stack trace was showing -1274

Original comment by MikeU...@gmail.com on 2 Jan 2012 at 11:07