This is a migrated thread and some comments may be shown as answers.

Cache Issue & Device Recognition

4 Answers 46 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Don
Top achievements
Rank 2
Don asked on 29 Jun 2012, 04:42 PM
running Win7 64b.

1) occassionally have a cache problem - when I make a change and get old content in simulator
2) sometimes (mostly) having an issue with testing on local device.
    iTunes sees the device(iPhone) but Graphite does not. Can we get a "re-scan" for devices.


LOVE THE PRODUCT !

4 Answers, 1 is accepted

Sort by
0
sdobrev
Top achievements
Rank 1
answered on 29 Jun 2012, 04:55 PM
Hi Don,

Thanks for your feedback. Do you have specific steps to reproduce to the caching problem in the simulator? Are you changing a HTML file or a script/style one?

Regarding your other question can you share more information with us? What iPhone do you have? What is the installed iOS version? Do you see some exception debug info printed in the output pane?
0
Don
Top achievements
Rank 2
answered on 29 Jun 2012, 10:10 PM
really intermittent on both issues.
The cache problem has not presented itself today but in general it is when I make a change to .html files the simulator would not display them. I had to close out the Graphite app and re-open in Win7 64bit.

re: Run on (local) device.
It worked first thing this morning however when I came back from lunch it did not.
I have a new iPhone 4-S running the latest software. (5.1.1). iTunes recognizes it.

I have tried closing and re-opening Graphite but it still does not see it.
No exception information but here is the log entry:

[2012-06-29 14-59-08-82] Log (Info,None): Version 2012.2.606.2. Deployment location app.icenium.com.
[2012-06-29 14-59-10-08] Log (Info,None): Logged in as: [removed by me]
Loading extension DeviceManagement.
Loading extension ProjectNavigator.
Loading extension MSBuildCore.
Loading extension iOS.
Loading extension Android.
Loading extension Callback.
Loading extension DocumentNavigation.
Loading extension TextEditor.
Loading extension CodeAnalysisIntegration.
Loading extension FindReplaceModule.
Loading extension ErrorReporting.
Loading extension MagicBox.
Loading extension MobileSimulator.
TA2Service Synchronized.
[2012-06-29 15-00-01-41] Log (Exception,High): System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
   at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
   at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
   --- End of inner exception stack trace ---
   at Mono.Security.Protocol.Tls.SslStreamBase.EndWrite(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at iMobileDeviceSharp.Transport.PListConnection.<>c__DisplayClass2.<SendCoreAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
   at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
   at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
   --- End of inner exception stack trace ---
   at Mono.Security.Protocol.Tls.SslStreamBase.EndWrite(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at iMobileDeviceSharp.Transport.PListConnection.<>c__DisplayClass2.<SendCoreAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
   at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
   at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
   --- End of inner exception stack trace ---
   at Mono.Security.Protocol.Tls.SslStreamBase.EndWrite(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise)<---
<---
0
Yavor
Top achievements
Rank 1
answered on 02 Jul 2012, 09:05 AM
Hi Don,

It seems that Graphite has detected your iPhone, but for some reason the handshake fails. Could you please try the following:
  1. Disable iTunes from auto-starting when your iPhone is plugged in.
  2. Quit iTunes and unplug your iPhone.
  3. Start Graphite and load a project. Wait for the '%ProjectName% Synchronized' line in the Output.
  4. Connect your iPhone.
Graphite should be able to detect your iPhone and display it in the Devices pane.

In some scenarios running iTunes and Graphite simultaneously can disrupt Graphite's ability to communicate with iOS devices, so it's best to rule out iTunes first.
0
Don
Top achievements
Rank 2
answered on 02 Jul 2012, 08:54 PM
OK - better now.
I followed your steps below and Graphite now sees my iPhone.

I now get a compile error due to some issue with my provisioning file.
I have a valid developer profile and provision file that works fine when used with build.phonegap.com

This is now outside the scope of this post so I will pursue it in the proper thread.

Thanks-
Don
Tags
AppBuilder Windows client
Asked by
Don
Top achievements
Rank 2
Answers by
sdobrev
Top achievements
Rank 1
Don
Top achievements
Rank 2
Yavor
Top achievements
Rank 1
Share this question
or