[SOLVED] Translation kit error

I have a basic translator, unfortunately when restarting my system I have an error and I then need to remove this translator from /system/non-packaged/add-ons/Translators to have the Tracker working fine.

I have noticed I have the below version 0.6.4 which is not corresponding to 1.0.0 defined in my translator: is it the reason why the restart of the system is crashing ? Other reason ?

Note : I’m not using the BaseTranslator just the BTranslator one

1 Like

It looks like your translator is translating something (I don’t see the entire backtrace, but my first guess would be Tracker generating a thumbnail of some image) and it is trying to write pixels after the end of the bitmap. Maybe the code is confused about the bitmap size or pixel format, and greated a bitmap smaller than it should.

We could probably add a check for that in BBitmapStream so it returns an error instead of crashing

Ok I see, thanks for this information , I think I need to adjust the Identify() method in order to indicate only markdown files are recognized, else I need to return B_NO_TRANSLATOR

I will check if it works with that new behavior :slight_smile:

EDIT: With the correct Identify() implementation I don’t have the issue anymore

1 Like