question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance SDK has hidden method log spam

See original GitHub issue

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 3.5.3_
  • Firebase Component: performance: 19.0.2, core: 17.2.1

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Any performance action (app startup, moving between screens, etc.) causes the following log spam on Android 9.0 or above:

W/com.foo.bar: Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/com.foo.bar: Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/com.foo.bar: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/com.foo.bar: Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/com.foo.bar: Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/com.foo.bar: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)

This happens very frequently and pollutes our logcat. It seems like either firebase or one of its dependencies is accessing hidden methods. See this documentation for details. This also causes problems in strict mode.

Relevant Code:

Only thing needed is to import firebase performance as a dependency.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
hopprcommented, Feb 26, 2020

Yes same issue in Logs W/FirebaseRemoteConfig: No value of type ‘FirebaseRemoteConfigValue’ exists for parameter key ‘fpr_session_max_duration_min’. 2020-02-26 13:57:33.995 6138-6138/

1reaction
mkotyk-godaddycommented, Feb 12, 2020

We’re also seeing this issue. Please re-open.

implementation 'com.google.firebase:firebase-perf:19.0.5' implementation 'com.google.firebase:firebase-messaging:20.1.0' implementation 'com.google.firebase:firebase-analytics:17.2.2'

Logcat output> W/godaddy.polari: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_session_max_duration_min'. W/godaddy.polari: Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to stop Firebase from logging status updates when app is ...
You can disable the debug logging with the flag -FIRDebugDisabled . You can add it to your scheme: Select Scheme toolbar; Edit Scheme;...
Read more >
BuyCraft Spigot Plugin - Console Spam | SpigotMC - SpigotMC
This creates an unstoppable spam in console log that makes it very difficult ... Is there any way to disable these BuyCraft check...
Read more >
Disable Firebase Performance Monitoring - Google
You can build your app with the Performance Monitoring SDK enabled but have the option to disable it at runtime using Firebase Remote...
Read more >
Find relevant log entries with a correlation ID - GitLab Docs
To view the data, the correlation ID of the request must match the same session as the user viewing the performance bar. For...
Read more >
How to Stop WordPress Registration Spam (Plugins and Tactics)
Another way to fend off user registration spam is to add a ... Once you install the plugin, go to Settings → WPS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found