Eiji

Eiji

Problem with dirty close in scenic

After temporary solved my first problem with scenic I need a community help to fix second problem. I have installed scenic_new archive, created project, compiled and started. The only problem I have is:

<logger time here> [error] dirty close

I have looked at source code and I have found that it comes from scenic_driver_glfw dependency in file deps/scenic_driver_glfw/lib/glfw.ex (debugged at line 178) which means that glfw driver is nicely handling exit error which comes to driver GenServer, but unfortunately I have not much helpful information even if I comment it. After placing some comments I have received log with this error:

<logger time here> [error] Scenic.ViewPort.Driver :glfw received unexpected message in handle_info/2: {:EXIT, #Port<0.786>, :normal}

In README.md file I have found 3 requirements glew, glfw (in version 3) and pkgconfig. I have checked it in my Funtoo Linux distribution and here is what I have there:

[ebuild   R    ] media-libs/glew-2.1.0:0/2.1::media-kit  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 747 KiB
[ebuild   R    ] media-libs/glfw-3.2.1::media-kit  USE="wayland -examples" 640 KiB                                
[ebuild   R    ] virtual/pkgconfig-0-r1::core-kit  ABI_X86="(64) -32 (-x32)" 0 KiB

I have also checked if my OpenGL is already working.

Here is my current OpenGL configuration:

$ eselect opengl list
Available OpenGL implementations:
  [1]   xorg-x11 *

And here is what lots of people (with topics about graphic driver problems) ask i.e. direct rendering:

$ glxinfo | grep direct
direct rendering: Yes
    GL_ARB_depth_clamp, GL_ARB_derivative_control, GL_ARB_direct_state_access, 
    GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect, 
    GL_ARB_map_buffer_range, GL_ARB_multi_bind, GL_ARB_multi_draw_indirect,

It would be awesome if somebody could help me. @boydm maybe you have any ideas how it could be solved?

Marked As Solved

Eiji

Eiji

I have finally found it!

This is important message for Gentoo and Gentoo-based distribution users.

wayland USE flag causes 255 error for compiled scenic_driver_glfw binary when running in X11 session. I have no Wayland and XWayland sessions to test them properly.

Here is example working dependency configuration:

[ebuild   R    ] media-libs/glew-2.1.0:0/2.1::media-kit  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] media-libs/glfw-3.2.1::media-kit  USE="-examples -wayland" 0 KiB
[ebuild   R    ] virtual/pkgconfig-0-r1::core-kit  ABI_X86="(64) -32 (-x32)" 0 KiB

Here is some description to other people which do not know about USE flag system. Gentoo is source-based Linux distribution. You are able to compile any open source software written for Linux as long as you have met dependencies installed in official or unofficial repository (you can create your own local repository also). If it’s not possible to compile project with support for 2 things then usually such flags have collision which you need resolve on your own. Let’s say collision between support for Qt4 and Qt5. It’s also possible that specific project supports both ways at same time, so it can build Qt4 as well as Qt5 library in one build. Therefore I though that I have only optional Wayland support and in fact it causes me trouble.

Also Liked

boydm

boydm

Creator of Scenic

So… I’d like to get a concise set of instructions for how to install it on Gentoo, but I’m really unfamiliar with it. I’ll help make the description pretty, but you need to help me understand the steps to make it work.

also, since this is a source based distro, does that mean it is less a set of instructions and more a set of helpful hints?

outlog

outlog

fishing here… but noticed wayland here:

so maybe the install instructions in this PR are relevant? add install instructions for Archlinux by tcoopman · Pull Request #21 · ScenicFramework/scenic · GitHub

eg

If you’re using wayland, you’ll probably need glfw-wayland instead of glfw-x11 and glew-wayland instead of glew

Eiji

Eiji

@outlog: For now I’m not using Wayland, because Plasma 5 does not have yet full support for it. Also I have compiled support for Wayland, but OpenGL was tested under X11.

Where Next?

Popular in Questions Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Lily
In templates/appointment/index.html.eex: &lt;%= for appointment &lt;- @appointments do %&gt; &lt;tr&gt; &lt;td&gt;&lt;%= appoi...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
nobody
Hi! In PHP: $SERVER['SERVERADDR'] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New

Other popular topics Top

mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I fore...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
hariharasudhan94
Lets say i have map like this fetching from my database %{"_id" =&gt; #BSON.ObjectId&lt;58eb1a7a9ad169198c3dXXXX&gt;, "email" =&gt; "XX...
New

We're in Beta

About us Mission Statement