DylanVann / react-native-fast-image

šŸš© FastImage, performant React Native image component.
MIT License
8.09k stars 1.47k forks source link

App Crash on IOS #943

Open RuzenDev opened 1 year ago

RuzenDev commented 1 year ago

Hey,

Thank you for your amazing library. We have been using it without any problem up to now but all of a sudden, some iOS devices are starting to crash. Can anyone please help what has to be done?

Anyone's help is highly appreciated.

RN Version: 0.64 react-native-fast-image : ^7.0.2

below is the crash log:

EXC_BAD_ACCESS KERN_INVALID_ADDRESS

Crashed: com.apple.main-thread
0  app                         0x3a2cf0 -[FFFastImageView setOnFastImageLoadStart:] + 55 (FFFastImageView.m:55)
1  app                         0x4048c4 __createEventSetter_block_invoke + 126 (RCTComponentData.m:126)
2  app                         0x403f04 __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke_2.90 + 318 (RCTComponentData.m:318)
3  app                         0x404164 __37-[RCTComponentData setProps:forView:]_block_invoke + 356 (RCTComponentData.m:356)
4  CoreFoundation                 0x13948 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
5  CoreFoundation                 0x9ded0 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 212
6  app                         0x4040e0 -[RCTComponentData setProps:forView:] + 358 (RCTComponentData.m:358)
7  app                         0x456d64 __42-[RCTUIManager updateView:viewName:props:]_block_invoke + 1038 (RCTUIManager.m:1038)
8  app                         0x457ddc __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke + 1191 (RCTUIManager.m:1191)
9  app                         0x457ed4 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.421 + 1214 (RCTUIManager.m:1214)
10 libdispatch.dylib              0x24b4 _dispatch_call_block_and_release + 32
11 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
12 libdispatch.dylib              0x127f4 _dispatch_main_queue_drain + 928
13 libdispatch.dylib              0x12444 _dispatch_main_queue_callback_4CF + 44
14 CoreFoundation                 0x9aa08 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
15 CoreFoundation                 0x7c368 __CFRunLoopRun + 2036
16 CoreFoundation                 0x811e4 CFRunLoopRunSpecific + 612
17 GraphicsServices               0x1368 GSEventRunModal + 164
18 UIKitCore                      0x3a2d88 -[UIApplication _run] + 888
19 UIKitCore                      0x3a29ec UIApplicationMain + 340
20 app                         0x6728 main + 7 (main.m:7)
21 ???                            0x1e4f15948 (ć‚·ćƒ³ćƒœćƒ«ćŒäøč¶³ć—ć¦ć„ć¾ć™)
fukemy commented 1 year ago

need to update SDWebImage lib version

econnerty commented 1 year ago

Is there anyway for me to patch this manually? I added your changes, but the project will not build anymore? @fukemy

fukemy commented 1 year ago

I changed version to 5.13.4 in podspec, then run pod --repo-update pod update SDWebImage

now it working