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.

Crash Android with `IllegalArgumentException`

See original GitHub issue

Describe the bug My some Android devices crash when render DatePicker

java.lang.IllegalArgumentException: Unterminated quote
    at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:884)
    at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:684)
    at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:623)
    at com.henninghall.date_picker.wheels.Wheel.<init>(Wheel.java:35)
    at com.henninghall.date_picker.wheels.YearWheel.<init>(YearWheel.java:21)
    at com.henninghall.date_picker.ui.Wheels.<init>(Wheels.java:50)
    at com.henninghall.date_picker.ui.UIManager.<init>(UIManager.java:27)
    at com.henninghall.date_picker.PickerView.<init>(PickerView.java:27)
    at com.henninghall.date_picker.DatePickerManager.createViewInstance(DatePickerManager.java:40)
    at com.henninghall.date_picker.DatePickerManager.createViewInstance(DatePickerManager.java:25)
    at com.facebook.react.uimanager.ViewManager.createViewInstance(ViewManager.java:139)
    at com.facebook.react.uimanager.ViewManager.createView(ViewManager.java:83)
    at com.facebook.react.uimanager.NativeViewHierarchyManager.createView(NativeViewHierarchyManager.java:270)
    at com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute(UIViewOperationQueue.java:180)
    at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.dispatchPendingNonBatchedOperations(UIViewOperationQueue.java:987)
    at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:958)
    at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29)
    at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175)
    at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:85)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1039)
    at android.view.Choreographer.doCallbacks(Choreographer.java:847)
    at android.view.Choreographer.doFrame(Choreographer.java:771)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1027)
    at android.os.Handler.handleCallback(Handler.java:809)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:166)
    at android.app.ActivityThread.main(ActivityThread.java:7555)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)

Expected behavior Render DatePicker ok

To Reproduce Add example code that reproduces the behavior.

export default class App extends Component {

  state = { tempDate: new Date() }

  render = () =>
    <DatePicker
       mode={mode}
       date={tempDate}
       collapsable
       minuteInterval={1}
       minimumDate={minimumDate}
       maximumDate={maximumDate}
       locale="vi"
       style={{ alignSelf: 'center' }}
       onDateChange={this.onDateChange}
    />

}

Smartphone (please complete the following information):

  • OS: [Android or iOS] Android (only)
  • React Native version [e.g. 0.59.4]: 0.62.2
  • react-native-date-picker version [e.g. 2.5.1]: 2.7.9

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
truongduyngcommented, Jun 24, 2020

I checked. 2.7.11 solves this problem. Thank you, guys @draperunner @henninghall

2reactions
truongduyngcommented, Jun 17, 2020

I quoted his comment only. LOL

Read more comments on GitHub >

github_iconTop Results From Across the Web

My app crashes with a java.lang.IllegalArgumentException
I get a crash report every few weeks about a java.lang.IllegalArgumentException and I really don't know where to start looking.
Read more >
Crash with IllegalArgumentException [135715219]
Code that's causing the crash. ... This happens when quantity is updated. when `totalPrice` is a getter, the crash doesn't happen and the...
Read more >
1497564 - Crash in java.lang.IllegalArgumentException
IllegalArgumentException : at android.content. ... This crash signature is showing up in the 20181008100120 nightly build at a fairly low volume.
Read more >
Intercom Android SDK 10.6.1 crash IllegalArgumentException ...
Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=840666861, result=-1, data=Intent { (has ...
Read more >
How to Fix the Top 5 Android Crashes - Instabug Blog
java.lang.IllegalArgumentException ... Probably the most varied and general cause of crashes on the list is the IllegalArgumentException. Its ...
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