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.

[Crash report] Lateinit property `textLayout` is not initialized at FilterChip#onDraw L291

See original GitHub issue

Overview (Required)

  • Crash on resuming session list screen, caused by accessing lateinit property textLayout without initialization in FilterChip.
    • textLayout is initialized at onMeasure procedure.
    • seems like there’s a path to call onDraw without initializing textLayout.

Steps To Reproduce

It’s not consistently reproducible but I have observed the issue several times with these steps.

  1. Launch conference app
  2. Lock the device
  3. Unlock after some time

Expected behavior Resume session list screen without a crash.


  • Device: Pixel 4 XL
  • OS: Android 10
  • App Version: DeployGate #130 / 1.0.5 (1000500)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

roana0229commented, Feb 2, 2020

No need to apologize 😄 Thank you for your dedicated investigation. 👍

roana0229commented, Jan 28, 2020

Of course, assigned 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

lateinit property not initialized after pick file explorer
I have a lateinit variable as follow : lateinit var uploadProperties: Property. And the code to open explorer (permission already granted) :
Read more >
lateinit property has not been initialized #546 - GitHub
Hello, I have the following class @Path("/canceling") class CancelResource { @Inject lateinit var cancelManager: CancelManager @POST @Path("{id}") fun ...
Read more >
You can check whether the lateinit property has been ... - Reddit
You can check whether the lateinit property has been initialized or not using isInitialized. r/androiddev - You can check whether the ...
Read more >
How to Check if a "lateinit" Variable Has Been Initialized or ...
If we don't initialize a lateinit variable before using it gives an error of “lateinit property has not been initialized”. You can check...
Read more >
When should you use Lateinit over Lazy initialization in Kotlin?
The Lateinit and Lazy initializations are two initialization properties in the Kotlin ... While using Lateinit , the variable can't be of the...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found