From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id CA306E00B59; Sat, 24 May 2014 09:58:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,RDNS_NONE autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [62.149.158.228 listed in list.dnswl.org] * 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS Received: from smtpdg12.aruba.it (unknown [62.149.158.228]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EC992E006D8 for ; Sat, 24 May 2014 09:58:35 -0700 (PDT) Received: from [192.168.1.71] ([94.33.39.20]) by smtpcmd04.ad.aruba.it with bizsmtp id 5syY1o0040S5K6601syY7k; Sat, 24 May 2014 18:58:34 +0200 Message-ID: <5380CFB6.7050105@phoenixsoftware.it> Date: Sat, 24 May 2014 18:58:30 +0200 From: Pierluigi Passaro User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Otavio Salvador , Lauren Post References: <537DC981.6020602@phoenixsoftware.it> In-Reply-To: Cc: "meta-freescale@yoctoproject.org" Subject: Re: 3D mesh rendering segmentation fault X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 May 2014 16:58:40 -0000 X-Groupsio-MsgNum: 8590 Content-Type: multipart/mixed; boundary="------------060305060201060908080205" --------------060305060201060908080205 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi all, On 22/05/2014 18:40, Otavio Salvador wrote: > Hello, > > On Thu, May 22, 2014 at 6:55 AM, Pierluigi Passaro > wrote: >> Hi all, >> I compiled daisy branch of meta-qt5 against daisy branch of meta-fsl-arm for >> a SabreSD with iMX6 Dual Lite. >> I need to import and render standard 3D mesh file formats as PLY, STL, OFF, >> OBJ, 3DS, ... >> >> When I try the load_model qt3d demo, the application crash for a >> segmentation fault: attached you can find the gdb trace. >> >> Do you have any suggestion on how to approach the problem? > This seems to be a GPU driver issue. I am adding Lauren to Cc so she > can comment if it is a known issue or not. > I'm still playing with the 3D mesh rendering and I have found a workaround to avoid the crash. Attached you can find a patch that change the effect related to the "material" used for rendering the mesh. I'm not smart enough with QT rendering framework to analyze how this patch can avoid the crash, but I hope could help someone to give me a suggestion on how to solve the original issue. Best Regards Gigi --------------060305060201060908080205 Content-Type: text/x-patch; name="load_model_workaround.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="load_model_workaround.patch" diff --git a/examples/qt3d/load_model/load_model.cpp b/examples/qt3d/load_model/load_model.cpp index 4b65da0..17b55c2 100644 --- a/examples/qt3d/load_model/load_model.cpp +++ b/examples/qt3d/load_model/load_model.cpp @@ -125,7 +125,7 @@ void FixNodesRecursive(int matIndex, QGLSceneNode* pNode) { if (pNode) { pNode->setMaterialIndex(matIndex); - pNode->setEffect(QGL::FlatReplaceTexture2D); + pNode->setEffect(QGL::LitMaterial); foreach (QGLSceneNode* pCh, pNode->children()) { FixNodesRecursive(matIndex, pCh); } @@ -149,7 +149,7 @@ void LoadModelView::loadModels() QGLSceneNode* pTeapotSceneRoot = m_pTeapotScene->mainNode(); int matIndex = pTeapotSceneRoot->palette()->addMaterial(mat); pTeapotSceneRoot->setMaterialIndex(matIndex); - pTeapotSceneRoot->setEffect(QGL::FlatReplaceTexture2D); + pTeapotSceneRoot->setEffect(QGL::LitMaterial); FixNodesRecursive(matIndex,pTeapotSceneRoot); } @@ -168,7 +168,7 @@ void LoadModelView::loadModels() QGLSceneNode* pLanderSceneRoot = m_pLanderScene->mainNode(); int matIndex = pLanderSceneRoot->palette()->addMaterial(mat); pLanderSceneRoot->setMaterialIndex(matIndex); - pLanderSceneRoot->setEffect(QGL::FlatReplaceTexture2D); + pLanderSceneRoot->setEffect(QGL::LitMaterial); FixNodesRecursive(matIndex,pLanderSceneRoot); } } --------------060305060201060908080205--