firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

[Crash][Energy][CPU] [APMMeasurement(Event) handleEventOnWorkerQueue:]

Open chenyanping01 opened this issue 7 months ago • 5 comments

Description

Hight CPU consumption when upload the events. Image

Reproducing the issue

No response

Firebase SDK Version

11.11.0

Xcode Version

16.3

Installation Method

Swift Package Manager

Firebase Product(s)

Analytics

Targeted Platforms

iOS

Relevant Log Output


If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet

Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet

Replace this line with the contents of your Podfile.lock!

chenyanping01 avatar May 26 '25 03:05 chenyanping01

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar May 26 '25 03:05 google-oss-bot

Thanks for the report, @chenyanping01. Could you provide the following info:

  • Affected iOS version
  • Confirmation if your app/other dependency uses sqlite
  • Steps to reproduce the issue

rizafran avatar May 26 '25 17:05 rizafran

1.Affected iOS version Image 2.Confirmation if your app/other dependency uses sqlite Yes, there is a thirdparty lib uses sqlite. 3. Steps to reproduce the issue Sorry, we can't reproduce the issue. It's reported in Xcode Energy.

chenyanping01 avatar May 27 '25 03:05 chenyanping01

We have been experiencing the same issue since Firebase 11.10. We updated to Firebase 11.12, but the problem still persists.

Image

Recently, a member of my team encountered a performance issue with our app. The app lags and crashes randomly multiple times a day. We checked the crash logs from his device, and there is always a thread named com.google.fira.worker.

Image

We sent him a TestFlight build with [FIRApp configure] commented out, and the problem disappeared.

dqtruong avatar Jun 03 '25 11:06 dqtruong

Hello, I just got an update from the Analytics team that they have optimized some of the methods from the stack trace, and the changes will be included in the next SDK release.

rizafran avatar Jun 05 '25 18:06 rizafran

Hi all. Firebase 11.15.0 was released earlier this week and should resolve this issue. Please reopen if the issue still persists after updating.

htcgh avatar Jun 25 '25 20:06 htcgh

This has been fixed in the latest version 11.15.0. Thank you very much!

chenyanping01 avatar Jul 07 '25 03:07 chenyanping01