Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data abort and prefetch error at the same time when calling pros::lcd::print() #755

Open
atayeem opened this issue Feb 28, 2025 · 1 comment

Comments

@atayeem
Copy link

atayeem commented Feb 28, 2025

C:\Users\noama\Documents\pros\liblvgl/src/liblvgl/core/lv_obj_draw.c:393
lv_obj_invalidate
C:\Users\noama\Documents\pros\liblvgl/src/liblvgl/core/lv_obj_pos.c:859
lv_label_set_text
C:\Users\noama\Documents\pros\liblvgl/src/liblvgl/widgets/lv_label.c:93
_lcd_vprint
C:\Users\noama\Documents\pros\liblvgl/src/liblvgl/llemu.c:259
lcd_print
C:\Users\noama\Documents\pros\liblvgl/src/liblvgl/llemu.c:347
bool pros::lcd::print<>(short, char const*)
/home/atayeem/Programming/BPCI-Robotics/property-of-egypt/./include/pros/llemu.hpp:120
lcd_update()
/home/atayeem/Programming/BPCI-Robotics/property-of-egypt/src/auton_selector.cpp:55 (discriminator 3)
auton_selector::init(void (*)(std::unordered_map</* two strings */>))
/home/atayeem/Programming/BPCI-Robotics/property-of-egypt/src/auton_selector.cpp:92
initialize
/home/atayeem/Programming/BPCI-Robotics/property-of-egypt/src/main.cpp:91
_initialize_task
/home/vsts/work/1/s/./include/system/user_functions/c_list.h:6
task_fn_wrapper
/home/vsts/work/1/s/src/system/cpp_support.cpp:26
task_clean_up
/home/vsts/work/1/s/src/rtos/port.c:219

This happened when calling essentially this code in lcd_update():

for (unsigned i = 0; i < options_len; i++) {
    pros::lcd::print(i, "Testing");
}

This is likely my fault, but in case this is a problem with PROS, I'll put it here. This also came after a series of random crashes which were affected by optimization flags and whether hot-cold linking was enabled. I didn't check the stack traces of those, though.

Using kernel 4.1.1

@Rocky14683
Copy link
Member

Is this happening when running monolith?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants