ResizeOffscreenFrameBuffer无法为屏幕外分配存储空间

Paw*_*wan 5 android cordova

我正在尝试使用PhoneGap在Android中开发应用程序.

这是我的代码

package com.example.streat;

import org.apache.cordova.DroidGap;

import android.os.Bundle;
import android.util.Log;

public class MainActivity extends DroidGap  {

     @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            Log.e("SOMESTRING", "I am into pGAP");
            super.setIntegerProperty("loadUrlTimeoutValue", 60000);
            super.loadUrl("file:///android_asset/www/index.html");
        }
}
Run Code Online (Sandbox Code Playgroud)

AndroidManifest.xml中

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.streat"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="19" />

     <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>


    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.streat.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>



<activity
    android:name="org.apache.cordova.DroidGap"
    android:label="@string/app_name"
    android:configChanges="orientation|keyboardHidden">
    <intent-filter></intent-filter>
</activity>


</manifest>
Run Code Online (Sandbox Code Playgroud)

当在Logcat内部进行监控时,我最终会收到此异常

04-23 05:27:36.570: E/chromium(902): [ERROR:gles2_cmd_decoder.cc(3389)] GLES2DecoderImpl::ResizeOffscreenFrameBuffer failed to allocate storage for offscreen target depth buffer.

04-23 05:27:36.580: E/chromium(902): [ERROR:in_process_command_buffer.cc(465)] Could not initialize decoder.

04-23 05:27:36.590: A/libc(902): Fatal signal 11 (SIGSEGV) at 0x00000048 (code=1), thread 902 (.example.streat)
Run Code Online (Sandbox Code Playgroud)

有人可以告诉我如何解决这个错误.我也试图增加ram和堆的大小,但没有任何效果.

rus*_*tyx 2

听起来像是 GL/ES 支持中的问题。禁用Use Host GPUAVD 中的“”模拟选项可能会有所帮助。