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

First attempt with starting app always fails #10

Closed
tim77 opened this issue Aug 23, 2020 · 11 comments
Closed

First attempt with starting app always fails #10

tim77 opened this issue Aug 23, 2020 · 11 comments

Comments

@tim77
Copy link

tim77 commented Aug 23, 2020

Every first cold start Chrome fails. App start itself, but all tabs spinning and can't load any old or new web page. After restarting Chrome it works fine.

Also almost every time need to re-authorize in Google account, but maybe we should handle this in separate issue?

Please tell how i can provide more info and details about such issues to help with debugging?

Edit: not every first cold start, i would say this happens randomly.

Distro: Fedora 32
Flatpak: 1.8.2
xdg-desktop-portal: 1.7.2

@tim77 tim77 changed the title First attemp with starting app always faild First attempt with starting app always fails Aug 23, 2020
@tinywrkb
Copy link

Your Flatpak version is out-of-date. Update to 1.8.2 which fixes this issue.

@tim77
Copy link
Author

tim77 commented Aug 24, 2020

@tinywrkb how did you come to this conclusion? No, mine Flatpak is not is out-of-date — flatpak-1.8.2-1.fc32.x86_64.

@tinywrkb
Copy link

Because you didn't give any detail about the packages versions and this was recently closed.

@refi64
Copy link
Collaborator

refi64 commented Aug 24, 2020

Can you start it from the command line with --env=ZYPAK_DEBUG=1 and post the output, in particular looking for any errors? I should probably have zypak log to the journal regardless...

@asegarra
Copy link

asegarra commented Aug 25, 2020

I'm getting this as well, when I restart Chrome I have to sign in again. Here is the output with --env=ZYPAK_DEBUG=1

flatpak run com.google.Chrome -env=ZYPAK_DEBUG=1
[2 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/extra/chrome --type=zygote
LaunchProcess: failed to execvp:
/app/extra/nacl_helper
[13:13:0825/145903.639140:ERROR:nacl_fork_delegate_linux.cc(323)] Bad NaCl helper startup ack (0 bytes)
Stub sandbox ignoring command: /app/extra/nacl_helper
[1:2:0825/145903.644073:ERROR:nacl_fork_delegate_linux.cc(323)] Bad NaCl helper startup ack (0 bytes)
Gtk-Message: 14:59:03.737: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:59:03.737: Failed to load module "canberra-gtk-module"
[2:31:0825/145903.744566:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[42:42:0825/145903.833568:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[2:43:0825/145903.913380:ERROR:token_service_table.cc(140)] Failed to decrypt token for service AccountId-101099092825277203944
[2:27:0825/145903.930431:ERROR:nacl_browser.cc(309)] Failed to open NaCl IRT file "/app/extra/nacl_irt_x86_64.nexe": -4
[2:137:0825/145904.058792:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:137:0825/145904.058825:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:137:0825/145904.058861:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:137:0825/145904.058884:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:137:0825/145904.058907:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:74:0825/145912.620895:ERROR:gcm_store_impl.cc(941)] Failed to restore security token.

@asegarra
Copy link

Don't know if this is related, but I see something similar to #9 about crytpo

[2:43:0825/145903.913380:ERROR:token_service_table.cc(140)] Failed to decrypt token for service AccountId-101099092825277203944

@refi64
Copy link
Collaborator

refi64 commented Aug 29, 2020

The re-authorizing is likely #9, which is a separate issue. For this one, my hands are largely tied unless I can some debug logs since for some reason I can't reproduce this at all...

@refi64
Copy link
Collaborator

refi64 commented Aug 29, 2020

Actually the second I posted that, I opened the program and suddenly I could reproduce this 😅

@tim77
Copy link
Author

tim77 commented Aug 29, 2020

@refi64 sorry for delay here, yep, with --env=ZYPAK_DEBUG=1 i have same errors when this issue happens:
Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory

@refi64
Copy link
Collaborator

refi64 commented Aug 29, 2020

That error is normal and should be ignored, I was more hoping for the rest of the debug logging.

@refi64
Copy link
Collaborator

refi64 commented Apr 7, 2021

This should have been fixed by the recent secret portal downgrade, please let me know if it still occurs.

@refi64 refi64 closed this as completed Apr 7, 2021
refi64 added a commit to refi64/flextop that referenced this issue Apr 7, 2021
Otherwise, GNOME Shell won't match its StartupWMClass, so the
applications won't appear separately from the Flatpak app in the dock.

This also includes a system for migrating the affected desktop files
automatically.

Ref. flathub/org.chromium.Chromium#83 and flathub/com.google.Chrome#10
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