Skip to main content
farukisiker
Associate III
February 19, 2026
Question

Touchgfx Simulator Crashes After Screen Rotation and Change Screen

  • February 19, 2026
  • 5 replies
  • 447 views

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

5 replies

farukisiker
Associate III
February 23, 2026

Could you please help me?

farukisiker
Associate III
February 24, 2026

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

farukisiker
Associate III
March 2, 2026

Why noone is assigned to this problem?

ferro
Lead
March 2, 2026

Hi @farukisiker 

please share the project with this behaviour.

farukisiker
Associate III
March 2, 2026

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
March 2, 2026

@ferro I forgot to mention you. 

ferro
Lead
March 2, 2026

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

ferro
Lead
March 2, 2026

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
March 3, 2026

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
March 3, 2026

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.