<div dir="ltr"><div dir="ltr">Dear Kristoffer,<div><br></div><div>Thank you for the solution. It works.</div><div><br></div><div>I think I should run the gui by the following command every time:</div><div><br></div><div>LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 simnibs_gui<br></div><div><br></div><div>Best wishes,</div><div>-Hassan</div></div><div class="gmail-yj6qo gmail-ajU" style="outline:none;padding:10px 0px;width:22px;margin:2px 0px 0px"><br class="gmail-Apple-interchange-newline"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 23, 2023 at 12:15 PM Kristoffer Madsen <<a href="mailto:kristofferm@drcmr.dk">kristofferm@drcmr.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This is normally because pyQt has problems with binaries on the<br>
Wayland backend. As mentioned in changelog for 4.0, you should try<br>
preloading your system libstdc++.so.6 (from a terminal, prior to<br>
running simnibs_gui):<br>
<br>
simnibs_gui does not start on some linux systems, e.g. with wayland<br>
(workaround: ld preloading of libstdc++.so.6 seems to help; example:<br>
export LD_PRELOAD=/usr/lib/libstdc++.so.6 - path needs to be adjusted<br>
according to library path on local system)<br>
<br>
I would be nice if you could confirm if this works or not.<br>
<br>
Best,<br>
Kristoffer<br>
<br>
On Mon, 23 Jan 2023 at 09:20, Hassan Yazdanian<br>
<<a href="mailto:hassanyazdanian@gmail.com" target="_blank">hassanyazdanian@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I am trying to install SimNIBS 4.0 on Ubuntu 22. After installation is completed, I close the terminal and open a new terminal. In the new terminal, I type simnibs_gui but unfortunately I only see a black screen. The error in terminal is<br>
><br>
> composeAndFlush: makeCurrent() failed.<br>
><br>
><br>
> I would be grateful for any possible solution.<br>
><br>
><br>
> Best wishes,<br>
><br>
> -Hassan<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Hassan Yazdanian, PhD.<br>
> Department of Biomedical Engineering<br>
> Faculty of Electrical Engineering<br>
> K.N.Toosi University of Technology<br>
> _______________________________________________<br>
> Simnibs-discuss mailing list<br>
> <a href="mailto:Simnibs-discuss@drcmr.dk" target="_blank">Simnibs-discuss@drcmr.dk</a><br>
> <a href="https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss" rel="noreferrer" target="_blank">https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Hassan Yazdanian, PhD.<div>Department of Biomedical Engineering<br>Faculty of Electrical Engineering<br>K.N.Toosi University of Technology<br></div></div></div></div></div></div></div>