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

[ App crash ]. Unsupported operation: Infinity or NaN toInt. #165

Open
XeroDays opened this issue Aug 19, 2023 · 7 comments
Open

[ App crash ]. Unsupported operation: Infinity or NaN toInt. #165

XeroDays opened this issue Aug 19, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@XeroDays
Copy link

Crashlytics logs are attached

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Unsupported operation: Infinity or NaN toInt. Error thrown Instance of 'ErrorDescription'.
       at VideoEditorController.updateTrim(controller.dart)
       at _TrimSliderState._updateControllerTrim(trim_slider.dart:481)
       at _TrimSliderState._changeTrimRect(trim_slider.dart:430)
       at _TrimSliderState._onHorizontalDragUpdate(trim_slider.dart:348)
       at DragGestureRecognizer._checkUpdate.<fn>(monodrag.dart:483)
       at GestureRecognizer.invokeCallback(recognizer.dart:253)
       at DragGestureRecognizer._checkUpdate(monodrag.dart:483)
       at DragGestureRecognizer.handleEvent(monodrag.dart:330)
       at PointerRouter._dispatch(pointer_router.dart:98)
       at PointerRouter._dispatchEventToRoutes.<fn>(pointer_router.dart:143)
       at _LinkedHashMapMixin.forEach(dart:collection)
       at PointerRouter._dispatchEventToRoutes(pointer_router.dart:141)
       at PointerRouter.route(pointer_router.dart:127)
       at GestureBinding.handleEvent(binding.dart:460)
       at GestureBinding.dispatchEvent(binding.dart:440)
       at RendererBinding.dispatchEvent(binding.dart:336)
       at GestureBinding._handlePointerEventImmediately(binding.dart:395)
       at GestureBinding.handlePointerEvent(binding.dart:357)
       at GestureBinding._flushPointerEventQueue(binding.dart:314)
       at GestureBinding._handlePointerDataPacket(binding.dart:295)
@Megatronicus
Copy link

Megatronicus commented Sep 25, 2023

Why isn't he answering at all, this is from Aug 19. I just got a crash too.

@XeroDays
Copy link
Author

i wanted to use the trimmer feature, so to solve this issue, i have used other dependency named as "Video_Trimmer". you can use that. He's not responding!

@XeroDays XeroDays changed the title [ App crash ]. Unsupported operation: Infinity or NaN toInt. Error thrown Instance of 'ErrorDescription'. [ App crash ]. Unsupported operation: Infinity or NaN toInt. Sep 25, 2023
@Megatronicus
Copy link

Thanks for answering since the author won't. Thanks for the advice as well! I'll try video_trimmer then =) Best regards bro =)

@LeGoffMael
Copy link
Owner

Hello, sorry for late reply.
Could you provide more information and a way to reproduce this error ? Without more information it is difficult to help you.
If you could tell me the environment your using and provide me a video which lead to the error that would be great

@LeGoffMael LeGoffMael added the bug Something isn't working label Sep 30, 2023
@XeroDays
Copy link
Author

XeroDays commented Sep 30, 2023

Okay so... We were using only the trimming feature of the plugin. When the video is imported to it there is some nullable value in the Trimmer handles which is not able to calculate..
Seems like zero value is divided by a number..
or Integer to Double conversion failure.. i didn't have time that day so i removed the whole plugin.

I am not sure how you can recreate it exactly but try:

  1. Add 5-second video when the minimum is set to 3 seconds.
  2. adding 60-second video with a maximum video length value set to 90 seconds.

Fluttter version : 3.7.12

@LeGoffMael
Copy link
Owner

LeGoffMael commented Sep 30, 2023

what platform ? android / ios ?

Do you remember trying to use the example app of the package and being able to reproduce the error ?

@XeroDays
Copy link
Author

XeroDays commented Sep 30, 2023

Platform: Android

Actually Example app is not used, but I copied the code of it..
Let me check if I can recreate it..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants