Troubleshooting#
The program stops with an error about missing libraries#
The calculator does not have the CE libraries, or has a version older than your toolchain. Send clibs.8xg from the
CE libraries release that matches your toolchain. CEUI needs
LibLoad and graphx from it.
The build cannot find ui.h#
include vendor/ceui/ui.mk must come before include $(shell cedev-config --makefile), and the path must point at
the submodule. If the vendor/ceui folder is empty, the submodule was not fetched; run
git submodule update --init.
Undefined ui_style_... symbols when linking#
UI_THEME = none tells CEUI that your program defines the theme, and no file in your program does. Either set
UI_THEME to a built-in theme, or add a theme file that includes <themes/default.c>, see
writing your own theme.
The last widgets of a screen are missing, or every key redraws the whole screen#
A command buffer is full. The rest of that stream is dropped and the next frame is redrawn in full. Build with
-DUI_DEBUG to print how many bytes each frame uses, then raise UI_COMMANDS (or UI_OVERLAY_COMMANDS for big
modals and menus). See sizing the command buffers.
Similar limits apply to other tables: widgets past UI_FOCUSABLES (48) cannot take focus, containers deeper than
UI_DEPTH (8) are flattened, and only UI_SCROLLS (8) scroll areas and UI_LAYERS (4) overlays are tracked.
Keys are lost while the program works#
CEUI reads the keypad while it waits, every fourth widget and before every rectangle it draws. A short press that
starts and ends while your own code runs for long between two widgets, such as a sort or a file load, is missed.
Call ui_listen() from that code now and then. See long work between widgets.
Values or text above a widget are one frame late#
They are not: CEUI runs the settle frame right after a widget used a key, so the screen always shows the consistent result. If you see stale values, check that they are not computed once before the loop.
A canvas does not update#
A canvas is redrawn only when its version or position changes. Change version whenever its data changes. See
drawing.
Lines in a canvas have gaps#
graphx’s clipped gfx_Line drops parts of steep lines even inside the clip region. Use gfx_Line_NoClip when the
canvas is fully visible, and keep the points inside the canvas.
Sprite colors change when the theme changes#
The sprite uses palette entries that CEUI owns. Convert it with at most 256 - UI_SLOTS palette entries, so its
palette stays below CEUI’s slots.
The flash app resets the calculator with “RAM Cleared”#
The app header declares too large a data region, and TI-OS overwrites its own memory when it starts the app. ui.mk
fixes the header for you through tools/convbin-app when APPLICATION = YES is set before include vendor/ceui/ui.mk. Check that it is set there, or on the make command line, and not after the includes. See
flash apps.
The program does not return to the home screen cleanly#
Call ui_exit() once after the loop. It waits until every key is released, puts the keypad back the way it was and
ends graphx. Returning from main without it leaves the screen in graphx mode.