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

Missing locale causes DateFormat to throw an exception #1659

Open
Snubletunge opened this issue Apr 29, 2024 · 8 comments
Open

Missing locale causes DateFormat to throw an exception #1659

Snubletunge opened this issue Apr 29, 2024 · 8 comments

Comments

@Snubletunge
Copy link

When I choose an app in the Ubuntu App Center, it won't show details about the app, or the information images just flash for a moment.

** (snap-store:17779): WARNING **: 18:43:14.817: atk-bridge: get_device_events_reply: unknown signature
flutter: Another exception was thrown: Instance of 'DiagnosticsProperty'

I have tried to reinstall Ubuntu, but the issue persist.

System Details Report


Report details

  • Date generated: 2024-04-29 18:49:50

Hardware Information:

  • Hardware Model: Apple Inc. MacBookPro12,1
  • Memory: 8,0 GiB
  • Processor: Intel® Core™ i5-5257U × 4
  • Graphics: Intel® Iris® Graphics 6100 (BDW GT3)
  • Disk Capacity: 121,3 GB

Software Information:

  • Firmware Version: 430.140.3.0.0
  • OS Name: Ubuntu 24.04 LTS
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: Wayland
  • Kernel Version: Linux 6.8.0-31-generic

bilde

@d-loose
Copy link
Member

d-loose commented Apr 30, 2024

Thanks for the report - could you provide the log files from $HOME/snap/snap-store/current/.local/share/snap-store and the output of glxinfo -B to help diagnose possible rendering issues?

@d-loose d-loose added the bug label Apr 30, 2024
@Feichtmeier
Copy link
Member

This looks like the error widget in release mode :) (a widget that flutter draws when something went wrong)
Could you start snap-store from the terminal and provide any errors / outputs / exceptions here?

@Snubletunge
Copy link
Author

Snubletunge commented Apr 30, 2024

Here is the error message when running the snap from terminal:

Gtk-Message: 19:02:17.408: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
flutter: INFO snap-store: Logging to /home/chello/snap/snap-store/1134/.local/share/snap-store/snap-store.log
flutter: INFO appstream: Unsupported locale: nn. Defaulting to "en".

** (snap-store:3529): WARNING **: 19:02:42.600: atk-bridge: get_device_events_reply: unknown signature

@d-loose
$HOME /snap/snap-store/current/.local/share/snap-store$ glxinfo -b
Command 'glxinfo' not found, but can be installed with:
sudo apt install mesa-utils

snap-store.log (Copy).txt

@Snubletunge
Copy link
Author

Snubletunge commented Apr 30, 2024

And another when I start snap-store from Terminal, and select an app from the main page (Transmission) to view in the store:

$ snap run snap-store
Gtk-Message: 19:33:49.940: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
flutter: INFO snap-store: Logging to /home/chello/snap/snap-store/1134/.local/share/snap-store/snap-store.log
flutter: INFO appstream: Unsupported locale: nn. Defaulting to "en".
flutter: Invalid argument(s): Invalid locale "nn"
flutter: #0      _throwLocaleError (package:intl/src/intl_helpers.dart:204)
flutter: #1      verifiedLocale (package:intl/src/intl_helpers.dart:198)
flutter: #2      verifiedLocale (package:intl/src/intl_helpers.dart:183)
flutter: #3      new DateFormat (package:intl/src/intl/date_format.dart:267)
flutter: #4      new DateFormat.yMMMd (package:intl/src/intl/date_format.dart:470)
flutter: #5      _SnapView.build (package:app_center/src/snapd/snap_page.dart:129)
flutter: #6      _ConsumerState.build (package:flutter_riverpod/src/consumer.dart:476)
flutter: #7      StatefulElement.build (package:flutter/src/widgets/framework.dart:5592)
flutter: #8      ConsumerStatefulElement.build (package:flutter_riverpod/src/consumer.dart:539)
flutter: #9      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5480)
flutter: #10     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5643)
flutter: #11     Element.rebuild (package:flutter/src/widgets/framework.dart:5196)
flutter: #12     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5462)
flutter: #13     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5634)
flutter: #14     ComponentElement.mount (package:flutter/src/widgets/framework.dart:5456)
flutter: #15     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4335)
flutter: #16     Element.updateChild (package:flutter/src/widgets/framework.dart:3846)
flutter: #17     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5505)
flutter: #18     Element.rebuild (package:flutter/src/widgets/framework.dart:5196)
flutter: #19     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5462)
flutter: #20     ComponentElement.mount (package:flutter/src/widgets/framework.dart:5456)
flutter: #21     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4335)
flutter: #22     Element.updateChild (package:flutter/src/widgets/framework.dart:3846)
flutter: #23     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5505)
flutter: #24     Element.rebuild (package:flutter/src/widgets/framework.dart:5196)
flutter: #25     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5462)
flutter: #26     ComponentElement.mount (package:flutter/src/widgets/framework.dart:5456)
flutter: #27     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4335)
flutter: #28     Element.updateChild (package:flutter/src/widgets/framework.dart:3846)
flutter: #29     _LayoutBuilderElement._layout.layoutCallback (package:flutter/src/widgets/layout_builder.dart:155)
flutter: #30     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2844)
flutter: #31     _LayoutBuilderElement._layout (package:flutter/src/widgets/layout_builder.dart:173)
flutter: #32     RenderObject.invokeLayoutCallback.<anonymous closure> (package:flutter/src/rendering/object.dart:2686)
flutter: #33     PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:1097)
flutter: #34     RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:2686)
flutter: #35     RenderConstrainedLayoutBuilder.rebuildIfNecessary (package:flutter/src/widgets/layout_builder.dart:248)
flutter: #36     _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:331)
flutter: #37     RenderObject.layout (package:flutter/src/rendering/object.dart:2575)
flutter: #38     RenderBox.layout (package:flutter/src/rendering/box.dart:2389)
flutter: #39     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105)
flutter: #40     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2414)
flutter: #41     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1051)
flutter: #42     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1064)
flutter: #43     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:582)
flutter: #44     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:991)
flutter: #45     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:448)
flutter: #46     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1386)
flutter: #47     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1311)
flutter: #48     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1169)
flutter: #49     _invoke (dart:ui/hooks.dart:312)
flutter: #50     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:399)
flutter: #51     _drawFrame (dart:ui/hooks.dart:283)

@Snubletunge
Copy link
Author

Snubletunge commented Apr 30, 2024

OK, so the locale nn (Norwegian nynorsk) that I am using, is crashing this, changed to the locale nb (Norwegian bokmål) and the store works as it should.

Still seems something is off when I run it from Terminal:

$ snap run snap-store
Gtk-Message: 19:46:14.151: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
flutter: INFO snap-store: Logging to /home/chello/snap/snap-store/1134/.local/share/snap-store/snap-store.log
flutter: INFO appstream: Unsupported locale: nb_NO. Defaulting to "en".

** (snap-store:5753): WARNING **: 19:46:39.348: atk-bridge: get_device_events_reply: unknown signature

@d-loose
Copy link
Member

d-loose commented May 6, 2024

Thanks for providing those additional details. The issue seems to be that, even though the proper localization delegates for nn_NO and others are provided by ubuntu_localizations, they're only available if the corresponding locale is listed in the supportedLocales for the MaterialApp. With our current setup that requires the existence of the respective .arb file. I'm adding nn_NO through weblate to see if that solves the problem for this specific locale. I'll keep this issue open though, since we should find a proper solution for all cases.

@d-loose d-loose added the l10n label May 6, 2024
@d-loose d-loose changed the title When selecting an app in App Center the window goes gray Missing locale causes DateFormat to throw an exception May 6, 2024
@mguinhos
Copy link

mguinhos commented Jun 4, 2024

Also having this problem.

@d-loose
Copy link
Member

d-loose commented Jun 4, 2024

Also having this problem.

Which locale are you using? Are you seeing a similar error message when running snap-store from the terminal?

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

No branches or pull requests

4 participants