iOS Question B4i GetBitmap crashing

cooperlegend

Active Member
Licensed User
Longtime User
Any known issues with GetBitmap ?

I am getting an error (but it is downloading fine in the B4A version)

B4X:
jobComms.string download image 241.jpg
Error occurred on line: 290 (HttpJob)
Error loading image.
Stack Trace: (
  CoreFoundation       <redacted> + 150
  libobjc.A.dylib      objc_exception_throw + 38
  CoreFoundation       <redacted> + 0
  Golfcard Live        -[B4IBitmap innerInit::] + 414
  Golfcard Live        -[B4IBitmap Initialize2:] + 76
  Golfcard Live        -[b4i_httpjob _getbitmap:] + 628
  CoreFoundation       <redacted> + 68
  CoreFoundation       <redacted> + 292
  Golfcard Live        +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1784
  Golfcard Live        -[B4IShell runMethod:] + 588
 Golfcard Live        -[B4IShell raiseEventImpl:method:args::] + 2192
 Golfcard Live        -[B4IShellBI raiseEvent:event:params:] + 1328
 Golfcard Live        -[B4IDebugResumableSub resume::] + 338
 Golfcard Live        -[B4I checkAndRunWaitForEvent:event:params:] + 530
 Golfcard Live        -[B4IShellBI raiseEvent:event:params:] + 1174
 Golfcard Live        -[B4ICommon CallSub4::::] + 332
 Golfcard Live        -[B4ICommon CallSub2::::] + 250
 Golfcard Live        -[b4i_httpjob _complete::] + 976
 Golfcard Live        -[b4i_httputils2service _completejob::::] + 1402
 Golfcard Live        -[b4i_httputils2service _hc_responsesuccess::] + 744
 CoreFoundation       <redacted> + 68
 CoreFoundation       <redacted> + 292
 Golfcard Live        +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1784
 Golfcard Live        -[B4IShell runMethod:] + 588
 Golfcard Live        -[B4IShell raiseEventImpl:method:args::] + 2192
 Golfcard Live        -[B4IShellBI raiseEvent:event:params:] + 1328
 Golfcard Live        __61-[B4IHttp URLSession:downloadTask:didFinishDownloadingToURL:]_block_invoke + 248
 libdispatch.dylib    <redacted> + 494
 libdispatch.dylib    <redacted> + 22
 libdispatch.dylib    <redacted> + 1524
 CoreFoundation       <redacted> + 8
 CoreFoundation       <redacted> + 1574
 CoreFoundation       CFRunLoopRunSpecific + 520
 CoreFoundation       CFRunLoopRunInMode + 108
 GraphicsServices     GSEventRunModal + 160
 UIKit                UIApplicationMain + 144
 Golfcard Live        main + 106
 

cooperlegend

Active Member
Licensed User
Longtime User
Further info on this.

It only happens if I and using "Wait For" comms

job.Success passes and then GetBitmap fails
 
Upvote 0
Top