离子android应用程序崩溃与glUtilsParamSize

时间:2015-08-05 12:42:29

标签: javascript android angularjs cross-platform ionic

我的应用程序在模拟器和我的设备上进行测试时崩溃了,一天几次都有消息:

  

不幸的是app停止了工作

以下是我的config.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.public279104" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>public</name>
  <description>
        An Ionic Framework and Cordova project.
    </description>
  <author email="hi@ionicframework" href="http://ionicframework.com/">
      Ionic Framework Team
    </author>
  <content src="index.html"/>
  <!-- <allow-navigation href="*" /> -->
  <allow-navigation href="http://*/*" />
  <allow-navigation href="https://*/*" />
  <allow-navigation href="data:*" />
  <allow-intent href="*" />
  <access origin="*"/>

当我执行adb logcat到我的模拟器时,我得到以下无限错误消息,其中“找不到内容 - 安全 - 策略元标记”在

之间重现
I/chromium( 4146): [INFO:CONSOLE(173)] "No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.", source: file:///android_asset/www/plugins/cordova-plugin-console/www/console-via-logger.js (173)
D/PluginManager( 4146): exec() call to unknown plugin: Console
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 4146): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 4146): glUtilsParamSize: unknow param 0x00000bd0

1 个答案:

答案 0 :(得分:0)

请在您的文件中添加No Content-Security-Policy元标记。

&LT; meta http-equiv =&#34; Content-Security-Policy&#34; content =&#34; default-src&#39; self&#39;数据:差距:https://ssl.gstatic.com; style-src&#39; self&#39; &#39;不安全直插&#39 ;; media-src *&#34;&gt;

&LT; ! - 允许请求foo.com - &gt;

&LT; meta http-equiv =&#34; Content-Security-Policy&#34; content =&#34; default-src&#39; self&#39; foo.com&#34;&GT;

&LT; ! - 启用所有请求,内联样式和eval() - &gt;

&LT; meta http-equiv =&#34; Content-Security-Policy&#34; content =&#34; default-src *; style-src&#39; self&#39; &#39;不安全直插&#39 ;; script-src&#39; self&#39; &#39;不安全直插&#39; &#39;不安全-EVAL&#39;&#34;&GT;

&LT; ! - 仅通过https允许XHR - &gt;

&LT; meta http-equiv =&#34; Content-Security-Policy&#34; content =&#34; default-src&#39; self&#39; HTTPS:&#34;&GT;

&LT; ! - 允许iframe到https://cordova.apache.org/ - &gt;

&LT; meta http-equiv =&#34; Content-Security-Policy&#34; content =&#34; default-src&#39; self&#39 ;; frame-src&#39; self&#39; https://cordova.apache.org&#34;&GT;

请参阅https://github.com/apache/cordova-plugin-whitelist了解详情。