flathub / com.unity.UnityHub

https://flathub.org/apps/details/com.unity.UnityHub
21 stars 11 forks source link

[Bug]: Fresh install of UnityHub 3.9.1 will not start #125

Open RefinedSoftwareLLC opened 1 week ago

RefinedSoftwareLLC commented 1 week ago

What Happened

Fresh install of UnityHub 3.9.1 will not start.

If I run UnityHub once with an invalid flag, it then will start.

I used: /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=start-unityhub --file-forwarding com.unity.UnityHub --help

How to Reproduce

flatpak uninstall com.unity.UnityHub
flatpak install com.unity.UnityHub
flatpak run com.unity.UnityHub        # crashes
flatpak run com.unity.UnityHub        # still crashes
flatpak run com.unity.UnityHub --help # works
flatpak run com.unity.UnityHub        # now works

Operating System

Bazzite 40 (Fedora Atomic 40)

Command-line output

Gtk-Message: 09:59:52.145: Failed to load module "colorreload-gtk-module"
Gtk-Message: 09:59:52.145: Failed to load module "window-decorations-gtk-module"
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading '_concatLogs')
    at error (/app/extra/resources/app.asar/build/main/logger.js:121:34)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2:0922/095952.859315:ERROR:browser_main_loop.cc(271)] GLib: g_variant_get_child_value: assertion 'index_ < g_variant_n_children (value)' failed
[2:0922/095952.859425:ERROR:browser_main_loop.cc(271)] GLib: g_variant_get_child_value: assertion 'index_ < g_variant_n_children (value)' failed

Anything else?

No response

RefinedSoftwareLLC commented 1 week ago
Gtk-Message: 10:00:06.098: Failed to load module "colorreload-gtk-module"
Gtk-Message: 10:00:06.098: Failed to load module "window-decorations-gtk-module"
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading '_concatLogs')
    at error (/app/extra/resources/app.asar/build/main/logger.js:121:34)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
RefinedSoftwareLLC commented 1 week ago
Gtk-Message: 10:01:00.256: Failed to load module "colorreload-gtk-module"
Gtk-Message: 10:01:00.256: Failed to load module "window-decorations-gtk-module"
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading '_concatLogs')
    at error (/app/extra/resources/app.asar/build/main/logger.js:121:34)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
**
GLib:ERROR:../glib/gvarianttypeinfo.c:176:g_variant_type_info_check: assertion failed: (!g_atomic_ref_count_compare (&container->ref_count, 0))
Bail out! GLib:ERROR:../glib/gvarianttypeinfo.c:176:g_variant_type_info_check: assertion failed: (!g_atomic_ref_count_compare (&container->ref_count, 0))
RefinedSoftwareLLC commented 1 week ago
Gtk-Message: 10:05:33.912: Failed to load module "colorreload-gtk-module"
Gtk-Message: 10:05:33.912: Failed to load module "window-decorations-gtk-module"
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading '_concatLogs')
    at error (/app/extra/resources/app.asar/build/main/logger.js:121:34)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2:0922/100536.310745:ERROR:browser_main_loop.cc(271)] GLib: g_variant_get_child_value: assertion 'index_ < g_variant_n_children (value)' failed
RefinedSoftwareLLC commented 1 week ago

Here is the output the first time it worked correctly:

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=start-unityhub --file-forwarding com.unity.UnityHub --help

Gtk-Message: 10:06:42.555: Failed to load module "colorreload-gtk-module"
Gtk-Message: 10:06:42.555: Failed to load module "window-decorations-gtk-module"
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading '_concatLogs')
    at error (/app/extra/resources/app.asar/build/main/logger.js:121:34)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
LaunchProcess: failed to execvp:
xdg-settings
[50:0922/100643.633425:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: DisplayRead|Scanout, format: YUV_420_BIPLANAR, share_between_threads: 0, gmb_type: platform
[50:0922/100643.633694:ERROR:shared_image_stub.cc(147)] SharedImageStub: Unable to create shared image
[50:0922/100647.406208:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[50:0922/100650.837332:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[50:0922/100650.845739:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
wjt commented 3 days ago

I can't reproduce this.

I think this is most likely related to the runtime update. Try reverting 3875d540db5f34aec026e3fcc1abc5417c8d55a2 and see if you can still reproduce this.

Are you interested in maintaining this module?