cancel
Showing results for 
Search instead for 
Did you mean: 

Touchgfx Simulator Crashes After Screen Rotation and Change Screen

farukisiker
Associate III

// To regenerate crash, follow these steps
// In simulator mode
// 1. Rotate screen
        	if (touchgfx::HAL::getInstance()->getDisplayOrientation() == touchgfx::ORIENTATION_PORTRAIT)
        	{
        		touchgfx::HAL::getInstance()->setDisplayOrientation(touchgfx::ORIENTATION_LANDSCAPE);
        	}
        	else
        	{
        		touchgfx::HAL::getInstance()->setDisplayOrientation(touchgfx::ORIENTATION_PORTRAIT);
        	}
// 2. Go to other screen
application().gotoScreen2ScreenCoverTransitionEast();
// Crash

There is probably a bug after rotating screen in simulator mode.

 

Additionally, in debug mode (on hardware) when I apply screen rotation, it is not validated. If I change screen to another one, rotation is applied but with glitches in pixels.

18 REPLIES 18

Ah, sorry. I forgot to change screen - now the icons are not drawn correctly.

ferro
Lead

Hi @farukisiker 

I created a simpler app to find solution to this problem - open project in GfxDesigner and F5.

Press key small 'L' and then 'r'.

 

 

Hi @ferro ,

I have tried gfx4260_rotate project that you shared. There is error when I rotate the screen. You can check it in video that I shared here!

Thanks for the video. For some reason I am not able to place images here at the moment.

"There is error when I rotate the screen."

Yes, the error that causes glitches in you app. I think. I wonder how it runs on a board. I think this is not expectedbehaviour. As if new display orientation is not properly treated when changing screen. Hm, not sure what is next.I've never worked with run time screen rotation.

@ferro you can examine how it makes a problem on hw.

Hi again @ferro I found another bigger problem with rotation. If I add a mjpeg (avi) format video and use rotation feature, it stucks at DMA2D_XferErrorCallback.

Ekran görüntüsü 2026-03-03 150120.png

By the way in this project XSPI channels are swapped with same pin configuration.

Yes, I observed that behavior when I ran your app.

However, as I mentioned, I wanted to create a very simple application to observe this behavior in isolation. It is difficult to determine what is happening in your app because many things are going on.

Aha, no idea what this means.
I suspect some well-seasoned Gfx veteran is already observing this thread and will join the discussion soon.
Regrettably, I cannot devote more time this week. Sorry. I would start with my example - that should work as expected.

Thanks, I will be waiting solution from veterans then.