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 Center shows blank screen when selecting an app #1884

Open
1 task done
dvictori opened this issue Jan 17, 2025 · 8 comments
Open
1 task done

APP Center shows blank screen when selecting an app #1884

dvictori opened this issue Jan 17, 2025 · 8 comments
Assignees
Labels

Comments

@dvictori
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and found none matching what I'm reporting.

Bug Description

I'm on a fresh Ubuntu 24.04 install and when I open App Center I can see the available apps. But when I click on an app to install, All I get is a blank screen.

Below is a screencast

Screencast.from.2025-01-17.09-08-41.webm

Steps to reproduce the behavior

  1. Open App Center
  2. Click on any app shown

Expected behavior

No response

Ubuntu release

24.04 LTS

What architecture are you using?

amd64

System info

6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024
name: snap-store
summary: Snap Store is a graphical desktop application for discovering,
installing and managing snaps on Linux.
publisher: Canonical**
store-url: https://snapcraft.io/snap-store
contact: https://bugs.launchpad.net/snap-store/
license: unset
description: |
Snap Store showcases featured and popular applications with useful
descriptions, ratings, reviews and screenshots.

Applications can be found either through browsing categories or by
searching.

Snap Store can also be used to switch channels, view and alter snap
permissions and view and submit reviews and ratings.

Snap Store is based on GNOME Software, optimized for the Snap experience.
commands:

  • snap-store.show-updates
  • snap-store
    snap-id: gjf3IPXoRiipCu9K0kVu52f0H56fIksg
    tracking: 2/stable
    refresh-date: yesterday at 16:11 -03
    channels:
    2/stable: 0+git.7a3a49a6 2024-12-19 (1248) 11MB -
    2/candidate: ^
    2/beta: ^
    2/edge: 0+git.7a3a49a6 2024-12-18 (1248) 11MB -
    latest/stable: 41.3-72-g80e7130 2024-09-22 (1216) 12MB -
    latest/candidate: ^
    latest/beta: ^
    latest/edge: 0+git.7a3a49a6 2024-12-18 (1248) 11MB -
    preview/stable: --
    preview/candidate: 0.2.7-alpha 2023-02-02 (864) 10MB -
    preview/beta: ^
    preview/edge: 0.3.0-alpha 2023-08-14 (1017) 11MB -
    1/stable: 41.3-72-g80e7130 2024-09-22 (1216) 12MB -
    1/candidate: ^
    1/beta: ^
    1/edge: 41.3-72-g80e7130 2024-09-16 (1216) 12MB -
    installed: 0+git.7a3a49a6 (1248) 11MB -

name: snapd
summary: Daemon and tooling that enable snap packages
publisher: Canonical**
store-url: https://snapcraft.io/snapd
contact: https://github.com/snapcore/snapd/issues
license: GPL-3.0
description: |
Install, configure, refresh and remove snap packages. Snaps are
'universal' packages that work across many different Linux systems,
enabling secure distribution of the latest apps and utilities for
cloud, servers, desktops and the internet of things.

Start with 'snap list' to see installed snaps.
type: snapd
snap-id: PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4
tracking: latest/stable
refresh-date: yesterday at 13:53 -03
channels:
latest/stable: 2.67 2025-01-11 (23545) 46MB -
latest/candidate: 2.67 2024-12-17 (23545) 46MB -
latest/beta: 2.67.1 2025-01-17 (23771) 46MB -
latest/edge: 2.67.1+git154.g853c77f 2025-01-17 (23770) 50MB -
installed: 2.67 (23545) 46MB snapd

Additional context

I'm behind a network proxy. I did set up the snapd proxy and I can install snap apps using the CLI. A can also use APP Center to look for updates and install those

@d-loose
Copy link
Member

d-loose commented Jan 17, 2025

Thanks for your report, could you please post the content of any relevant log files from ~/snap/snap-store/current/.local/share/snap-store (or run `snap-store via the terminal, reproduce the issue and post the terminal output)?

@dvictori
Copy link
Author

Here goes. This is what shows up in the terminal when I run snap-store

Gtk-Message: 11:51:12.109: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(snap-store:7247): Gtk-WARNING **: 11:51:12.163: GTK+ module /snap/snap-store/1248/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 11:51:12.163: Failed to load module "canberra-gtk-module"

(snap-store:7247): Gtk-WARNING **: 11:51:12.164: GTK+ module /snap/snap-store/1248/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 11:51:12.164: Failed to load module "canberra-gtk-module"
flutter: INFO snap-store: Logging to /home/m330625/snap/snap-store/1248/.local/share/snap-store/snap-store.log

(snap-store:7247): GLib-WARNING **: 11:51:12.434: getpwuid_r(): failed due to unknown user id (4889)
flutter: INFO appstream: Unsupported locale: POSIX. Defaulting to "en".
flutter: Invalid argument(s): Invalid locale "POSIX"
flutter: #0      _throwLocaleError (package:intl/src/intl_helpers.dart:208)
flutter: #1      verifiedLocale (package:intl/src/intl_helpers.dart:202)
flutter: #2      verifiedLocale (package:intl/src/intl_helpers.dart:182)
flutter: #3      new DateFormat (package:intl/src/intl/date_format.dart:267)
flutter: #4      new DateFormat.yMMMd (package:intl/src/intl/date_format.dart:548)
flutter: #5      _SnapView.build (package:app_center/snapd/snap_page.dart:116)
flutter: #6      StatelessElement.build (package:flutter/src/widgets/framework.dart:5687)
flutter: #7      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5617)
flutter: #8      Element.rebuild (package:flutter/src/widgets/framework.dart:5333)
flutter: #9      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5599)
flutter: #10     ComponentElement.mount (package:flutter/src/widgets/framework.dart:5593)
flutter: #11     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4468)
flutter: #12     Element.updateChild (package:flutter/src/widgets/framework.dart:3963)
flutter: #13     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642)
flutter: #14     Element.rebuild (package:flutter/src/widgets/framework.dart:5333)
flutter: #15     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5599)
flutter: #16     ComponentElement.mount (package:flutter/src/widgets/framework.dart:5593)
flutter: #17     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4468)
flutter: #18     Element.updateChild (package:flutter/src/widgets/framework.dart:3963)
flutter: #19     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642)
flutter: #20     Element.rebuild (package:flutter/src/widgets/framework.dart:5333)
flutter: #21     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5599)
flutter: #22     ComponentElement.mount (package:flutter/src/widgets/framework.dart:5593)
flutter: #23     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4468)
flutter: #24     Element.updateChild (package:flutter/src/widgets/framework.dart:3963)
flutter: #25     _LayoutBuilderElement._rebuildWithConstraints.updateChildCallback (package:flutter/src/widgets/layout_builder.dart:207)
flutter: #26     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:3038)
flutter: #27     _LayoutBuilderElement._rebuildWithConstraints (package:flutter/src/widgets/layout_builder.dart:231)
flutter: #28     RenderObject.invokeLayoutCallback.<anonymous closure> (package:flutter/src/rendering/object.dart:2719)
flutter: #29     PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:1098)
flutter: #30     RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:2719)
flutter: #31     RenderConstrainedLayoutBuilder.rebuildIfNecessary (package:flutter/src/widgets/layout_builder.dart:278)
flutter: #32     _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:369)
flutter: #33     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #34     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #35     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #36     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #37     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #38     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #39     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #40     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #41     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #42     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #43     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #44     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #45     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #46     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #47     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #48     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #49     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #50     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #51     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #52     RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3726)
flutter: #53     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #54     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111)
flutter: #55     RenderObject.layout (package:flutter/src/rendering/object.dart:2608)
flutter: #56     _RenderTheaterMixin.layoutChild (package:flutter/src/widgets/overlay.dart:1002)
flutter: #57     _RenderTheater.performLayout (package:flutter/src/widgets/overlay.dart:1311)
flutter: #58     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2446)
flutter: #59     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1052)
flutter: #60     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1065)
flutter: #61     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:602)
flutter: #62     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1164)
flutter: #63     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:468)
flutter: #64     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1397)
flutter: #65     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1318)
flutter: #66     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1176)
flutter: #70     _invoke (dart:ui/hooks.dart:314)
flutter: #71     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419)
flutter: #72     _drawFrame (dart:ui/hooks.dart:283)
flutter: (elided 3 frames from dart:async)

(snap-store:7247): GLib-GObject-CRITICAL **: 11:51:20.430: ../src/gobject/gsignal.c:2777: instance '0x565063fddd40' has no handler with id '164'

** (snap-store:7247): CRITICAL **: 11:51:20.432: void fl_view_redraw(FlView *): assertion 'FL_IS_VIEW(self)' failed

** (snap-store:7247): WARNING **: 11:51:20.530: Attempted to set message handler on an FlBinaryMessenger without an engine

** (snap-store:7247): WARNING **: 11:51:20.530: Attempted to set message handler on an FlBinaryMessenger without an engine

@d-loose
Copy link
Member

d-loose commented Jan 20, 2025

Thanks, it seems like the problem is cause by your locale. It looks like LANGUAGE is set to POSIX, which apparently isn't supported by dart's intl package.
I can reproduce the issue by running env LANGUAGE=POSIX snap-store. It works fine with env LANGUAGE=C snap-store, though.
Could you try to set a different locale and see if that resolves the issue?

@dvictori
Copy link
Author

Bingo!! Doing env LANGUAGE=C snap-store works.

This is my current locale:

m330625@desk7802:~$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=pt_BR.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=POSIX
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I had to manualy set LC_CTYPE to pt_BR so I can type "ç". I use English locale but international keyboard.

Any tips on fixing this? Or does this needs to be picked up by dart?

@d-loose
Copy link
Member

d-loose commented Jan 20, 2025

It's probably best to configure your keyboard and language setup using GNOME settings. Alternatively, have a look at https://help.ubuntu.com/community/Locale.

@robert-ancell since you've previously helped us with the related issue #1659 - do you know if the POSIX locale is supposed to be supported by Flutter?

@dvictori
Copy link
Author

I have a bit of a mix-up on my Locale. I use en_US with an international keyboard. But for whatever reason, GNOME will make an accented C (ċ) when I type ' + c, instead of the usual ç. Since I want ' + c to produced a cedilla (ç), I must set LC_CTYPE to something beginning with pt. This is explained in /etc/profile.d/cedilla-portuguese.sh on Ubuntu systems.

Apparently this can also be done by setting GTK_IM_MODULE=cedilla and QT_IM_MODULE=cedilla. But I haven't tested it. (https://askubuntu.com/a/1113491). Will try it out later this week

@Feichtmeier
Copy link
Member

This is prbly not the best approach to fix it, but since those locales often pop up to be weird for me, I use this band-aid fix

// ... somewhere where I check the local for date format
Platform.localeName == 'und' || Platform.localName == 'POSIX' ? 'en_US' : Platform.localeName

@robert-ancell
Copy link

@robert-ancell since you've previously helped us with the related issue #1659 - do you know if the POSIX locale is supposed to be supported by Flutter?

The Linux embedder just passes this string to Flutter - I doubt POSIX is supported as a language code.

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

No branches or pull requests

6 participants