Skip to main content
farukisiker
Associate III
Feb 19, 2026 8:10 AM UTC
Question

Touchgfx Simulator Crashes After Screen Rotation and Change Screen

// 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

farukisiker
Associate III
Feb 23, 2026 7:50 AM UTC

Could you please help me?

farukisiker
Associate III
Feb 24, 2026 6:41 AM UTC

I solved crash problem. However, there is still glitch in screen after rotation. I recorded and inserted a video.

farukisiker
Associate III
Mar 2, 2026 11:42 AM UTC

Why noone is assigned to this problem?

ferro
Lead
Mar 2, 2026 12:55 PM UTC

Hi @farukisiker 

please share the project with this behaviour.

farukisiker
Associate III
Mar 2, 2026 1:19 PM UTC

Here is the project. To rotate screen, you can use up arrows in keyboard.

You can follow these steps to get glitched pixels,

1-short press to up arrow (rotate screen)

2-short press to down arrow (go to screen 2)

3-long press to up arrow (go to screen 1) here are supposed to see glitches.

farukisiker
Associate III
Mar 2, 2026 1:23 PM UTC

@ferro I forgot to mention you. 

ferro
Lead
Mar 2, 2026 2:05 PM UTC

Splendid, got the simulation running with the behaviour you describe. I should be able to look into it this week.

ferro
Lead
Mar 2, 2026 8:34 PM UTC

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'.

 

 

farukisiker
Associate III
Mar 3, 2026 6:26 AM UTC

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!

ferro
Lead
Mar 3, 2026 8:36 AM UTC

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.