Obsolete
Status Update
Comments
hu...@googlemail.com <hu...@googlemail.com> #2
Same here when using the DDMS view in eclipse. Chrome console output:
> tracing.Model
> undefined
When I use the android-sdk/tools/systrace/systrace.py directly it works as long as I dont use the --link-assets flag.
python systrace.py --link-assets
Traceback (most recent call last):
File "systrace.py", line 280, in <module>
main()
File "systrace.py", line 136, in main
js_files, js_flattenizer, css_files = get_assets(src_dir, build_dir)
File "systrace.py", line 209, in get_assets
gen = __import__('generate_standalone_timeline_view', {}, {})
ImportError: No module named generate_standalone_timeline_view
> tracing.Model
> undefined
When I use the android-sdk/tools/systrace/systrace.py directly it works as long as I dont use the --link-assets flag.
python systrace.py --link-assets
Traceback (most recent call last):
File "systrace.py", line 280, in <module>
main()
File "systrace.py", line 136, in main
js_files, js_flattenizer, css_files = get_assets(src_dir, build_dir)
File "systrace.py", line 209, in get_assets
gen = __import__('generate_standalone_timeline_view', {}, {})
ImportError: No module named generate_standalone_timeline_view
ho...@gmail.com <ho...@gmail.com> #3
yes,i encounter it ,so i use chromium in linux. works well.
[Deleted User] <[Deleted User]> #4
I am having this same issue in Linux, Windows, and OSX.
When I generate the HTML using DDMS my error is:
Cannot read property 'instantEvents' of undefined TypeError: Cannot read property 'instantEvents' of undefined
at HTMLUnknownElement.d.drawTrack (file:///home/andrewb/trace.html:467:244)
at HTMLUnknownElement.<anonymous> (file:///home/andrewb/trace.html:382:96)
at d (file:///home/andrewb/trace.html:369:62)
at b (file:///home/andrewb/trace.html:369:218)
The version of the command line tool in master (which works, the one in the SDK fails with a syntax error on all of my python versions) produces the same error.
When I generate the HTML using DDMS my error is:
Cannot read property 'instantEvents' of undefined TypeError: Cannot read property 'instantEvents' of undefined
at HTMLUnknownElement.d.drawTrack (file:///home/andrewb/trace.html:467:244)
at HTMLUnknownElement.<anonymous> (file:///home/andrewb/trace.html:382:96)
at d (file:///home/andrewb/trace.html:369:62)
at b (file:///home/andrewb/trace.html:369:218)
The version of the command line tool in master (which works, the one in the SDK fails with a syntax error on all of my python versions) produces the same error.
re...@gmail.com <re...@gmail.com> #5
I hate to sound like a "me too", but its April 2016 and I'm encountering the blank trace.html issue on OS X.
TypeError: document.registerElement is not a function
<anonymous> trace.html:2119
<anonymous> trace.html:2119
ReferenceError: tr is not defined
onLoad() trace.html:4986
TypeError: document.registerElement is not a function
<anonymous> trace.html:2119
<anonymous> trace.html:2119
ReferenceError: tr is not defined
onLoad() trace.html:4986
wy...@trulia.com <wy...@trulia.com> #6
Same here
sn...@gmail.com <sn...@gmail.com> #7
Same here with Chrome 50.0.+ on OS X:
Uncaught TypeError: Object.observe is not a function
(anonymous function) @ systrace_android.html:3890
exportTo @ systrace_android.html:2134
(anonymous function) @ systrace_android.html:3890
Uncaught (in promise) TypeError: timelineViewEl.updateDocumentFavicon is not a function(…)(anonymous function) @ systrace_android.html:4992
Uncaught TypeError: Object.observe is not a function
(anonymous function) @ systrace_android.html:3890
exportTo @ systrace_android.html:2134
(anonymous function) @ systrace_android.html:3890
Uncaught (in promise) TypeError: timelineViewEl.updateDocumentFavicon is not a function(…)(anonymous function) @ systrace_android.html:4992
jh...@themeetgroup.com <jh...@themeetgroup.com> #8
It looks like this is because modern versions of Chrome have deprecated the Object.observe function[1][2].
If you replace the <sdk>/platform-tools/systrace/systrace_trace_viewer.html file with the one from latest master, it works:https://android.googlesource.com/platform/external/chromium-trace/+/master
However, there's still several issues with following the links from the "1 item selected" section in the bottom. If you try to follow one of those links, the javascript errors will break the entire page and you have to refresh:
Uncaught TypeError: this.analysisLinkHoveredEvents_.contains is not a function systrace-04281127.html:5131
Uncaught TypeError: this.analysisLinkHoveredEvents_.equals is not a function systrace-04281127.html:5128
Uncaught TypeError: this.selection_.equals is not a function systrace-04281127.html:5769
Uncaught TypeError: selection.getEventsOrganizedByBaseType is not a function systrace-04281127.html:5128
Uncaught TypeError: this.selection_.equals is not a function systrace-04281127.html:5128
Uncaught TypeError: this.selection_.equals is not a function systrace-04281127.html:5128
[1]:https://android-review.googlesource.com/#/c/211060/
[2]:https://android-review.googlesource.com/#/c/212200/
If you replace the <sdk>/platform-tools/systrace/systrace_trace_viewer.html file with the one from latest master, it works:
However, there's still several issues with following the links from the "1 item selected" section in the bottom. If you try to follow one of those links, the javascript errors will break the entire page and you have to refresh:
Uncaught TypeError: this.analysisLinkHoveredEvents_.contains is not a function systrace-04281127.html:5131
Uncaught TypeError: this.analysisLinkHoveredEvents_.equals is not a function systrace-04281127.html:5128
Uncaught TypeError: this.selection_.equals is not a function systrace-04281127.html:5769
Uncaught TypeError: selection.getEventsOrganizedByBaseType is not a function systrace-04281127.html:5128
Uncaught TypeError: this.selection_.equals is not a function systrace-04281127.html:5128
Uncaught TypeError: this.selection_.equals is not a function systrace-04281127.html:5128
[1]:
[2]:
ja...@gmail.com <ja...@gmail.com> #9
Same here!
wa...@gmail.com <wa...@gmail.com> #10
Same issue
wa...@gmail.com <wa...@gmail.com> #11
[Comment deleted]
[Deleted User] <[Deleted User]> #12
Same issue
Fedora 23
Chrome Version 50.0.2661.102 (64-bit)
Android SDK Platform-tools 23.1
Fedora 23
Chrome Version 50.0.2661.102 (64-bit)
Android SDK Platform-tools 23.1
th...@gmail.com <th...@gmail.com> #13
Same issue
Chrome Version 50.0.2661.102 m
Chrome Version 50.0.2661.102 m
22...@gmail.com <22...@gmail.com> #14
[Comment deleted]
se...@gmail.com <se...@gmail.com> #15
I've done following:
cd $ANDROID_HOME/platform-tools
git clonehttps://android.googlesource.com/platform/external/chromium-trace/
mv systrace old-systrace
ln -s chromium-trace/catapult/systrace/systrace/ systrace
that fixed my systrace issue
cd $ANDROID_HOME/platform-tools
git clone
mv systrace old-systrace
ln -s chromium-trace/catapult/systrace/systrace/ systrace
that fixed my systrace issue
j....@gmail.com <j....@gmail.com> #16
I had the same issue. I did what sergey suggested plus I had to run the script "update_systrace_viewer.py"
See below:
cd $ANDROID_HOME/platform-tools
git clonehttps://android.googlesource.com/platform/external/chromium-trace/
mv systrace old-systrace
ln -s chromium-trace/catapult/systrace/systrace/ systrace
cd systrace
python update_systrace_trace_viewer.py
See below:
cd $ANDROID_HOME/platform-tools
git clone
mv systrace old-systrace
ln -s chromium-trace/catapult/systrace/systrace/ systrace
cd systrace
python update_systrace_trace_viewer.py
ji...@gmail.com <ji...@gmail.com> #17
I also had this issue. I tried sergey's fix (without the update step described by j.robich) and did not see any change.
I did however have success with the fix outlined in:
http://stackoverflow.com/questions/36865899/react-native-android-systrace-html-is-blank-in-ubuntu-14-04/37475803#37475803
where you add the following line to the html trace file manually. Then the html works, at least for the android-perf-testing codelab I am following at github in googlecodelabs.
<script src="https://rawgit.com/MaxArt2501/object-observe/master/dist/object-observe.min.js "></script>
I did however have success with the fix outlined in:
where you add the following line to the html trace file manually. Then the html works, at least for the android-perf-testing codelab I am following at github in googlecodelabs.
<script src="
sa...@gmail.com <sa...@gmail.com> #18
I have also faced this same problem, and it's quite annoying. I see the exact same error message in the console, on 3 different browsers:
trace.html:52 Uncaught ReferenceError: tr is not defined
Google Chrome - 50.0.2661.102
Chromium - 51.0.2704.106
Firefox - 47.0.1
trace.html:52 Uncaught ReferenceError: tr is not defined
Google Chrome - 50.0.2661.102
Chromium - 51.0.2704.106
Firefox - 47.0.1
zy...@google.com <zy...@google.com> #19
Thank you for reporting this issue. At this time it appears this feedback is no longer relevant with the latest version of Android Studio. If you continue to experience this issue please open a new bug and we can reinvestigate.
ju...@gmail.com <ju...@gmail.com> #20
still cannot use on mac
gr...@gmail.com <gr...@gmail.com> #21
Still not working for me on OS X.
Android Studio version: 2.1.2
Platform tools version: 24.0.1
Android Studio version: 2.1.2
Platform tools version: 24.0.1
ro...@gmail.com <ro...@gmail.com> #22
[Comment deleted]
ro...@gmail.com <ro...@gmail.com> #23
[Comment deleted]
ro...@gmail.com <ro...@gmail.com> #24
Apparently trace.html isn't a normal HTML page, but needs to be opened in Chrome's trace viewer; Chrome should detect this when opening the file and behave accordingly, but doesn't.
The workaround in the Stack Overflow answer Jim posted above works: enter "chrome://tracing/" in the address bar, hit the Load button there, and browse to the file.
The workaround in the Stack Overflow answer Jim posted above works: enter "chrome://tracing/" in the address bar, hit the Load button there, and browse to the file.
wa...@gmail.com <wa...@gmail.com> #25
#23 works for me
Thx @RobertHo...@gmail.com
Thx @RobertHo...@gmail.com
Description
The HTML file is generated and it is full of data that I can see in Notepad, but opening the file in Chrome does not work.
All I get is a blank screen.
Also this error is in the JavaScript console:
Uncaught TypeError: undefined is not a function trace.html:282
(anonymous function) trace.html:282
I have attached the systrace file.
I have found this Stackoverflow thread suggesting it might work if I open it on Linux: