Bug? BCToast in B4a

klaus

Expert
Licensed User
Longtime User
Hi Erel,
When using the BCToast b4xlib in B4A I get this error:

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (edit) Create, isFirst = true **
** Activity (edit) Resume **
Error occurred on line: 877 (BCTextEngine)
java.io.FileNotFoundException: /data/user/0/b4a.B4XSQLiteLight2/files/virtual_assets/emoji-data.txt (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:231)
at java.io.FileInputStream.<init>(FileInputStream.java:165)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:204)
at anywheresoftware.b4a.objects.streams.File.ReadList(File.java:238)
at b4a.B4XSQLiteLight2.bctextengine._loademojiesdata(bctextengine.java:1526)
at b4a.B4XSQLiteLight2.bctextengine._createglyph(bctextengine.java:1233)
at b4a.B4XSQLiteLight2.bctextengine._createglyphfromdefaultcolor(bctextengine.java:1273)
at b4a.B4XSQLiteLight2.bctextengine._createglyph(bctextengine.java:1130)
at b4a.B4XSQLiteLight2.bctextengine._getkernspacebetweenchars(bctextengine.java:1765)
at b4a.B4XSQLiteLight2.bctextengine._createsinglesection(bctextengine.java:1654)
at b4a.B4XSQLiteLight2.bctextengine._createunbreakable(bctextengine.java:1821)
at b4a.B4XSQLiteLight2.bctextengine._handletextrun(bctextengine.java:2393)
at b4a.B4XSQLiteLight2.bctextengine._prepare(bctextengine.java:2061)
at b4a.B4XSQLiteLight2.bctextengine._drawtext(bctextengine.java:815)
at b4a.B4XSQLiteLight2.bblabel._redraw(bblabel.java:170)
To avoid this error, I need to add the BCTextEngine in the IDE Libraries Manager.
Shouldn't this be transparent to the library user?
 
Last edited:
Top