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 browser closes seconds after the start #281

Closed
CiscoDeTours opened this issue Mar 9, 2024 · 10 comments
Closed

The browser closes seconds after the start #281

CiscoDeTours opened this issue Mar 9, 2024 · 10 comments

Comments

@CiscoDeTours
Copy link

CiscoDeTours commented Mar 9, 2024

INFORMATION

- System

~$ neofetch
 
DEVICE 
•PC: OMEN by HP Laptop 16-c0xxx 
 
SOFTWARE 
•Distro: Debian GNU/Linux 12 (bookworm) 
•Desktop: GNOME 43.9
•Kernel: 6.6.15-amd64 
•Packages: 2567 (dpkg), 62 (flatpak) 
•Shell: bash 5.2.15 
 
COMPONENTS 
•CPU: AMD Ryzen 9 5900HX with Radeon Graphics (16) @ 4.680GHz 
•GPU: AMD ATI Radeon RX 6600/6600 XT/6600M 
•GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
•Memory: 3,63GiB / 14,98GiB (24%)

- Flatpak

~$ flatpak --version

1.14.4
~$ flatpak --gl-drivers

default
host

- Chrome

~$ flatpak info com.google.Chrome

Google - The web browser from Google

          ID: com.google.Chrome
  Referencia: app/com.google.Chrome/x86_64/stable
Arquitectura: x86_64
        Rama: stable
     Versión: 122.0.6261.111-1
    Licencia: LicenseRef-proprietary
      Origen: flathub
   Colección: org.flathub.Stable
 Instalación: system
   Instalada: 21,2 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: cdefadf91e744897584a39a7c84f226de198ee0d47e531f7619441e5901cf95f
       Padre: c8143f1b03e3b978f02e4ab14d22142e70fb6ba49b089c3e8fd5aa18f3d3f072
      Asunto: Update chrome.deb to 122.0.6261.111-1 (01097842)
       Fecha: 2024-03-07 03:44:16 +0000

QUESTIONNAIRE

1. What's your problem with Chrome?

Autoclosed.mp4

2. Does this issue reproduce with native Chrome?
No.

@CiscoDeTours
Copy link
Author

flatpak run com.google.Chrome

Running Chrome in Terminal doesn't have this problem that persists despite updates. For now, the best solution is to install a customization app and pin the above command as exec.

@refi64
Copy link
Collaborator

refi64 commented Mar 24, 2024

After a failed start, does journalctl --user -e show any relevant errors?

@refi64
Copy link
Collaborator

refi64 commented Mar 24, 2024

If I had to immediately guess, you might be setting up some env vars that Flatpak needs inside the .bashrc or somewhere else that's only sourced for terminals but not opening apps through the UI?

@CiscoDeTours
Copy link
Author

CiscoDeTours commented Mar 24, 2024

~$ journalctl --user -e

mar 24 15:54:16 linux03 systemd[1775]: Starting gnome-terminal-server.service - GNOME Terminal Server...
mar 24 15:54:16 linux03 dbus-daemon[1817]: [session uid=1000 pid=1817] Successfully activated service 'org.gnome.Nautilus'
mar 24 15:54:16 linux03 dbus-daemon[1817]: [session uid=1000 pid=1817] Successfully activated service 'org.gnome.Characters'
mar 24 15:54:16 linux03 gnome-shell-cal[2394]: Failed to start evolution-source-registry: Error calling StartServiceByName for>
mar 24 15:54:16 linux03 dbus-daemon[1817]: [session uid=1000 pid=1817] Activated service 'org.gnome.Shell.CalendarServer' fail>
mar 24 15:54:16 linux03 gnome-shell[2007]: Error loading calendars: Error al llamar StartSereviceByName para org.gnome.Shell.C>
mar 24 15:54:16 linux03 dbus-daemon[1817]: [session uid=1000 pid=1817] Successfully activated service 'org.gnome.Terminal'
mar 24 15:54:16 linux03 systemd[1775]: Started gnome-terminal-server.service - GNOME Terminal Server.
mar 24 15:54:16 linux03 dbus-daemon[1817]: [session uid=1000 pid=1817] Activating service name='org.gnome.DiskUtility' request>
mar 24 15:54:16 linux03 dbus-daemon[1817]: [session uid=1000 pid=1817] Successfully activated service 'org.gnome.DiskUtility'
mar 24 15:54:16 linux03 gnome-shell[2007]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.DBusError>
mar 24 15:54:16 linux03 gnome-character[3620]: JS LOG: Characters Application started
mar 24 15:54:16 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:16 linux03 gnome-shell[2007]: cogl_framebuffer_set_viewport: assertion 'width > 0 && height > 0' failed
mar 24 15:54:16 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:16 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:16 linux03 systemd[1775]: Started app-gnome-org.gnome.Terminal-3671.scope - Application launched by gnome-shell.
mar 24 15:54:16 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:16 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:16 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:16 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:16 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
mar 24 15:54:17 linux03 systemd[1775]: Started vte-spawn-e98bee86-2a2b-4653-9544-f06529de2a23.scope - VTE child process 3690 l>
mar 24 15:54:17 linux03 gnome-shell[2007]: setup_framebuffers: assertion 'width > 0' failed
lines 411-442/442 (END)

I don't really know because it's the first time I execute the command. No changes were made to the default installation from Flathub.

@Mershl
Copy link

Mershl commented Jun 1, 2024

@CiscoDeTours do you still see this issue? I see a similar issue where (on first launch) Chrome tries to start for 2 seconds, then closes, launching Chrome immediatly afterwards works.

@CiscoDeTours
Copy link
Author

@Mershl
In my case, the issue persists in a loop on each startup.

@navigos
Copy link

navigos commented Jun 7, 2024

The same happened here.

Debian issues a warning about the flatpak application running in the background. I believe this behavior is due to permission denial.
I installed Chromium, allowed it and everything flows well in Chromium.
I tried reinstalling Chrome, but the warning doesn't appear again.

https://pastebin.com/6HL8ZQkk

@CiscoDeTours
Copy link
Author

@navigos
You're right. Re-enabling the background permission using Flatseal solved this issue.

@navigos
Copy link

navigos commented Jun 10, 2024

@CiscoDeTours This solved it for me.
flatpak uninstall --delete-data com.google.Chrome
https://bbs.archlinux.org/viewtopic.php?id=287560

@CiscoDeTours
Copy link
Author

@navigos
Glad to know that there is a CLI method.

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

No branches or pull requests

4 participants