The error occurs when loading around 500 images in a large panel. The images have a resolution of 1024x1024 but I resize it to a smaller size maybe 50x50
img.Bitmap = xui.LoadBitmapResize(Path, Name, mWidth * Escala, mHeight * Escala, True)
I also tried this with the same error but I think the error occurs later:
B4X:
Dim Escala As Float = GetDeviceLayoutValues.NonnormalizedScale
img.Bitmap = xui.LoadBitmapResize(Path, Name, mWidth * Escala, mHeight * Escala, True)
I also tried this with the same error but I think the error occurs later:
B4X:
img.Bitmap = xui.LoadBitmapResize(Path, Name, mWidth, mHeight, True)
B4X:
Error occurred on line: 148 (clsMyApp)
Error loading image.
Stack Trace: (
CoreFoundation F3021642-E3C0-33F8-9911-DD303A6056D0 + 1157612
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation F3021642-E3C0-33F8-9911-DD303A6056D0 + 120016
MyApp -[B4IBitmap innerInit::] + 372
MyApp -[B4IBitmap Initialize::] + 844
MyApp -[B4IBitmap InitializeResize:::::] + 140
MyApp -[B4ICommon LoadBitmapResize:::::] + 192
MyApp -[B4IXUI LoadBitmapResize:::::] + 136
CoreFoundation F3021642-E3C0-33F8-9911-DD303A6056D0 + 1175856
CoreFoundation F3021642-E3C0-33F8-9911-DD303A6056D0 + 8656
MyApp +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
MyApp -[B4IShell runMethod:] + 448
MyApp -[B4IShell raiseEventImpl:method:args::] + 1648
MyApp -[B4IShellBI raiseEvent:event:params:] + 1580
MyApp +[B4IDebug delegate:::] + 80
MyApp -[b4i_clsMyApp _crearview:] + 236
MyApp -[b4i_clsMyApp _agregar::::::::::] + 5164
MyApp -[b4i_m03_codigos _abrir:::::] + 11552
MyApp -[b4i_m03_codigos _zoom:] + 1296
MyApp -[b4i_m03_codigos _cargar::] + 2420
MyApp -[ResumableSub_b4xmainpage_AA_AbrirArchivo resume::] + 3536
CoreFoundation F3021642-E3C0-33F8-9911-DD303A6056D0 + 1175856
CoreFoundation F3021642-E3C0-33F8-9911-DD303A6056D0 + 8656
MyApp +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
MyApp -[B4IShell runMethod:] + 448
MyApp -[B4IShell raiseEventImpl:method:args::] + 2172
MyApp -[B4IShellBI raiseEvent:event:params:] + 1580
MyApp -[B4IDelegatableResumableSub resume::] + 380
MyApp -[B4I checkAndRunWaitForEvent:event:params:] + 516
MyApp -[B4IShellBI raiseEvent:event:params:] + 1436
MyApp __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib AF27E74C-BE4A-3364-BB27-AED9916CE02D + 393880
libdispatch.dylib AF27E74C-BE4A-3364-BB27-AED9916CE02D + 397952
libdispatch.dylib AF27E74C-BE4A-3364-BB27-AED9916CE02D + 65628
CoreFoundation F3021642-E3C0-33F8-9911-DD303A6056D0 + 632288
CoreFoundation F3021642-E3C0-33F8-9911-DD303A6056D0 + 608904
CoreFoundation CFRunLoopRunSpecific + 572
GraphicsServices GSEventRunModal + 160