Vanilla-OS / first-setup

This utility is meant to be used in Vanilla OS as a first-setup wizard. It takes care of the user choices.
GNU General Public License v3.0
71 stars 33 forks source link

First Setup Hangs Indefinitely After Fresh Install #331

Open NN708 opened 1 week ago

NN708 commented 1 week ago

After a fresh install, the First Setup fails to complete, resulting in an indefinite installation process.

Screenshot

The following error messages were found in journalctl:

Sep 24 11:37:00 vanilla org.vanillaos.FirstSetup.desktop[2515]: rm -f /etc/vanilla-first-setup-done
Sep 24 11:37:00 vanilla pkexec[4066]: pam_unix(polkit-1:session): session opened for user root(uid=0) by vanilla(uid=1000)
Sep 24 11:37:00 vanilla vanilla-first-s[2515]: (../src/vtepty.cc:810):void vte_pty_spawn_with_fds_async(VtePty*, const char*, const char* const*, const char* const*, const int*, int, const int*, int, GSpawnFlags, GSpawnChildSetupFunc, gpointer, GDestroyNotify, int, GCancellable*, GAsyncReadyCallback, gpointer): runtime check failed: ((spawn_flags & ignored_spawn_flags()) == 0)
Sep 24 11:37:00 vanilla pkexec[4079]: pam_unix(polkit-1:session): session opened for user root(uid=0) by vanilla(uid=1000)
Sep 24 11:37:00 vanilla systemd[1795]: Started vte-spawn-ce39d28f-cc2d-4f2f-95e1-09a8142a4b36.scope - VTE child process 4079 launched by vanilla-first-setup process 2515.
Sep 24 11:37:01 vanilla vanilla-first-s[2515]: char* vte_terminal_get_text(VteTerminal*, VteSelectionFunc, gpointer, GArray*): assertion 'attributes == nullptr' failed
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]: Traceback (most recent call last):
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]:   File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/views/progress.py", line 150, in on_vte_child_exited
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]:     self.__window.set_installation_result(status, self.__terminal)
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]:   File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/window.py", line 190, in set_installation_result
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]:     self.__view_done.set_result(result, terminal)
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]:   File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/views/done.py", line 81, in set_result
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]:     if len(out) > 0:
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]:        ^^^^^^^^
Sep 24 11:37:01 vanilla org.vanillaos.FirstSetup.desktop[2515]: TypeError: object of type 'NoneType' has no len()
jardon commented 1 day ago

If I'm understanding this correctly, the stack trace is not where the error is. The logic only gets to that point if there is a previous failure. I could update it to avoid that specific error, but that doesn't solve whatever previous error tripped it up. Obviously, error handling failed us here.

Can you give me any more info about the environment? it would be helpful to reproduce

NN708 commented 21 hours ago

Can you give me any more info about the environment? it would be helpful to reproduce

It's a desktop PC equipped with an Intel Core i7-13700K processor, 64 GB of RAM, a 1 TB SSD, and two 4 TB HDDs. I was performing a fresh installation on the SSD when the issue occurred. I can only reproduce this issue on this specific machine.