Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

Crashes on Wayland

A topic by smykolas created Mar 24, 2022 Views: 602 Replies: 9
Viewing posts 1 to 5

Hello,

Program crashes every time when you try to open file chooser dialog, it can be if you are trying to open a project or export model. I think it is Wayland related since in the log there is Glib error:

(Asset Forge.x86_64:70969): GLib-GObject-WARNING **: 19:37:28.055: invalid cast from 'GdkWaylandDisplay' to 'GdkX11Display'

Here is a image of full stacktrace:


Hey! I'm not sure what "Wayland" is but I assume it's a distro of Linux? Only Ubuntu is officially supported as a distro, others are not supported. If you'd like to receive a refund please contact us by e-mail, thank you!

Thanks for fast response! Wayland is not a distro, it is display server protocol, it is just alternative to X11. But strange that Ubuntu users are not reporting this issue, because on 21.xx release of Ubuntu Wayland is default display server protocol. I'm gonna try to see maybe it is a problem from my end

Sadly I did not found a workaround. I see that you are using Crosstales wrapper for choosing a files, but maybe there's a Unity native one ? It might support Wayland.

(1 edit)

That's too bad! I'll look into this myself too, see if the Crosstales wrapper can or needs to be updated on my end. Unfortunately Unity does not provide a native one, I've been asking for such features for years but to no avail.

Again though, since this is obviously a technically issue I can give a refund if you wish.

I love your software! No refund is needed. Sadly at the moment I have to create assets using virtual machine, which is not perfect but doable. But please keep me updated, maybe Crosstales already fixed this issue.

(1 edit)

I just got the app and faced the same issue, so I tried launching it with Xwayland, and that works! It will break HiDPI since Xwayland doesn't support it yet (blurry appearance), but at least it launches and saves you from having to sign into the X11 session.

I notice that in Player.log, the application cannot even start logging anything, it outputs one line, and that states my screen resolution is 0x0@0hz. Now I'm no expert, but I think my resolution affords me a bit more screen real estate than that.

Anyways:

To launch Asset Forge with Xwayland, you need to set the following environment variable: SDL_VIDEODRIVER=x11
Example in a terminal, from the Asset Forge folder: SDL_VIDEODRIVER=x11 ./Asset\ Forge.x86_64

By the way, thanks Kenney, this app is super awesome!!

Hey!

Thanks for a response, but sadly I've already tried that and it did not worked for me :(

But you gave me an idea. I've just searched if its possible to use x11 gtk backend on wayland and its possible! I just ran this command:

GDK_BACKEND=x11 ./Asset\ Forge.x86_64

And open file dialog works.

Thanks!

Awesome, well done!! Glad it worked. My solution might be specific to my setup, I'm on Arch Linux with KDE Plasma.