systrace: Invalid trace result format for HTML output : <p>When I run
<strong>python systrace.py --time=10 -o mynewtrace.html gfx</strong> <br/>
The following error occurs<br></p>

<pre><code>Starting tracing (10 seconds)
Tracing completed. Collecting output...
&lt;br&gt;
</code></pre>

<blockquote>
  <p><strong>Exception in thread Thread-11:</strong></p>
</blockquote>

<pre><code>Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
    self.run()&lt;br&gt;
  File "C:\Python27\lib\threading.py", line 754, in run
    self.__target(*self.__args, self.__kwargs)&lt;br&gt;
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\tracing_agents\atrace_agent.py", line 194, in _collect_a
nd_preprocess
    self._trace_data = self._preprocess_trace_data(trace_data)&lt;br&gt;
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\tracing_agents\atrace_agent.py", line 272, in _preproces
s_trace_data
    trace_data = strip_and_decompress_trace(trace_data)&lt;br&gt;
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\tracing_agents\atrace_agent.py", line 332, in strip_and_
decompress_trace
    **trace_data = zlib.decompress(trace_data)**
</code></pre>

<blockquote>
  <p><strong>error: Error -5 while decompressing data: incomplete or truncated stream</strong></p>
</blockquote>

<pre><code>Outputting Systrace results...&lt;br&gt;
Tracing complete, writing results&lt;br&gt;
Traceback (most recent call last):,br&gt;
  File "systrace.py", line 49, in &lt;module&gt;
    sys.exit(run_systrace.main())&lt;br&gt;
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\run_systrace.py", line 196, in main
    main_impl(sys.argv)&lt;br&gt;
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\run_systrace.py", line 193, in main_impl
    controller.OutputSystraceResults(write_json=options.write_json)&lt;br&gt;
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\systrace_runner.py", line 68, in OutputSystraceResults
    self._out_filename)&lt;br&gt;
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\output_generator.py", line 98, in GenerateHTMLOutput
    html_file.write(_ConvertToHtmlString(result.raw_data))&lt;br&gt;
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\output_generator.py", line 120, in _ConvertToHtmlString
    raise ValueError('Invalid trace result format for HTML output')&lt;br&gt;
*
</code></pre>

<blockquote>
  <p><strong>ValueError: Invalid trace result format for HTML output</strong></p>
</blockquote>

<p>*</p>
