cancel
Showing results for 
Search instead for 
Did you mean: 

Modal redraw question

uilter
Senior

Hi community!

I'm using Touchgfx 4.24.1 with a STM32H753ZIT6, integrated to a 1024x600 (RGB565) display. We use double frame buffer in an external SDRAM (parallel) with DMA2D enabled. This is a OEM custom board design for us, so the hardware is already validated.

Application is running with FreeRTOS.

My question to this thread is about the Modal Window.
We design a pop up question in our application that have been a weird behaiviour.
Always I call the popup.show() or popup.hide(), the entire screen is redraw. I believe it's true, specially if we apply a shade color with shade alpha higher than 0, am I correct?

I do not use the popup.show() or popup.hide() frequently, it only are used after an button callback.

The weird behavior using Modal is when it show or hide, affect another widgets in my view, specially the TextArea. Sometimes the a character disappear or just swap to '?'.

About the '?', I double check the Typographies is everthing is OK, otherwise with/without the modal I always will be this behaivior.

All Texts and Images generated are save into a NOR Flash, loaded with an external loader.

Anyone have advice to help me how fix this behaviour?

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @GaetanGodart thanks for your repply here.

Yes, I need to hide or show the popup according the application rules. I've try to methods that had no effects:

popup.setVisible(true);
popup.invalidate;

or

popup.show();
popup.invalidate;

Correct, simulator is working well.

I started noticing a hardfault error, triggered by an animation of a Slider Menu widget. Deeping in this error I figure out an error comming from the touchgfx when get the TextArea from an external memory address (0x90000000 - the NOR flash). Bellow is my callstack at hardfault breakpoint.

HardFault_Handler() at stm32h7xx_it.c:106 0x803bae4    
<signal handler called>() at 0xffffffed    
touchgfx::LCD::drawStringLTR() at 0x8092cd6    
touchgfx::TextProvider::fillInputBuffer() at 0x809585c    
0x90022d42   

I assume at this point an issue with my Typographies (like you mencioned) and include to all my Fonts more Wildcard Characters and Wildcard Ranges. Doing this the issues from the popup is gone, no strange behaviours.

So we can conclude that the problem is not the Modal, but the miss configuration from Typographies in the case above.

BUT... now I have another effect, envolving the Slide Menu (let me know if you prefere I open another thread to this).
When I animate the Slide Menu, some textAreas change the language or shows "???".
Today I do not have a screenView to edit the language, just setup in TouchGFX Designer. We have 3 languages in this application.
Even I putting all ranges from characters the ??? occur.

I attached two videos showing this cases. Pls ignore the broken glass, this does not affect functionality.

View solution in original post

3 REPLIES 3
GaetanGodart
ST Employee

Hello @uilter ,

 

How do you show or hide your pop up?
Do you use add() and delete() to add it and remove it from the screen or do you simply use setVisible() so that it is always on the display but not always visible?

Could you share your project or share just the part of it where the issue happen?

I assume the issue only happens on the board and not on the simulator, am I right?

In the textArea that is behaving wrong, I assume that the 'a' is part of a wildcard and that the '?' is your fallback character for the typography. Is the 'a' the only visible character of the textArea / wildcard once you show the pop up?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi @GaetanGodart thanks for your repply here.

Yes, I need to hide or show the popup according the application rules. I've try to methods that had no effects:

popup.setVisible(true);
popup.invalidate;

or

popup.show();
popup.invalidate;

Correct, simulator is working well.

I started noticing a hardfault error, triggered by an animation of a Slider Menu widget. Deeping in this error I figure out an error comming from the touchgfx when get the TextArea from an external memory address (0x90000000 - the NOR flash). Bellow is my callstack at hardfault breakpoint.

HardFault_Handler() at stm32h7xx_it.c:106 0x803bae4    
<signal handler called>() at 0xffffffed    
touchgfx::LCD::drawStringLTR() at 0x8092cd6    
touchgfx::TextProvider::fillInputBuffer() at 0x809585c    
0x90022d42   

I assume at this point an issue with my Typographies (like you mencioned) and include to all my Fonts more Wildcard Characters and Wildcard Ranges. Doing this the issues from the popup is gone, no strange behaviours.

So we can conclude that the problem is not the Modal, but the miss configuration from Typographies in the case above.

BUT... now I have another effect, envolving the Slide Menu (let me know if you prefere I open another thread to this).
When I animate the Slide Menu, some textAreas change the language or shows "???".
Today I do not have a screenView to edit the language, just setup in TouchGFX Designer. We have 3 languages in this application.
Even I putting all ranges from characters the ??? occur.

I attached two videos showing this cases. Pls ignore the broken glass, this does not affect functionality.

Hello @uilter ,

 

I am glad to hear that you fixed the issue.

Yes, please create a new thread if you can.
Also, if possible, include a minimal example that reproduce the issue or share the project, or share the steps to reproduce the issue.

You say "But now I have another effect" so adding the extra wildcard range created the issue? (you can specify that in the new thread)

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)