Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Timepicker randomly crash on Android release version #13055

Closed
kennethpdev opened this issue Mar 21, 2017 · 3 comments
Closed

Default Timepicker randomly crash on Android release version #13055

kennethpdev opened this issue Mar 21, 2017 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@kennethpdev
Copy link

Description

It's a hard crash randomly when somebody is opening the default Timepicker(TimePickerAndroid) on android(release version). It happens on random phone. I can't reproduce it myself. On genymotion I can't seem to launch the picker it always make the emulator crash. But google developer console was able to track people having crash and here's the log.

android.view.InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class android.widget.TimePicker
	at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
	at android.app.TimePickerDialog.<init>(TimePickerDialog.java:121)
	at android.app.TimePickerDialog.<init>(TimePickerDialog.java:81)
	at com.facebook.react.modules.timepicker.DismissableTimePickerDialog.<init>(DismissableTimePickerDialog.java:38)
	at com.facebook.react.modules.timepicker.TimePickerDialogFragment.createDialog(TimePickerDialogFragment.java:55)
	at com.facebook.react.modules.timepicker.TimePickerDialogFragment.onCreateDialog(TimePickerDialogFragment.java:36)
	at android.app.DialogFragment.getLayoutInflater(DialogFragment.java:408)
	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)
	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)
	at android.app.BackStackRecord.run(BackStackRecord.java:793)
	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535)
	at android.app.FragmentManagerImpl$1.run(FragmentManager.java:482)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5551)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: android.view.InflateException: Binary XML file line #20: Error inflating class android.widget.TimePicker
	at android.view.LayoutInflater.createView(LayoutInflater.java:645)
	at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
	at android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
	... 20 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Constructor.newInstance(Native Method)
	at android.view.LayoutInflater.createView(LayoutInflater.java:619)
	... 25 more
Caused by: android.view.InflateException: Binary XML file line #29: Binary XML file line #29: Error inflating class android.widget.RadialTimePickerView
	at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
	at android.widget.TimePickerClockDelegate.<init>(TimePickerClockDelegate.java:140)
	at android.widget.TimePicker.<init>(TimePicker.java:83)
	at android.widget.TimePicker.<init>(TimePicker.java:70)
	at android.widget.TimePicker.<init>(TimePicker.java:66)
	... 27 more
Caused by: android.view.InflateException: Binary XML file line #29: Error inflating class android.widget.RadialTimePickerView
	at android.view.LayoutInflater.createView(LayoutInflater.java:645)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
	... 33 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Constructor.newInstance(Native Method)
	at android.view.LayoutInflater.createView(LayoutInflater.java:619)
	... 38 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.res.ColorStateList.getColorForState(int[], int)' on a null object reference
	at android.widget.RadialTimePickerView.<init>(RadialTimePickerView.java:338)
	at android.widget.RadialTimePickerView.<init>(RadialTimePickerView.java:300)
	at android.widget.RadialTimePickerView.<init>(RadialTimePickerView.java:296)
	... 40 more

Additional Information

  • React Native version: 0.42
  • Platform: Android
  • Operating System:Windows
@hramos
Copy link
Contributor

hramos commented Mar 21, 2017

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!

@hramos hramos closed this as completed Mar 21, 2017
@kennethpdev
Copy link
Author

kennethpdev commented Mar 21, 2017

For the two informations. I didn't included them as I don't have to say anything about that anyway. I can't reproduce the error and I don't have a proper solutions instead of giving the user a basic time picker for now. But anyway here's a new issue #13057

@hramos
Copy link
Contributor

hramos commented Mar 21, 2017

At the very least I'd like to see your Timepicker code, how is it being rendered, etc.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants