eneshecan / whatsapp-for-linux

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
943 stars 97 forks source link

libEGL error, program doesn't start #381

Open WolfganP opened 3 weeks ago

WolfganP commented 3 weeks ago

Description After updating from a very old version to v1.6.5, the program doesn't start. As this seems like graphics related, I tried hw-accel option in 1 and 0, same error appeared

To Reproduce Steps to reproduce the behavior: Launch from cmd line

$ whatsapp-for-linux 
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: libEGL warning: failed to get driver name for fd -1
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: 
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: libEGL warning: MESA-LOADER: failed to retrieve device information
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: 
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: libEGL warning: failed to get driver name for fd -1
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: 
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: 
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: (whatsapp-for-linux:20283): Gdk-WARNING **: 13:53:06.320: The program 'whatsapp-for-linux' received an X Window System error.
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: This probably reflects a bug in the program.
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]: The error was 'GLXBadFBConfig'.
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]:   (Details: serial 235 error_code 170 request_code 152 (GLX) minor_code 0)
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]:   (Note to programmers: normally, X errors are reported asynchronously;
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]:    that is, you will receive the error a while after causing it.
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]:    To debug your program, run it with the GDK_SYNCHRONIZE environment
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]:    variable to change this behavior. You can then get a meaningful
<13>Jun  4 13:53:06 whatsapp-for-linux[20287]:    backtrace from your debugger if you break on the gdk_x_error() function.)

Expected behavior Clean app start

Screenshots

Environment

WolfganP commented 3 weeks ago

I saw that the wine community suffered from a similar error from time to time (ie https://forum.winehq.org/viewtopic.php?t=34889). Following the proposed changes, I found that:

export MESA_GL_VERSION_OVERRIDE=4.5

before launching whatsapp-for-linux worked effectively as a workaround for it to start.