[Interest] QT 5.4 - Windows Phone (WinRT) - Blank Screen

Raphael Couto spam2 at quati.info
Fri Oct 10 19:47:34 CEST 2014


 

My qml had a ref to Screen. I've removed and the code works now. 

But running, it generates an Exception: 

First-chance exception at 0x6580ACE1 (libGLESv2d.dll) in meubrt.exe:
0xC0000005: Access violation reading location 0xDDDDDE09. 

Fault in void* TPoolAllocator::allocate (PoolAlloc.cpp - Angle) 

Checking stack trace: 

bool
QOpenGLShaderProgram::addShaderFromSourceCode(QOpenGLShader::ShaderType
type, const char *source) 

{
 Q_D(QOpenGLShaderProgram);
 if (!init())
 return false;
 QOpenGLShader *shader = new QOpenGLShader(type, this); <------ Stack
start here
 if (!shader->compileSourceCode(source)) {
 d->log = shader->log();
 delete shader;
 return false;
 }
 d->anonShaders.append(shader);
 return addShader(shader);
} 

Em , Raphael Couto escreveu: 

> I'm trying to put this code on my main.cpp: 
> 
> QQmlApplicationEngine engine;
> 
> engine.load(QUrl("qrc:/qml/MeuBRT-QT/main.qml"));
> 
> #if defined(Q_OS_WINPHONE)
> 
> QQuickWindow *window = (QQuickWindow*)engine.rootObjects().first();
> 
> QSurfaceFormat format = window->format();
> 
> format.setStencilBufferSize(-1);
> 
> format.setDepthBufferSize(-1);
> 
> window->setFormat(format);
> 
> #endif
> 
> But, my main.qml is a ApplicationWindow. So engine.rootObjects() has no elements.
> 
> Em , Oliver Wolff escreveu: Hi Raphael,
> 
> that sounds like you are hit by https://bugreports.qt-project.org/browse/QTBUG-41768 [2] We hope to fix that "soonish".
> 
> Cheers,
> Olli
> 
> On 10/10/2014 04:31, Raphael Couto wrote: 
> 
> I've tested on a Lumia 920. 
> 
> The filename of dump generated in Documents folder (phone): 
> 
> meubrt - aa1e427f-8131-4947-b723-af0d5f6f8cda with exception C0000194 on 10-09-2014 14.41.dmp 
> 
> I opened the dump with WinDBG: 
> 
> ERROR: Exception C0000194 occurred on unknown thread FFFFFFFF 
> 
> Seaching the net about this exception: 
> 
> https://answers.madewithmarmalade.com/questions/25370/gametutorial-stage6-stage7-will-not-run-on-windows.html [3] (last post - this can be related?) 
> 
> " 
> 
> @swarnamuki [4] It is crashing in Angle when virtual resolution is used. it appears to be running out of memory. That is running out of graphics memory, not memory controlled by s3e, so to fix this you need to decrease the s3e memory or change the capabilities to support a higher memory amount (see the docs for this). 
> 
> " 
> 
> Em , Raphael Couto escreveu: 
> 
> Hi, 
> 
> I've compiled Qt 5.4 today for winrt: 
> 
> ..qt5configure.bat -xplatform winphone-arm-msvc2013 -prefix C:quatidevelopbuildqt5.4winphone_arm -opensource -confirm-license -nomake tests -nomake examples 
> 
> Then, after setup QtCreator, I've tried to compile my project (Qml - that works on Android and IOS). But application stops, and a dump file is created in Documents folder. 
> 
> I've made another test: 
> 
> "C:Quatidevelopbuildqt5.4winphone_armbinqmake.exe" C:xxxxxxxxxxxxxxxxx.pro -r -spec winphone-arm-msvc2013 "CONFIG+=declarative_debug" -tp vc CONFIG+=windeployqt 
> 
> Open VS2013, and try to run the application. Some logs (console.log in qml's) appear in Output Window, but the application shows a blank screen. 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest [1]
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest [1]

_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest [1]

_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest [1]

 

Links:
------
[1] http://lists.qt-project.org/mailman/listinfo/interest
[2] https://bugreports.qt-project.org/browse/QTBUG-41768
[3]
https://answers.madewithmarmalade.com/questions/25370/gametutorial-stage6-stage7-will-not-run-on-windows.html
[4] https://answers.madewithmarmalade.com/users/2245/swarnamuki.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141010/8e0371d1/attachment.html>


More information about the Interest mailing list