iOS Question Iphone 6 suddenly stopped working in debug mode

MrKim

Well-Known Member
Licensed User
Longtime User
I have an app that has been in production for about 6 months with no problems.
It has always compiled and run just fine on my iphone 6 (soft Ver 12.5.7) and ipad 6th gen (Soft ver 15.4.1)
I mad a LOT of changes to the interface, primarily in designer script. I did not Add or remove any libs.
I DID update to the latest version of B4A.
I am using B4i ver 8.30 and as far as I know that is the latest.
I made the changes while running the ipad.
When I switched to test on the I phone I am getting the following error:
B4X:
Application_Start
Error occurred on line: 1189 (BCTextEngine)
Error reading file: Error Domain=NSCocoaErrorDomain Code=260 "The file “emoji-data.txt” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/private/var/mobile/Containers/Data/Application/420A97BD-457F-4734-92D4-894932C7AD1C/tmp/virtual_assets/emoji-data.txt, NSUnderlyingError=0x2821dbcc0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Stack Trace: (
  CoreFoundation       <redacted> + 252
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  DC-1Dev              -[B4IFile ReadString2:::] + 400
  DC-1Dev              -[B4IFile ReadString::] + 104
  DC-1Dev              -[B4IFile ReadList::] + 96
  DC-1Dev              -[b4i_bctextengine _loaddata:::] + 704
  DC-1Dev              -[b4i_bctextengine _createglyph::::] + 4672
  DC-1Dev              -[b4i_bctextengine _createglyphfromdefaultcolor::::] + 652
  DC-1Dev              -[b4i_bctextengine _createglyph::::] + 792
 DC-1Dev              -[b4i_bctextengine _getkernspacebetweenchars::::::] + 1292
 DC-1Dev              -[b4i_bctextengine _createsinglesection::::] + 1328
 DC-1Dev              -[b4i_bctextengine _createunbreakable::::::] + 924
 DC-1Dev              -[b4i_bctextengine _handletextrun::::] + 2044
 DC-1Dev              -[b4i_bctextengine _prepare:::] + 1172
 DC-1Dev              -[b4i_bctextengine _drawtext:::::] + 628
 DC-1Dev              -[b4i_bblabel _redraw:] + 964
 DC-1Dev              -[b4i_bblabel _parseanddraw:] + 1176
 DC-1Dev              -[b4i_bblabel _settext::] + 448
 DC-1Dev              -[ResumableSub_bctoast_Show resume::] + 2076
 DC-1Dev              -[b4i_bctoast _show::] + 412
 DC-1Dev              -[b4i_b4xmainpage _b4xpage_foreground:] + 544
 CoreFoundation       <redacted> + 144
 CoreFoundation       <redacted> + 292
 DC-1Dev              +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1296
 DC-1Dev              -[B4IShell runMethod:] + 420
 DC-1Dev              -[B4IShell raiseEventImpl:method:args::] + 1968
 DC-1Dev              -[B4IShellBI raiseEvent:event:params:] + 1360
 DC-1Dev              __33-[B4I raiseUIEvent:event:params:]_block_invoke + 52
 libdispatch.dylib    <redacted> + 24
 libdispatch.dylib    <redacted> + 16
 libdispatch.dylib    <redacted> + 1068
 CoreFoundation       <redacted> + 12
 CoreFoundation       <redacted> + 1924
 CoreFoundation       CFRunLoopRunSpecific + 436
 GraphicsServices     GSEventRunModal + 104
 UIKitCore            UIApplicationMain + 212
 DC-1Dev              main + 100
 libdyld.dylib        <redacted> + 4
)
Note that it was failing on a B4X custom library (a modification of BCToast) that I created, it was failing in .initialize, so I removed the custom lib and switched to BCToast Ver 1.01.
It now fails on Toast.Show rather than .initialze.
The iPhone has LOTS of memory available.
The app runs just fine in release mode but I am doing testing that requires a lot of restarts it will be extremely difficult to have to recompile on every change.

Anybody seen this issue?
Thanks for any ideas/help
 
Solution

Try to uninstall the app. Clean project (Ctrl + P) and run again.

MarcoRome

Expert
Licensed User
Longtime User

Try to uninstall the app. Clean project (Ctrl + P) and run again.
 
Upvote 0
Solution
Top