2013-06-13 9 views
12

Ho creato un nuovo progetto di PhoneGap 2.7, e aprire il progetto utilizzando Eclipse ed emulatore di Android "utilizzare l'opzione GPU" con l'uso, qui è la screenshotAVD "GPU uso host" causare schermo nero durante il test di applicazioni

Se non uso "usa l'opzione GPU", il logo può essere visualizzato, ma lo sfondo superiore è ancora in nero.

enter image description here

ci dovrebbe essere un logo al centro di lampeggiare e con uno sfondo grigio (non nero), nessuno sa che cosa è il problema?

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

Lo stesso problema qui. –

+0

Questa non è una risposta definitiva, ma qui ci sono alcune cose che hanno reso 'WebView' diventato nero nei miei progetti (non-PhoneGap): Impostare' layout_width' e/o 'layout_height' su' wrap_content' (o no impostandoli del tutto, se si crea il WebView a livello di codice), non abilitando Javascript quando una pagina lo utilizza, e non impostando una codifica del contenuto per i documenti HTML (sia come intestazione che in un tag 'meta'). L'ultima è probabilmente la causa più probabile, ma senza guardare il tuo codice, è difficile sapere esattamente quale sia il problema. –

+4

@david Brown accendo Android: hardwareAccelerato a "falso" in AndroidManifest.xml per risolvere il problema, ma non mi piace l'hardware Accelerare le funzionalità (uso Android Studio ora e genimotion, ho lo stesso problema) – hkguile

risposta

2

Ho anche riscontrato questi problemi di rendering, utilizzando Cordova 3.0.2.

Appariva quando si utilizzava la CLI Cordova su OSX con CPU Intel HAX abilitata e GPU host abilitata.

Come ha detto l'OP, disabilitando la GPU host, i glitch di rendering sembrano fermarsi.

Tuttavia, appare con la GPU host abilitata, i glitch di rendering scompaiono rapidamente se si naviga attraverso 2/3 schermate; anche se riappare ogni volta che si avvia l'applicazione.

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 

Anche se i problemi di rendering sembrano essersi fermati, i messaggi di errore (sopra) vengono ancora scritti nel registro.

Non proprio una risposta, ma sono felice di sopportare i problemi - ora so come fermarli se necessario.

ETA: Ho anche provato a forzare l'accelerazione H/W per essere abilitata tramite CSS (sotto) nell'istanza del browser, nel caso che abbia avuto un impatto ma senza successo.

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

Questo, infatti, ha causato l'aumento del numero di navigazioni necessarie per risolvere i problemi.

Ulteriori test mostrano che non dipende dal tempo; non risolto tornando alla schermata principale; non risolto scorrendo; l'unico modo in cui sono riuscito a farli sparire per navigare avanti/indietro tra un certo numero di schermate.

+0

ringrazia la tua risposta ma ha bisogno di tempo per testare. – hkguile

Problemi correlati