Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt for MCUs 2.7.1
-
None
Description
There is a limitation(https://doc.qt.io/QtForMCUs-2.6/qtul-instructions-traveo-t2g.html#platform-limitations) for the number of OTF layers.
An application can have a maximum of two OTF layers.
When an application which breaks this rule runs, this error shows up in the console output.
Current task=0, cmdSize=65536, copses=16 lines=64 Creating ItemLayer. z = 0, sublayer = 0, screen = 0x0x28015f2c, geometry(226, 243, 52, 219) renderingMode = LBO->OTF, SpriteLayer = 0x(nil) Current task=1, cmdSize=65536, copses=16 lines=64 Creating ItemLayer. z = 1, sublayer = 0, screen = 0x0x28015f2c, geometry(0, 90, 141, 167) renderingMode = LBO->OTF, SpriteLayer = 0x(nil) Cannot create OTF layer with priority higher than CYGFX_DISP_FEATURE_OTF_WIN_PRIO_1 [C:\builds\qt-for-mcus\qul\platform\boards\cypress\common\cygfxlayer.cpp@380] Unable to allocate memory for window
It would be difficult for users to know if the root cause of this error was having more than two OTF layers. Therefore, Qt for MCUs should be able to detect this violation at the QML level and print more understandable error message.