2024-10-07 02:09 AM
The following sequence leads to invalid code being generated:
1. start a new project in TouchGFX (simulator or board)
2. add a custom container
3. add a static graph element named 'graph' inside the custom container
4. generate code - code is fine and compiles good both in simulator and target
5. close TouchGFX and re-open the project
6. generate code without any modification
Generated code is buggy both in CustomContainer1Base.hpp and CustomContainer1Base.cpp: the string "graphLine1" is missing anywhere in code.
7. delete 'Line' element from graph
8. add a 'Line' element on graph
9. generate code - code is good again
TouchGFX v.4.24.1
Not a blocking bug (I can revert generated code from git), but it is annoying...
Alessandro
Solved! Go to Solution.
2024-10-08 05:50 AM - edited 2024-10-08 06:04 AM
Hello @alessandro.breuza ,
Thanks for your feedback, I was able to reproduce the bug and for some reason it only happen when the graph widget doesn't have a number at the end of the name. You advise to rename it with a number at the end in the meantime, it then generates correctly. We will fix this issue in a next release.
Best regards,
2024-10-08 05:50 AM - edited 2024-10-08 06:04 AM
Hello @alessandro.breuza ,
Thanks for your feedback, I was able to reproduce the bug and for some reason it only happen when the graph widget doesn't have a number at the end of the name. You advise to rename it with a number at the end in the meantime, it then generates correctly. We will fix this issue in a next release.
Best regards,