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

The image manager has a grey screen bug (probably when network unreachable) #4612

Open
teolemon opened this issue Aug 29, 2023 · 3 comments
Open
Labels

Comments

@teolemon
Copy link
Member

What

@teolemon teolemon added the 🐛 bug Something isn't working label Aug 29, 2023
@teolemon teolemon transferred this issue from openfoodfacts/openfoodfacts-server Aug 30, 2023
@monsieurtanuki
Copy link
Contributor

@teolemon Escaped from the subway now? Still see the same bug?
It looks like a NPE to me.
I'll try to reproduce it. Maybe it depends on the metro line. Was it line 13? 😉

@monsieurtanuki monsieurtanuki self-assigned this Aug 31, 2023
@monsieurtanuki
Copy link
Contributor

@teolemon You're right, without an internet connection it fails if you click on "select an existing image".
Screenshot_2023-08-31-19-10-56

@g123k It looks like it may have to do with the new "deep-linkable" navigation, or something like that:

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY
╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building Builder(dirty):
Null check operator used on a null value

The relevant error-causing widget was:
  Navigator-[LabeledGlobalKey<NavigatorState>#33267]
  Navigator:file:///Users/fabricefontaine/.pub-cache/hosted/pub.dev/go_router-7.
  0.2/lib/src/builder.dart:246:12

When the exception was thrown, this was the stack:
#0      ProductImageServerButton._actionGallery.<anonymous closure>
(package:smooth_app/pages/product/product_image_server_button.dart:89:31)
#1      MaterialPageRoute.buildContent
(package:flutter/src/material/page.dart:51:55)
#2      MaterialRouteTransitionMixin.buildPage
(package:flutter/src/material/page.dart:109:27)
#3      _ModalScopeState.build.<anonymous closure>.<anonymous closure>
(package:flutter/src/widgets/routes.dart:951:53)
#4      Builder.build (package:flutter/src/widgets/basic.dart:7531:48)
#5      StatelessElement.build
(package:flutter/src/widgets/framework.dart:5156:49)
#6      ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5086:15)
#7      Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#8      ComponentElement._firstBuild
(package:flutter/src/widgets/framework.dart:5068:5)
#9      ComponentElement.mount
(package:flutter/src/widgets/framework.dart:5062:5)
...     Normal element mounting (211 frames)
#220    Element.inflateWidget
(package:flutter/src/widgets/framework.dart:3971:16)
#221    MultiChildRenderObjectElement.inflateWidget
(package:flutter/src/widgets/framework.dart:6570:36)
#222    Element.updateChild (package:flutter/src/widgets/framework.dart:3708:18)
#223    RenderObjectElement.updateChildren
(package:flutter/src/widgets/framework.dart:6153:32)
#224    MultiChildRenderObjectElement.update
(package:flutter/src/widgets/framework.dart:6595:17)
#225    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#226    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#227    StatefulElement.performRebuild
(package:flutter/src/widgets/framework.dart:5251:11)
#228    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#229    StatefulElement.update
(package:flutter/src/widgets/framework.dart:5274:5)
#230    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#231    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#232    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#233    ProxyElement.update (package:flutter/src/widgets/framework.dart:5417:5)
#234    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#235    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#236    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#237    ProxyElement.update (package:flutter/src/widgets/framework.dart:5417:5)
#238    _InheritedNotifierElement.update
(package:flutter/src/widgets/inherited_notifier.dart:107:11)
#239    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#240    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#241    StatefulElement.performRebuild
(package:flutter/src/widgets/framework.dart:5251:11)
#242    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#243    StatefulElement.update
(package:flutter/src/widgets/framework.dart:5274:5)
#244    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#245    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#246    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#247    ProxyElement.update (package:flutter/src/widgets/framework.dart:5417:5)
#248    _InheritedNotifierElement.update
(package:flutter/src/widgets/inherited_notifier.dart:107:11)
#249    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#250    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#251    StatefulElement.performRebuild
(package:flutter/src/widgets/framework.dart:5251:11)
#252    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#253    StatefulElement.update
(package:flutter/src/widgets/framework.dart:5274:5)
#254    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#255    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#256    StatefulElement.performRebuild
(package:flutter/src/widgets/framework.dart:5251:11)
#257    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#258    StatefulElement.update
(package:flutter/src/widgets/framework.dart:5274:5)
#259    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#260    SingleChildRenderObjectElement.update
(package:flutter/src/widgets/framework.dart:6442:14)
#261    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#262    SingleChildRenderObjectElement.update
(package:flutter/src/widgets/framework.dart:6442:14)
#263    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#264    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#265    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#266    ProxyElement.update (package:flutter/src/widgets/framework.dart:5417:5)
#267    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#268    ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:5111:16)
#269    StatefulElement.performRebuild
(package:flutter/src/widgets/framework.dart:5251:11)
#270    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#271    BuildOwner.buildScope
(package:flutter/src/widgets/framework.dart:2780:19)
#272    WidgetsBinding.drawFrame
(package:flutter/src/widgets/binding.dart:903:21)
#273    RendererBinding._handlePersistentFrameCallback
(package:flutter/src/rendering/binding.dart:358:5)
#274    SchedulerBinding._invokeFrameCallback
(package:flutter/src/scheduler/binding.dart:1284:15)
#275    SchedulerBinding.handleDrawFrame
(package:flutter/src/scheduler/binding.dart:1214:9)
#276    SchedulerBinding._handleDrawFrame
(package:flutter/src/scheduler/binding.dart:1072:5)
#277    _invoke (dart:ui/hooks.dart:142:13)
#278    PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:359:5)
#279    _drawFrame (dart:ui/hooks.dart:112:31)

════════════════════════════════════════════════════════════════════════════════
════════════════════


```

@monsieurtanuki monsieurtanuki removed their assignment Aug 31, 2023
@g123k
Copy link
Collaborator

g123k commented Aug 31, 2023

Interesting, I will check that.
@teolemon This morning, do you remember the error with the Mojito syrup?
I think it was another one, isn't-it?

@teolemon teolemon added the images label Apr 8, 2024
@teolemon teolemon removed the 🐛 bug Something isn't working label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 💬 To discuss and validate
Development

No branches or pull requests

3 participants