Skip to content

FlutterError : Invalid argument (other): Matrix cannot be inverted: Instance of 'Matrix4' #690

Description

@Ezor

Hello,

I'm getting the following error on both iOS and Android version of my app :

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Invalid argument (other): Matrix cannot be inverted: Instance of 'Matrix4'. Error thrown .
       at new Matrix4.inverted(matrix4.dart:237)
       at TransformationController.toScene(interactive_viewer.dart:1195)
       at InteractiveViewerState._onScaleUpdate(interactive_viewer.dart:871)
       at ScaleGestureRecognizer._advanceStateMachine.<fn>(scale.dart:765)
       at GestureRecognizer.invokeCallback(recognizer.dart:345)
       at ScaleGestureRecognizer._advanceStateMachine(scale.dart:764)
       at ScaleGestureRecognizer.handleEvent(scale.dart:592)
       at PointerRouter._dispatch(pointer_router.dart:97)
       at PointerRouter._dispatchEventToRoutes.<fn>(pointer_router.dart:140)
       at _LinkedHashMapMixin.forEach(dart:_compact_hash)
       at PointerRouter._dispatchEventToRoutes(pointer_router.dart:138)
       at PointerRouter.route(pointer_router.dart:128)
       at GestureBinding.handleEvent(binding.dart:528)
       at GestureBinding.dispatchEvent(binding.dart:498)
       at RendererBinding.dispatchEvent(binding.dart:473)
       at GestureBinding._handlePointerEventImmediately(binding.dart:437)
       at GestureBinding.handlePointerEvent(binding.dart:394)
       at GestureBinding._flushPointerEventQueue(binding.dart:341)
       at GestureBinding._handlePointerDataPacket(binding.dart:308)

It looks like it's coming from the InteractiveViewer widget while scaling the PDF. I was not able to reproduce this error on my devices but I have more than 100 "crashed" reported with this root cause in Firebase Crashlytics.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions