2026-02-19 12:10 AM
// 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();
// CrashThere 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.
2026-02-22 11:50 PM
Could you please help me?
2026-02-23 10:41 PM
I solved crash problem. However, there is still glitch in screen after rotation. I recorded and inserted a video.
2026-03-02 3:42 AM
Why noone is assigned to this problem?
2026-03-02 4:55 AM
Hi @farukisiker
please share the project with this behaviour.
2026-03-02 5:19 AM
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.
2026-03-02 5:23 AM
@ferro I forgot to mention you.
2026-03-02 6:05 AM
Splendid, got the simulation running with the behaviour you describe. I should be able to look into it this week.
2026-03-02 6:06 AM
Thanks @ferro , I will be waiting your reply.
2026-03-02 7:18 AM
It seems to work Ok when I mapped 2 keys 'l' and 'p' to change orientation.
I added these 2 interactions in GfxDesigner
{
"InteractionName": "interactionGoPortrait",
"Trigger": {
"Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 112
},
"Action": {
"Type": "ActionCustom",
"FunctionName": "goPortrait"
}
},
{
"InteractionName": "interactionGoLandscape",
"Trigger": {
"Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 108
},
"Action": {
"Type": "ActionCustom",
"FunctionName": "goLandscape"
}
}and then in screen
void Screen1View::goLandscape() // press key 'l'
{
if (touchgfx::HAL::getInstance()->getDisplayOrientation() != touchgfx::ORIENTATION_LANDSCAPE)
{
touchgfx::HAL::getInstance()->setDisplayOrientation(touchgfx::ORIENTATION_LANDSCAPE);
}
}
void Screen1View::goPortrait() // press key 'p'
{
if (touchgfx::HAL::getInstance()->getDisplayOrientation() != touchgfx::ORIENTATION_PORTRAIT)
{
touchgfx::HAL::getInstance()->setDisplayOrientation(touchgfx::ORIENTATION_PORTRAIT);
}
}