简体   繁体   English

Android Chrome随着我的HTML5网站不断崩溃 - 如何调试?

[英]Android Chrome constantly crashing with my HTML5 website — How to debug it?

i have built a HTML5 web site (or rather webapp as you wish) and it works fine in Chrome and firefox. 我已经构建了一个HTML5网站(或者更确切地说是webapp),它在Chrome和Firefox中运行良好。 I would say the only thing out of the ordinary is, that it uses 我会说,唯一与众不同的是,它使用它

  • Google Closure in some parts (the issue persists in the simplest, non-optimized mode) 某些部分的Google Closure(问题仍然存在于最简单的非优化模式)
  • HTML5 canvas for 2D drawing 用于2D绘图的HTML5画布

Now I was curious whether it would run on my Galaxy Tab Tablett and indeed it does. 现在我很好奇它是否会在我的Galaxy Tab Tablett上运行,事实上确实如此。 I was able to set up the remote debugging facility https://developers.google.com/chrome-developer-tools/docs/remote-debugging?hl=de and debug my code to get rid of a few things that were not working properly. 我能够设置远程调试工具https://developers.google.com/chrome-developer-tools/docs/remote-debugging?hl=de并调试我的代码以摆脱一些无效的工作正常。 However I notice that android-chrome regulary crashes while I use my app. 但是我注意到在我使用我的应用程序时,android-chrome常规崩溃了。 The console in my desktop browser then complains about websocket being closed (thats why I suspect it really is a problem of the tablet side). 我的桌面浏览器中的控制台然后抱怨websocket被关闭(这就是为什么我怀疑它确实是平板电脑方面的问题)。

I would like to know what makes my website crash and am a bit flubbergusted that my HTML/js site can crash a browser like chrome so easily. 我想知道是什么让我的网站崩溃,并且我有点不知所措,我的HTML / js网站可以轻松地崩溃像Chrome这样的浏览器。 I would have thought that it should be more stable than that. 我原以为它应该比那更稳定。

Now as I would like to have an "entry" point into debugging the issue: 现在我希望有一个“入口”点来调试问题:

  • is there a crash log of chrome for android that I can inspect somehow? 是否有针对Android的chrome崩溃日志,我可以以某种方式检查?
  • can I somehow make it (chrome or android in general) more verbose on error messages? 我可以以某种方式使它(一般的chrome或android)更错误的错误消息?

There are a couple of things that you can do: 你可以做几件事:

  • chrome://crashes will list the crashes that it has caught when a tab crashes - you might need to turn on crash reporting in the settings. chrome://崩溃将列出当选项卡崩溃时捕获的崩溃 - 您可能需要在设置中打开崩溃报告。 You won't be able to fix it but you will be able to report it us so we can see if it is an issue. 您将无法修复它,但您可以向我们报告,以便我们查看是否存在问题。
  • Use logcat and see if there are any specific issues in the tracing output, such as an out of error message. 使用logcat查看跟踪输出中是否存在任何特定问题,例如出错信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM