Closed IBBoard closed 7 years ago
The problem appears to be this tweet: https://twitter.com/LewisBlytheArt/status/853591832617521152
full_text
is @dril @McDonalds @j5blythe
and display_range
is [17,26]
, but by the time it gets to cb_text_transform_text
then the text has already been pruned down to the display range.
Okay, the problem appears to be commit f2d16ba for CbTypes.c
, around line 201. It truncates the text for some tweets but not others. I'm assuming it is something to do with tweets vs minitweets, but I'm not yet familiar enough with the code to understand it and fix it without breaking it somewhere else!
the replies branch from when? With or without https://github.com/baedert/corebird/commit/872069e683b6514b861ac52d4b9a5ef5c199e865 ?
Turns out without. I was up-to-date this morning. Didn't think to check for updates by the time I'd hit the problem. Sorry.
While testing the Replies branch I triggered a crash.
Steps to create:
Corebird crashes with:
(corebird:11796): GLib-ERROR **: gmem.c:100: failed to allocate 18446744073709551600 bytes Trace/breakpoint trap (core dumped)
From a bit of poking, it appears to be an issue with a reply to that tweet:
(gdb) p cur_end $7 = 9
It looks like the
entities
array is being miscalculated/misapplied somewhere.