Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Random crashes on Flipper-Folly iOS #2577

Closed
arnauddorgans opened this issue Jul 8, 2021 · 14 comments
Closed

Random crashes on Flipper-Folly iOS #2577

arnauddorgans opened this issue Jul 8, 2021 · 14 comments

Comments

@arnauddorgans
Copy link

🐛 Bug Report

Since Xcode 12.5 we have a lot of crashes on our iOS app due to Flipper-Folly.
It happens randomly but a lot of times (every 4 runs)

Capture d’écran 2021-07-08 à 13 07 05

Capture d’écran 2021-07-08 à 13 07 14

Assertion failed: (mutex_++ == -Assertion failed: (--mutex_ == -1), function Unlock, file ../src/base/mutex.h, line 219.
1), function Lock, file ../src/base/mutex.h, line 218.
Assertion failed: (--mutex_ == -1), function Lock, file ../src/base/mutex.h, line 218.
CoreSimulator 772.1 - Device: iPhone 12 (64A365D7-0182-4AAB-9E74-FE2890839DB2) - Runtime: iOS 14.5 (18E182) - DeviceType: iPhone 12

Environment

Any iOS versions
Flipper version: 0.94.1 (still crash I 0.96.1)

Podfile:

    $flipperkit_version = '0.94.1'
    pod 'FlipperKit', '~>' + $flipperkit_version, :configuration => 'Debug'
    pod 'FlipperKit/FlipperKitLayoutComponentKitSupport', '~>' + $flipperkit_version, :configuration => 'Debug'
    pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + $flipperkit_version, :configuration => 'Debug'
    pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + $flipperkit_version, :configuration => 'Debug'
    pod 'Flipper-DoubleConversion', :configuration => 'Debug'
    pod 'Flipper-Folly', :configuration => 'Debug'
    pod 'Flipper-Glog', :configuration => 'Debug'
    pod 'Flipper-PeerTalk', :configuration => 'Debug'
    pod 'Flipper-RSocket', :configuration => 'Debug'
    pod 'CocoaLibEvent', :configuration => 'Debug'
    pod 'boost-for-react-native', :configuration => 'Debug'
    pod 'OpenSSL-Universal', :configuration => 'Debug'
    pod 'CocoaAsyncSocket', :configuration => 'Debug'
    pod 'ComponentKit', :configuration => 'Debug'
    pod 'Yoga', :configuration => 'Debug'
    pod 'YogaKit', :configuration => 'Debug'
    pod 'RenderCore', :configuration => 'Debug'
    pod 'Flipper-Boost-iOSX', :configuration => 'Debug'
    pod 'Flipper-Fmt', :configuration => 'Debug'
@bill350
Copy link

bill350 commented Aug 3, 2021

Same issue here and another colleague too 😕

@mweststrate
Copy link
Contributor

Does the same thing happens if you run the iOS/Sample project in this repo?

@stale
Copy link

stale bot commented Jan 8, 2022

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale label Jan 8, 2022
@regularberry
Copy link

I'm seeing this on Flipper 0.133.1 - @arnauddorgans did you find a solution?

@stale stale bot removed the Stale label Feb 16, 2022
@lblasa
Copy link
Contributor

lblasa commented Feb 16, 2022

I’ve found this issue is very intermittent at launch, is this the same case for you @regularberry ?

@regularberry
Copy link

Yep, not consistent @lblasa

@arnauddorgans
Copy link
Author

I'm seeing this on Flipper 0.133.1 - @arnauddorgans did you find a solution?

No, we don't use flipper anymore due to this issue

@lblasa
Copy link
Contributor

lblasa commented Feb 16, 2022

I think the issue itself comes from Glog. The version used for Flipper seems to be quite behind. I'm in the process of updating it so maybe that will finally fix this issue.

@lblasa
Copy link
Contributor

lblasa commented Feb 17, 2022

A new version of Flipper-Glog has just been released:
https://cocoapods.org/pods/Flipper-Glog

It is based off from v0.5.0 which is the latest. I believe it may solve the issue.

@regularberry
Copy link

I've updated DoubleConversion to 3.2.0 and Glog to 0.5.0.3 and haven't seen this issue pop up yet 🙌 - thanks @lblasa !

@regularberry
Copy link

Nevermind, spoke too soon. We see it happen during UI test runs.

@lblasa
Copy link
Contributor

lblasa commented Mar 17, 2022

@regularberry I think this may have been properly fixed now. Could you please try the newer Flipper-Glog version?

Flipper-Glog v0.5.0.4

Multi-threading config settings were not properly set.

@regularberry
Copy link

@lblasa I'll check it out, thanks for the update!

@regularberry
Copy link

@lblasa We haven't seen this issue in a while with the latest Glog 👍 Thanks for fixing this!

@lblasa lblasa closed this as completed May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants