-
Notifications
You must be signed in to change notification settings - Fork 34
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
Experienced a lot of crashes #51
Comments
@makedonsky94 can you please take a look? |
@makedonsky94 - Any ETA for this. Its very bad user experience |
@makedonsky94 Please have a look at the line number in the below screenshot where the crash is happening. |
Hi! We are working on this. At the moment we could not say what causing the crash. It would be helpful if you provide more details on your case |
Hi we are facing this crash onSeriesCreated on the below code api.setData(data.list.map { it as LineData }) |
Do you have logs for that crash? I mean can you determine what happening in the code before the crash? Do you recreate the series and then set the data? Or is it happening right after the initialization of chart? |
@makedonsky94 Please have a look at the cash log as below
|
I suppose that you can send an empty date value in bar data which leads to crash.
We are working on the new version of library so you will see that changes in the nearest update. |
When should we expect the update? |
We expect releasing of the library this month. If you want to fix this crash right now, please consider to make your own checks for correctness of bar data |
At 3.5 we've improved crash logs. I guess that will make much easier to find an issue in your code. Pleases make an update of library version in the project and send us a new crashlog |
okay sure. |
@makedonsky94 Please have a look at the cash log below Caused by: java.lang.IllegalStateException: Error: Value is null |
@supriyakhankarnw18 is there any way how we can reproduce it locally either with your app? The error is really strange and I'm just wonder how it might happen. |
@timocov there is one scenario our QA found while performing stress testing where we are getting the same crash, so here the crash occurs. LightWeighChartCrash2.mp4lightweightchartcharh1.mp4We are sure that this kind of scenario may not be performed at the user level, but we are able to get a similar crash from the users in Crashylatics logs that are unable to track/reproduce at our end. |
@supriyakhankarnw18 if you can reproduce it locally somehow, is it possible to log all actions you do with lightweight-charts so we can try to reproduce them locally by using your steps? I mean, you can log every API call with all arguments so we can replicate all steps ourselves |
@timocov after every API call we are calling this below method to set the data and load the chart private fun createSeriesWithData(
It seems like a Threading issue inside the library |
I'm just curious what can you do (even in multi-threaded/async environment) with lightweight-charts so it will fail like this. The error you shown in #51 (comment) is really strange and looking in the code of lightweight-charts I cannot even image the case why it might happen (let's say you have an array, and you just checked whether it is empty or not, and after that you take the first element but it doesn't exist). |
@timocov These are some more logs from Crashlytics |
Ok, it seems that I figured out why this happened. For some reason the size of the container for lightweight-charts is 0x0 what leads for this error. We'll fix it from our side, but as workaround you can always provide positive size of the chart by providing the size explicitly via options. Please track tradingview/lightweight-charts#821 for the fix. I'm going to close this issue. |
We have experienced a lot of crashes in the chart. I have attached a screenshot of the log.
Could you rectify/assist us with this
The text was updated successfully, but these errors were encountered: