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.

Repeated calls to StorageHelper:decryptWithSecretKey and info logging

See original GitHub issue

Describe the bug

Noticed ton of messages like these are getting logged when I am running my app on Pixel 3XL phone, it slows down the app and actually crashes adb logcat!!

02-20 16:29:42.116 12984 13012 I StorageHelper:decryptWithSecretKey:  [2021-02-21 00:29:42 - {"thread_id":"89186","correlation_id":"UNSET"}] Using key with thumbprint XXX Android 30
02-20 16:29:42.116 12984 13012 I StorageHelper:decryptWithSecretKey:  [2021-02-21 00:29:42 - {"thread_id":"89186","correlation_id":"UNSET"}] Using key with thumbprint XXX Android 30
02-20 16:29:42.117 12984 13012 I StorageHelper:decryptWithSecretKey:  [2021-02-21 00:29:42 - {"thread_id":"89186","correlation_id":"UNSET"}] Using key with thumbprint XXX Android 30
02-20 16:29:42.117 12984 13012 I StorageHelper:decryptWithSecretKey:  [2021-02-21 00:29:42 - {"thread_id":"89186","correlation_id":"UNSET"}] Using key with thumbprint XXX Android 30
02-20 16:29:42.117 12984 13012 I StorageHelper:decryptWithSecretKey:  [2021-02-21 00:29:42 - {"thread_id":"89186","correlation_id":"UNSET"}] Using key with thumbprint XXXX Android 30

Eventually adb crashes:

This means that either the device shut down, logd crashed, or this instance of logcat was unable to read log messages as quickly as they were being produced. If you have enabled significant logging, look into using the -G option to increase log buffer sizes.

Smartphone (please complete the following information):

  • Device: Pixel 3 XL
  • Android Version: 11
  • Browser : N./A
  • MSAL Version : 1.6.0

To Reproduce Steps to reproduce the behavior:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AdamBJohnsonxcommented, Feb 22, 2021

@snijsure It’ll be a 2.x release of MSAL, which will take the leading version of MSAL-Android-Common (which has been in the 3.x series for at lease a little while now).

0reactions
iambmeltcommented, Mar 17, 2021

Fixed in our latest release, sorry for the trouble: https://github.com/AzureAD/microsoft-authentication-library-for-android/releases/tag/v2.0.8

This fix will be available in the Intune Company Portal & Microsoft Authenticator builds in the late-March/early-April releases

Read more comments on GitHub >

github_iconTop Results From Across the Web

log messages appearing twice with Python Logging
Multiple calls to getLogger() with the same name will always return a reference to the same Logger object". Make sure you don't initialise...
Read more >
logging — Logging facility for Python — Python 3.11.1 ...
Multiple calls to getLogger() with the same name will always return a reference to the same Logger object. The name is potentially a...
Read more >
The Ultimate Guide to Logging in Python - Rollbar
Logging in Python allows you to track, tag, and assign severity levels to events that happen when an application runs.
Read more >
discussion: structured, leveled logging #54763 - GitHub
Each call to a Logger output method, like Info , Error or LogAttrs , creates a Record and invokes the Handle method. The...
Read more >
Logging in Python - Real Python
With the logging module imported, you can use something called a “logger” to log messages ... Notice that the debug() and info() messages...
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