Can't open default greio channel

Questions and information about Crank Software's Storyboard Engine

Moderator: jamiev

Can't open default greio channel

Postby Yven » Thu Aug 02, 2018 7:51 am

Hi
I have a program. It works on one computer correctly, but it work with mistake on the other. I use OS QNX6.5.0. Running so:
export GRE_PLUGINS=/home/qnx-6_5-x86-sdl-obj/plugins
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/qnx-6_5-x86-sdl-obj/lib
ldd /home/qnx-6_5-x86-sdl-obj/plugins/librender-plugin-sdl.so
/home/sbengine -ogreio,channel=my_channel /home/MyTest.gapp >> /home/testCrank.txt

In file testCrank.txt i get a mistake: "Can't open default greio channel". Program use functions: gre.send_event, gre.send_event_data and etc.
I understand, that you need to say more about your program and find the line of code in which this error appears.
But, may be, you have an idea, how correct mistake. May be load a library or run auxiliary process. May be i run my program wrong.

Have you idea, how i correct mistake in program?
Yven
 
Posts: 8
Joined: Thu Jul 19, 2018 5:57 am

Re: Can't open default greio channel

Postby nschultz » Thu Aug 02, 2018 8:36 am

Hello Yven,

It's difficult to tell exactly what the problem is without having a little bit more context. Storyboard IO on QNX depends on mqueue so if that service isn't running then you won't be able to send messages. After you verify that there are a few things that you can check/try.

The first would be to verify that the channels in the UI and backend application match. Secondly, is there a dependency in the order in which your UI and back need to start i.e: does the UI need to be running before the backend can send messages? If those two options appear to be correct then you can try validating Storyboard IO by using the iogen and iorcv command line utilities to see if the protocol is functioning properly. You can find these utilities in the bin directory of your runtime folder.

Here is a link to the docs for iogen/iorcv, I'm unsure of your Storyboard version so be sure to check your documentation as the usage options have changed around version 5.0

https://www.cranksoftware.com/cranksoftware/v5.3.0/docs/ch26s07.html

If those utilities work then you can be sure there is something going on in your application logic that should be easy enough to track down. If you continue to have problems can you let me know what version of Storyboard you are using?
nschultz
 
Posts: 24
Joined: Fri Jul 17, 2015 1:51 pm

Re: Can't open default greio channel

Postby Yven » Thu Aug 02, 2018 9:06 am

Can you give a link where i can read about the channels in the UI and the backend application match?
Yven
 
Posts: 8
Joined: Thu Jul 19, 2018 5:57 am

Re: Can't open default greio channel

Postby nschultz » Thu Aug 02, 2018 10:17 am

Hello Yven,

Here is a link (Storyboard 5.3) which talks about using Storyboard IO. You will need to make sure that the channel the UI is listening on, in your case "my_channel" is what is used in your backend application code.

https://www.cranksoftware.com/cranksoftware/v5.3.0/docs/ch26.html

The same information can be found in pdf format in your installation directory under the Documentation folder. Referencing the documentation that matches your version of Storyboard will ensure that you have the most accurate information for your scenario.

Thank you
nschultz
 
Posts: 24
Joined: Fri Jul 17, 2015 1:51 pm


Return to Storyboard Engine

Who is online

Users browsing this forum: No registered users and 3 guests