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

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

Open
comods opened this issue Sep 22, 2024 · 9 comments
Open

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

comods opened this issue Sep 22, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@comods
Copy link

comods commented Sep 22, 2024

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

@comods comods added the bug Something isn't working label Sep 22, 2024
@comods
Copy link
Author

comods commented Sep 22, 2024

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)

@comods
Copy link
Author

comods commented Sep 22, 2024

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))

@comods
Copy link
Author

comods commented Sep 22, 2024

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

@comods
Copy link
Author

comods commented Sep 22, 2024

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
Copy link
Member

wjt commented Sep 26, 2024

I can't reproduce this.

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

Are you interested in maintaining this module?

@kilesduli
Copy link

Same issue, and I am using a laptop with hybrid A+N graphics.

@kilesduli
Copy link

I can't reproduce this.

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

Are you interested in maintaining this module?

I reverted to commit 3875d54. UnityHub opens normally, but there are still some errors, such as:

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)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[2:1012/093617.536085:ERROR:browser_main_loop.cc(271)] GLib: g_variant_get_child_value: assertion 'index_ < g_variant_n_children (value)' failed
[2:1012/093617.536112:ERROR:browser_main_loop.cc(271)] GLib: g_atomic_ref_count_dec: assertion 'old_value > 0' failed
[2:1012/093617.536109:ERROR:browser_main_loop.cc(271)] GLib: g_variant_get_child_value: assertion 'index_ < g_variant_n_children (value)' failed
[2:1012/093617.536124:ERROR:browser_main_loop.cc(271)] GLib: g_atomic_ref_count_dec: assertion 'old_value > 0' failed
LaunchProcess: failed to execvp:
xdg-settings

It seems that the problem is not here.

@wjt
Copy link
Member

wjt commented Oct 12, 2024

Please try the test build on #128. Does that fix your problem?

@kilesduli
Copy link

Please try the test build on #128. Does that fix your problem?

Yes, I tested it, and everything works fine. However, the type error still exists. It seems the problem is not related to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants