在Ubuntu 14.04中,React-native Android Systrace HTML是空白的 [英] React-native Android Systrace HTML is blank in Ubuntu 14.04

查看:159
本文介绍了在Ubuntu 14.04中,React-native Android Systrace HTML是空白的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Android SDK中的systrace.py util将一段基于React-Native的Android应用程序收集到一个html文件中。当我在Chrome 50.0.2661.86(64位)或Firefox 45.0.2中打开这个HTML跟踪文件时,我看到空白屏幕和 Developer Console中的一些JavaScript错误。操作系统Ubuntu 14.04 64位操作系统。



然而,在我的Windows机器上,Chrome浏览器在Chrome 49.0.2623.112中正确无误地呈现。



任何人都可以帮我解决这个问题吗?

解决方案

作为临时解决方法,您可以使用以下方法:


  • 将.html转储文件保存到磁盘

  • 在chrome中打开选项卡 chrome:// tracing

  • 在跟踪控制台中加载文件

I collected a trace of my React-Native based Android app using systrace.py util from Android SDK into an html file. When I open this html trace file in either Chrome 50.0.2661.86 (64 bit), or Firefox 45.0.2, I see blank screen and a few JavaScript errors in Developer console. OS Ubuntu 14.04 64 bit OS.

However on my Windows machine a html trace is rendered correctly without errors in Chrome 49.0.2623.112.

Can anyone help me sort out this issue?

解决方案

As a temporary workaround you can use the following approach:

  • Save the .html dump file to disk
  • Open tab in chrome chrome://tracing
  • Load file in the tracing console

这篇关于在Ubuntu 14.04中,React-native Android Systrace HTML是空白的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆