This section compiles frequently asked questions regarding Flint and Sparklet.
1. What is Bmalloc failure and how to resolve it?
A “bmalloc failure” typically indicates a problem with memory allocation. In simpler terms, the application tried to reserve or use a chunk of memory, but for some reason, it couldn’t.
The most straightforward reason for this error is that there’s not enough free memory available. If the application or the Sparklet Library has used up all available memory and cannot allocate any more, you’ll likely see this failure.
These errors typically arise when there’s insufficient memory in the pool to run a particular component. Sparklet/Flint uses the concept of multiple Memory Pools each of which can be configured a particular size and usage. (Refer Memory Tab and Memory Usage section in UM).
The sparklet_app_report_error function will be called with SGUI_MALLOC_FAILURE along with the pool index corresponding to the failure. This information can be used to pinpoint the pool of interest and memory allocation can be reviewed. Add enough memory to the pool to overcome this failure.
2. What is DHD panic error?
This error, specific to RH850 RGL library, is caused when the configuration is corrupted, or wrong values given to the graphics part. This has to be debugged to understand the root cause and solved.
3. What is a Guard?
In many use cases, the transition from one state to another state is determined by certain conditions, which can be implemented via Guards. Guards, if used, protect the transitions and allow only if the conditions associated with the guards are met. Flint, apart from being used in the State Machines, also leverages them in the Place holders to determine if the particular view can be shown or not.
4. What is the purpose of “Dependent” in the Data file?
Enabling the “Dependent” option in the data variable allows a user to set limits based on another variable – for minimum, maximum or both during runtime. Currently not supported.
5. What is the function of “FIFO” in the Data variable?
In some cases, the data has to be grouped together like for use in Graph. This can be achieved with a FIFO with the given depth. Currently not supported.
6. What is the W Multiple and H Multiple in Fixed and Wrap mode?
In some cases, for example bar chart, the width of the image has to be in multiple of each element of the bar. This can be achieved by configuring the Width/Height multiple.