2013-06-13 13 views
12

アプリケーションをテストするときに黒い画面を引き起こし、日食や「使用GPUオプション」を使用してAndroidのエミュレータを使用して、プロジェクトを開くAVD「使用ホストGPUは、」ここにスクリーンショットです、私はPhoneGapの2.7の新しいプロジェクトを作成し

「GPUを使用する」オプションを使用しないと、ロゴは表示されますが、上部の背景はまだ黒です。

enter image description here

が点滅して中央にロゴなると灰色の背景(なし黒)で、いずれかの問題が何であるかを知っている必要がありますか?

06-14 02:02:54.799: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:54.799: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 5, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:54.860: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:54.860: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 9, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:54.968: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:54.968: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 13, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.027: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:55.027: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 6, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.107: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:55.107: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 10, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.147: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:55.147: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 15, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.237: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:55.237: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 7, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.277: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:55.288: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 11, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.317: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:55.327: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 16, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.357: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:55.357: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 4, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.417: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 8, srcTexId 2, textureWidth 256, textureHeight 256 
06-14 02:02:55.447: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501) 
06-14 02:02:55.457: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 12, srcTexId 2, textureWidth 256, textureHeight 256 
+0

ここに同じ問題があります。 –

+0

これは決定的な答えではありませんが、私自身の(PhoneGap以外の)プロジェクトで 'WebView'を黒にしたものがいくつかあります:' layout_width'や 'layout_height'を' wrap_content'に設定しますプログラムでWebViewを作成する場合はそれらを設定します)、ページで使用するときはJavaScriptを有効にしないでください(ヘッダや 'meta'タグのいずれか)。最後のものがおそらく最も可能性の高い原因ですが、コードを見ることなく、問題の内容を正確に知ることは困難です。 –

+4

@david Brown私はAndroidManifest.xmlでアンドロイド:hardwareAcceleratedを「false」に設定して問題を解決しましたが、ハードウェアを楽しむことはできません(アンドロイドスタジオを使用していて、ゲイモーションも同じ問題があります)。 – hkguile

答えて

2

このレンダリングの不具合は、Cordova 3.0.2でも発生しています。

これは、Intel HAX CPUが有効でホストGPUが有効のOSXでCordova CLIを使用している場合に表示されました。

OPが言っているように、ホストGPUを無効にするとレンダリングの不具合が止まるようです。

しかし、ホストGPUが有効になっているように見えますが、2/3画面をナビゲートするとレンダリングの不具合が素早く消えます。アプリケーションが開始されるたびに再表示されます。

E/GLUtils (2003): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502) 
E/TransferQueue(2003): blitTileFromQueue ERROR: fboId 1, destTexId 12, srcTexId 3, textureWidth 256, textureHeight 256 

レンダリングのグリッチが停止したように見えても、エラーメッセージ(上記)はまだログに書き込まれています。

本当に答えはありますが、私は問題についてうれしく思います。今は必要に応じてそれらを止める方法を知っています。

ETA:ブラウザインスタンスでCSS(下)を使用してH/Wアクセラレーションを強制的に有効にしようとしましたが、影響はありましたが役に立たなくなりました。

body { 
    -webkit-transform: translate3d(0, 0, 0); 
      transform: translate3d(0, 0, 0); 
} 

これは、実際には、グリッチを解決するために必要なナビゲーションの数が増加する原因となりました。

さらなるテストでは時間に依存しないことが示されています。ホーム画面に戻ることで解決されません。スクロールによって解決されない。私はそれらを消滅させて複数の画面の間を行き来する唯一の方法です。

+0

あなたの答えに感謝しますが、テストする時間が必要です。 – hkguile

関連する問題