Skip to content

Instantly share code, notes, and snippets.

@jmoody
Created January 6, 2015 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoody/dd610904d8d0926a4e21 to your computer and use it in GitHub Desktop.
Save jmoody/dd610904d8d0926a4e21 to your computer and use it in GitHub Desktop.
:host strategy is hanging intermittently on iOS 7 device - run_loop #99

There were ~3000 lines. I trimmed out all the **** lines.

2015-01-05 18:55:53.219 instruments[35602:116064] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2015-01-05 17:55:56 +0000 Default: OUTPUT_JSON:
{"output":"Starting loop"}
END_OUTPUT
2015-01-05 17:55:56 +0000 Default: ****
2015-01-05 17:55:59 +0000 Default: OUTPUT_JSON:
{"output":1,"last_index":1}
END_OUTPUT
2015-01-05 17:55:59 +0000 Default: ****
2015-01-05 17:55:59 +0000 Debug: target.tapWithOptions({y:"741", x:"402"}, {duration:"0.1"})
2015-01-05 17:55:59 +0000 Default: OUTPUT_JSON:
{"status":"success","value":true,"index":1}
END_OUTPUT
2015-01-05 17:55:59 +0000 Default: 2015-01-05 17:56:01 +0000 Default: OUTPUT_JSON:
{"output":2,"last_index":2}
END_OUTPUT
2015-01-05 17:56:01 +0000 Default: ****
2015-01-05 17:56:01 +0000 Debug: target.tapWithOptions({y:"99", x:"125"}, {duration:"0.1"})
2015-01-05 17:56:01 +0000 Default: OUTPUT_JSON:
{"status":"success","value":true,"index":2}
END_OUTPUT
2015-01-05 17:56:01 +0000 Default: ****
2015-01-05 17:56:20 +0000 Default: OUTPUT_JSON:
{"output":3,"last_index":3}
END_OUTPUT
2015-01-05 17:56:20 +0000 Default: 2015-01-05 17:56:21 +0000 Default: OUTPUT_JSON:
{"status":"success","value":{"origin":{"x":966,"y":514},"size":{"width":48,"height":46}},"index":3}
END_OUTPUT
2015-01-05 17:56:21 +0000 Default: ****
2015-01-05 17:56:22 +0000 Default: OUTPUT_JSON:
{"output":4,"last_index":4}
END_OUTPUT
2015-01-05 17:56:22 +0000 Default: ****
2015-01-05 17:56:22 +0000 Debug: target.dragFromToForDuration({y:"514", x:"966"}, {y:"479", x:"926"}, "0.75")
2015-01-05 17:56:22 +0000 Default: OUTPUT_JSON:
{"status":"success","value":null,"index":4}
END_OUTPUT
2015-01-05 17:56:22 +0000 Default: ****
 2015-01-05 17:56:30 +0000 Default: OUTPUT_JSON:
{"output":5,"last_index":5}
END_OUTPUT
2015-01-05 17:56:30 +0000 Default: ***
2015-01-05 17:56:30 +0000 Default: OUTPUT_JSON:
{"status":"success","value":{"origin":{"x":933,"y":683},"size":{"width":91,"height":79}},"index":5}
END_OUTPUT
2015-01-05 17:56:30 +0000 Default: ****
2015-01-05 17:56:31 +0000 Default: OUTPUT_JSON:
{"output":6,"last_index":6}
END_OUTPUT
2015-01-05 17:56:31 +0000 Default: ****
2015-01-05 17:56:31 +0000 Debug: target.dragFromToForDuration({y:"683", x:"933"}, {y:"598", x:"893"}, "1")
2015-01-05 17:56:33 +0000 Default: OUTPUT_JSON:
{"status":"success","value":null,"index":6}
END_OUTPUT
2015-01-05 17:56:33 +0000 Default: ****
2015-01-05 17:56:55 +0000 Default: OUTPUT_JSON:
{"output":7,"last_index":7}
END_OUTPUT
2015-01-05 17:56:55 +0000 Default: ****
2015-01-05 17:56:55 +0000 Default: OUTPUT_JSON:
{"status":"success","value":{"origin":{"x":933,"y":483},"size":{"width":91,"height":79}},"index":7}
END_OUTPUT
2015-01-05 17:56:55 +0000 Default: ****
2015-01-05 17:56:56 +0000 Default: OUTPUT_JSON:
{"output":8,"last_index":8}
END_OUTPUT
2015-01-05 17:56:56 +0000 Default: ****
2015-01-05 17:56:56 +0000 Debug: target.dragFromToForDuration({y:"483", x:"933"}, {y:"448", x:"893"}, "0.75")
2015-01-05 17:56:57 +0000 Default: OUTPUT_JSON:
{"status":"success","value":null,"index":8}
END_OUTPUT
2015-01-05 17:56:57 +0000 Default: ****
2015-01-05 18:57:31.947 instruments[35602:116085] Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7fd82a68dbf0>
< snip >
2015-01-05 18:58:10.332 instruments[35602:118831] Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7fd82a5b4080>
@jmoody
Copy link
Author

jmoody commented Jan 6, 2015

Here is a second trace.

2015-01-06 02:04:24.444 instruments[50245:230905] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2015-01-06 02:04:24.567 instruments[50245:230884] Connection peer refused channel request for "com.apple.instruments.server.services.capabilities"; channel canceled <DTXChannel: 0x7fa7807027d0>
2015-01-06 02:04:24.567 instruments[50245:230884] Connection peer refused channel request for "com.apple.instruments.server.services.launchdaemon"; channel canceled <DTXChannel: 0x7fa7807023d0>
2015-01-06 02:04:24.568 instruments[50245:230884] Connection peer refused channel request for "com.apple.instruments.server.services.device.xpccontrol"; channel canceled <DTXChannel: 0x7fa781b6cfc0>
2015-01-06 02:04:24.568 instruments[50245:230884] Connection peer refused channel request for "com.apple.instruments.server.services.deviceinfo"; channel canceled <DTXChannel: 0x7fa781b6aef0>
2015-01-06 02:04:24.568 instruments[50245:230884] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol"; channel canceled <DTXChannel: 0x7fa781b6cba0>
2015-01-06 02:04:24.568 instruments[50245:230884] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol.posixspawn"; channel canceled <DTXChannel: 0x7fa7807028b0>
2015-01-06 02:04:24.569 instruments[50245:230884] Connection peer refused channel request for "com.apple.instruments.server.services.mobilenotifications"; channel canceled <DTXChannel: 0x7fa780703950>
2015-01-06 02:04:24.569 instruments[50245:230884] Connection peer refused channel request for "com.apple.instruments.server.services.device.applictionListing"; channel canceled <DTXChannel: 0x7fa7807040e0>
2015-01-06 02:04:24.599 instruments[50245:230902] Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7fa784d6a960>
2015-01-06 01:04:27 +0000 Default: OUTPUT_JSON:
{"output":"Starting loop"}
END_OUTPUT
2015-01-06 01:04:27 +0000 Default: ****
2015-01-06 01:04:28 +0000 Default: OUTPUT_JSON:
{"output":0,"last_index":0}
END_OUTPUT
2015-01-06 01:04:28 +0000 Default: ****
2015-01-06 01:04:28 +0000 Default: Listening for run loop commands
2015-01-06 01:04:28 +0000 Default: OUTPUT_JSON:
{"status":"success","value":true,"index":0}
END_OUTPUT
2015-01-06 01:04:28 +0000 Default: ****
2015-01-06 01:04:30 +0000 Default: OUTPUT_JSON:
{"output":1,"last_index":1}
END_OUTPUT
2015-01-06 01:04:30 +0000 Default: ****
2015-01-06 01:04:30 +0000 Debug: target.tapWithOptions({y:"741", x:"402"}, {duration:"0.1"})
2015-01-06 01:04:31 +0000 Default: OUTPUT_JSON:
{"status":"success","value":true,"index":1}
END_OUTPUT
2015-01-06 01:04:31 +0000 Default: ****
2015-01-06 01:04:33 +0000 Default: OUTPUT_JSON:
{"output":2,"last_index":2}
END_OUTPUT
2015-01-06 01:04:33 +0000 Default: ****
2015-01-06 01:04:33 +0000 Debug: target.tapWithOptions({y:"99", x:"125"}, {duration:"0.1"})
2015-01-06 01:04:33 +0000 Default: OUTPUT_JSON:
{"status":"success","value":true,"index":2}
END_OUTPUT
2015-01-06 01:04:33 +0000 Default: ****
2015-01-06 01:04:40 +0000 Default: OUTPUT_JSON:
{"output":3,"last_index":3}
END_OUTPUT
2015-01-06 01:04:40 +0000 Default: ****
2015-01-06 01:04:40 +0000 Debug: target.tapWithOptions({y:"99", x:"125"}, {duration:"0.1"})
2015-01-06 01:04:40 +0000 Default: OUTPUT_JSON:
{"status":"success","value":true,"index":3}
END_OUTPUT
2015-01-06 01:04:40 +0000 Default: ****
2015-01-06 01:04:45 +0000 Default: OUTPUT_JSON:
{"output":4,"last_index":4}
END_OUTPUT
2015-01-06 01:04:45 +0000 Default: ****
2015-01-06 01:04:45 +0000 Default: OUTPUT_JSON:
{"status":"success","value":{"origin":{"x":700,"y":960},"size":{"width":68,"height":60}},"index":4}
END_OUTPUT
2015-01-06 01:04:45 +0000 Default: ****
2015-01-06 01:04:46 +0000 Default: OUTPUT_JSON:
{"output":5,"last_index":5}
END_OUTPUT
2015-01-06 01:04:46 +0000 Default: ****
2015-01-06 01:04:46 +0000 Debug: target.dragFromToForDuration({y:"960", x:"700"}, {y:"875", x:"660"}, "1")
2015-01-06 01:04:47 +0000 Default: OUTPUT_JSON:
{"status":"success","value":null,"index":5}
END_OUTPUT
2015-01-06 01:04:47 +0000 Default: ****
2015-01-06 01:04:55 +0000 Default: OUTPUT_JSON:
{"output":6,"last_index":6}
END_OUTPUT
2015-01-06 01:04:55 +0000 Default: ****
2015-01-06 01:04:55 +0000 Debug: target.frontMostApp().keyboard().buttons()["Hide keyboard"].tap()
2015-01-06 01:04:56 +0000 Default: OUTPUT_JSON:
{"status":"success","index":6}
END_OUTPUT
2015-01-06 01:04:56 +0000 Default: ****
2015-01-06 02:05:12.929 instruments[50245:231941] Connection peer refused channel request for 8 instruments[50245:231942] 

< snip >

Repeated thousands of times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment