krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
899 stars 151 forks source link

[BUG]: Error Widget when opening webp #982

Open gaykitty opened 3 months ago

gaykitty commented 3 months ago

Happened when opening a chat with an image that wouldn't load. Inage was a webp.

Exception

Unsupported operation: Infinity or NaN toInt

StackTrace

0 ImageBubble._buildPlaceholder (package:fluffychat/pages/chat/events/image_bubble.dart)

1 _MxcImageState.placeholder (package:fluffychat/widgets/mxc_image.dart:151)

2 _MxcImageState.build (package:fluffychat/widgets/mxc_image.dart:164)

3 StatefulElement.build (package:flutter/src/widgets/framework.dart:5592)

4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5480)

5 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5643)

6 Element.rebuild (package:flutter/src/widgets/framework.dart:5196)

7 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5462)

8 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5634)

9 ComponentElement.mount (package:flutter/src/widgets/framework.dart:5456)