Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19774] iOS Profiler: Studio Error getting the performance data snapshot

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-10-23T23:18:54.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.1.0
ComponentsiOS
Labelsios, profiler, user_experience
Reporter Ricardo Ramirez
AssigneeChee Kiat Ng
Created2015-09-02T16:12:01.000+0000
Updated2015-11-20T04:33:37.000+0000

Description

Issue Description

When the user click on the Capture performance profile button the alert with the message: Error getting the performance data snapshot and the snapshot is not captured

Expected behavior

capture a snapshot without errors

Steps to Replicate:

1. Create a new titanium alloy/classic default project 2. Run as profile on any iOS simulator 3. In the profile view click the Capture Performance Profile 4. The alert is displayed with the error ** Profile log and Ti info attached Additional note: This is not happening in all my projects, I also have other project where I can capture the snapshot and the Ti version is the same. In Android Works perfectly on Titanium SDK 3.5.1.GA, 4.0.0.GA, 4.1.0.GA.

Attachments

FileDateSize
logfile.txt2015-10-02T23:19:21.000+00001058432
Screen Shot 2015-09-02 at 10.10.49 AM.png2015-09-02T15:36:42.000+0000160027
studio_log.txt2015-09-14T21:18:17.000+000014282
Ti info.rtf2015-09-02T18:12:16.000+000014562

Comments

  1. Ingo Muschenetz 2015-09-14

    I need the Studio log file. Without that, I can't tell what is going on.
  2. Ricardo Ramirez 2015-09-14

    The Studio Log is attached, when the snapshot is captured, the studio just throws the alert message (As is showed in the image attached) but never print an error in the log.
  3. Ingo Muschenetz 2015-09-28

    [~pinnamuri] to tell them how to add logging information.
  4. Praveen Innamuri 2015-09-28

    [~rramirez] The studio log points to the console output from the profile command. Would it be possible to enable Debug Level to All in Preferences > Studio > Troubleshooting, and clear/backup the logs through Help > Studio > Clear log file, and then profile the app. The studio logs should be available at Help > Studio > View log file.
  5. Ricardo Alcocer 2015-09-28

    [~pinnamuri] [~rramirez]
  6. Ricardo Ramirez 2015-10-02

    Logile Attached.
  7. Praveen Innamuri 2015-10-21

    [~kkolipaka] Try with iOS 8.4 simulator. You can work with [~cng] to understand why Studio is receiving invalid hprof data after profiling.
  8. Chee Kiat Ng 2015-10-23

    iOS Profiler was rebuild to 64 bits previously. This in turn, changed NSUInteger into 64 bit (previously was 32 bit), causing it to return invalid results to Studio when Studio was expecting 32 bits.
  9. Chee Kiat Ng 2015-10-23

    profiler PR: https://github.com/appcelerator/titanium_profiler/pull/13 Master PR: https://github.com/appcelerator/titanium_mobile/pull/7337 5_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/7338
  10. Wilson Luu 2015-10-28

    Closing ticket as fixed. Verified that if I try to "Capture Performance Profile" or stop capturing performance profile, then I do not get the "Error getting the performance data snapshot". Tested on: Appcelerator Studio, build: 4.4.0.201510280736 Appc CLI NPM: 4.2.1 Appc CLI Core: 5.1.0-38 Arrow: 1.3.13 SDK: 5.1.0.v20151028143628 Node: v4.2.1 OS: El Capitan (10.11.1) Xcode: 7.1 Devices: iphone simulator (9.1), iphone 6 plus (9.1)

JSON Source