BlueBrain / RTNeuron

Interactive visualization framework for geometrically detailed neuron simulations
GNU General Public License v3.0
30 stars 10 forks source link

start_app() opens a window which doesn't react to input #22

Closed hernando closed 5 years ago

hernando commented 5 years ago

Launching a use-case app from the command line sets up the Qt5 hook to integrate the QT event loop in the IPython shell event loop. However this setup is not done when the IPython console is started first and start_app() is called from there. The workaround is to type %gui qt5 in the console, but this should be done automatically by start_app.

hernando commented 5 years ago

FYI @alex4200, @haleepfl

alex4200 commented 5 years ago

@hernando I tried to run the app-image on my private Ubuntu 18.04.1 laptop, bt I get the following error message:

OSError: lixX11.so cannot open shared object file: No such file or directory

hernando commented 5 years ago

lixX11.so? I'd find some logic in the error if it was libX11.so with b. The reason may be that Ubuntu 18.04 is using Wayland by default and libX11 doesn't exists. That's a bit surprising nonetheless, as I would expect an emulated X Server to still be present for applications that need it. You can try logging in using "Ubuntu on Xorg" in the greeter or install and configure XWayland.

alex4200 commented 5 years ago

@hernando My bad: Yes it is libX11.so. It is a typo.

I will try to look into that a bit more based on your comments.

alex4200 commented 5 years ago

@hernando I managed to install the missing libraries and was able to start rtneuronApp on Ubuntu 18.04.1.

I noticed , like in the case above, start_app() alone opens a window that does not react. Using %gui qt5 before solves this problem.

hernando commented 5 years ago

The cause of that problem is identified, but I haven't found the solution yet.