Skip to content

Fiber lambda being optimised out? #1258

Answered by salkinium
gjvanderheiden asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the simplified example, I was able to reproduce your exact issue.

You're running into a fiber stack overflow. This is caught by the scheduler if you implement the modm_abandon handler.

[Info]	(0.001, +1)	 lv_obj_create: begin lv_obj.c:215
[Info]	(0.001, +0)	 lv_obj_create: begin lv_obj.c:215
[Info]	(0.001, +0)	 lv_obj_create: begin lv_obj.c:215
[Info]	(0.001, +0)	 lv_obj_create: begin lv_obj.c:215
[Info]	(0.001, +0)	 lv_label_create: begin lv_label.c:125
Assertion 'fbr.stkof' @ 0x20003490 (536884368) failed!
Abandoning...

Try increasing the stack size. 2kB is enough for the simple example, but you'll likely need more for complex rendering.

modm::Fiber<1024*2> fiberLvgl([]{...});

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@salkinium
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@salkinium
Comment options

Answer selected by gjvanderheiden
@gjvanderheiden
Comment options

Comment options

You must be logged in to vote
2 replies
@salkinium
Comment options

@gjvanderheiden
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants