-
Notifications
You must be signed in to change notification settings - Fork 330
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
not working on ubuntu #43
Comments
Unfortunately I can't help much about this because i don't know much about gtk. You probably find more healthy information on internet. |
What is your OS? What DE are you using? Graphics drivers? Can you upload the Logs (terminal and Unity Player)? |
@RicardoEPRodrigues, I have this problem too. |
Hello @M6stafa, Can you try it on Ubuntu 18.04? (maybe is a problem with the version of GLib, the current
Can you check that the window is not behind the program? It happened to me and is related to how GNOME sorts windows out. |
Do you have old builds? or can you say me how i must build it?
I check that, there is nothing. i also check the sync function. |
Currently there is no async working, I only implemented the sync method where the async calls the sync function.
You can use CMake to build the library. It is located in the Plugins folder of the project. |
I test in ubuntu 18.04 too, and it fails with same error, what was your test environment? |
What version of Unity are you using? Maybe this is the issue. A little context, I'm using Unity 2017.2 (I think), on this version the engine initializes a Gtk Application, so when in the library I open a dialog window it just uses the application Unity created. My hypothesis is that newer version don't run a Gtk Application, meaning we don't really have a correct way to create a dialog window. To test my hypothesis I would need to install a newer version of Unity... or you can try and modify the code I made. Were you able to compile it? |
I'm using 2018.3.0f2.
I'm trying, it's need a newer cmake that is not in default repos, i make the the newer version. |
First try compiling it and replacing the If it doesn't work then try running the example that comes with the library code ( |
I build in Ubuntu 16.04, the main.c runs correctly without any error but the game has same errors with new .so What is next step? |
Basically we now know that Unity no longer runs with a Gtk application. So we need to create one. AKA Create a Gtk application from the C code. |
Maybe this can help. https://developer.gnome.org/gtk3/stable/gtk-getting-started.html |
I try some methods like create a gtk application each time, but errors not change. |
Still no updates on this? I have the same problem. |
@marco-nutonomy I still haven't had the time. Yet the problem is now clearer, it doesn't work on the 2018 version of Unity. |
I am facing the same issue, it works in the Editor, but crashes in build. But after trying out for few hours, it seems to work, though I am not a Gtk expert so not sure what it would cause LOL ! OS: Ubuntu 14.04
Hope there will be a proper solution soon. |
@Vuxt4 Thank you for your insight, I'll need to test this out, yet I'm not a fan of using older versions where newer versions should (in theory) do the job. If all else fails I'll have to compile it with GTK2.0. Thank you! 😄 |
Hey everyone, so I've done some digging. It turns out it is not related with Unity 2018, it is instead related with older Ubuntu distros. I've been developing and building on Ubuntu 18.04, where even with Unity 2018 it works, I think the problems are due to older GTK version in Ubuntu 14.04. I don't have the time or availability to solve this issue. I can only support newer distros. |
I can understand not supporting 14.04 which is almost at the end of the LTS, but i think 16.04 should definitely be supported, considering it still has more than 2 years of official support. |
Hey guys, I compiled the code in Ubuntu 14.04 and generated the Could you test it out and see if it works for you? Replace the |
Sadly, nothing seems to change on 16.04. |
Your new .so works fine while in Editor, it does not work in build application though... Following error occurs when running with build application: (test.x86_64:4785): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed (test.x86_64:4785): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed Environment: |
I managed to get it running with a GTK+ running in a separated process. I'll post the source code (or send a pull request) later! |
Failed to load module "canberra-gtk-module"
test_64:8755): GLib-GObject-WARNING **: 12:30:42.739: cannot register existing type 'GdkDisplayManager'
(test_64:8755): GLib-CRITICAL **: 12:30:42.739: g_once_init_leave: assertion 'result != 0' failed
(test_64.x86_64:8755): GLib-GObject-CRITICAL **: 12:30:42.739: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
The text was updated successfully, but these errors were encountered: