# Problem with EyelinkToolbox mex file, crashes MATLAB

**URL:** <https://psychtoolbox.discourse.group/t/problem-with-eyelinktoolbox-mex-file-crashes-matlab/4516>\
**Category:** Bugs & Features\
**Tags:** linux\
**Created:** [June 29, 2022, 3:35pm UTC](https://psychtoolbox.discourse.group/t/problem-with-eyelinktoolbox-mex-file-crashes-matlab/4516 "2022-06-29T15:35:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bapar](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@bapar](https://psychtoolbox.discourse.group/u/bapar)\
**Post date:** [June 29, 2022, 3:35pm UTC](https://psychtoolbox.discourse.group/t/problem-with-eyelinktoolbox-mex-file-crashes-matlab/4516/1 "2022-06-29T15:35:04Z")

</div>

We installed a new PC with Ubuntu 22.04 LTS, MATLAB R2022a and  
Psychtoolbox 3.0.18 - Flavor: beta - Corresponds to SVN Revision 12862

While the SR’s software connects successfully to the eyetracker host computer and receives data from the eyetracker, we couldn’t get a connection when running experiments through MATLAB. I ran the EyelinkToolboxTest program, at first a connection was made to the host computer and in the middle of the test matlab crashed, with an error related to EyelinkToolbox mex file as I will put here. Is there an immediate solution you could offer, considering this may be a bug in the current version?  
Thanks ahead.  
Here is the crash report:  
MATLAB Log File: /home/ubuntu/matlab\_crash\_dump.3128-1

* * *

## MATLAB Log File

* * *

```
             abort() detected at 2022-06-29 17:23:13 +0200

```

* * *

Configuration:  
Crash Decoding : Disabled - No sandbox or build area path  
Crash Mode : continue (default)  
Default Encoding : UTF-8  
Deployed : false  
Desktop Environment : ubuntu:GNOME  
GNU C Library : 2.35 stable  
Graphics Driver : AMD AMD DIMGREY\_CAVEFISH (LLVM 13.0.1, DRM 3.42, 5.15.0-40-generic) Version 4.6 (Compatibility Profile) Mesa 22.0.1  
Graphics card 1 : 0x1002 ( 0x1002 ) 0x73ff Version 0.0.0.0 (0-0-0)  
Java Version : Java 1.8.0\_202-b08 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode  
MATLAB Architecture : glnxa64  
MATLAB Entitlement ID : 3913418  
MATLAB Root : /usr/local/MATLAB/R2022a  
MATLAB Version : 9.12.0.1956245 (R2022a) Update 2  
OpenGL : hardware  
Operating System : Ubuntu 22.04 LTS  
Process ID : 3128  
Processor ID : x86 Family 6 Model 167 Stepping 1, GenuineIntel  
Session Key : f405d572-9804-4954-8a9b-fd2572628412  
Window System : The [X.Org](http://X.Org) Foundation (12101003), display :0

Fault Count: 1

Abnormal termination:  
abort()

Current Thread: ‘PTB mainthread’ id 139781893781056

Register State (from fault):  
RAX = 0000000000000000 RBX = 00007f21821ff640  
RCX = 00007f21ba459a7c RDX = 0000000000000006  
RSP = 00007f21821f9bb0 RBP = 0000000000000c9d  
RSI = 0000000000000c9d RDI = 0000000000000c38

R8 = 00007f21821f9c80 R9 = 0000000000000000  
R10 = 0000000000000008 R11 = 0000000000000246  
R12 = 0000000000000006 R13 = 0000000000000016  
R14 = 0000000000000002 R15 = 0000000000000001

RIP = 00007f21ba459a7c EFL = 0000000000000246

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault):  
[0] 0x00007f21ba459a7c /lib/x86\_64-linux-gnu/libc.so.6+00617084 pthread\_kill+00000300  
[1] 0x00007f21ba405476 /lib/x86\_64-linux-gnu/libc.so.6+00271478 raise+00000022  
[2] 0x00007f21ba3eb7f3 /lib/x86\_64-linux-gnu/libc.so.6+00165875 abort+00000211  
[3] 0x00007f21ba44c6f6 /lib/x86\_64-linux-gnu/libc.so.6+00562934  
[4] 0x00007f21ba4f976a /lib/x86\_64-linux-gnu/libc.so.6+01271658 \_\_fortify\_fail+00000042  
[5] 0x00007f21ba4f9736 /lib/x86\_64-linux-gnu/libc.so.6+01271606  
[6] 0x00007f1f2518d14b /home/ubuntu/Documents/Psychtoolbox-3/Psychtoolbox/PsychBasic/Eyelink.mexa64+00090443  
[7] 0x00007f1f00000000 +00000000

This error was detected while a MEX-file was running. If the MEX-file  
is not an official MathWorks function, please examine its source code  
for errors. Please consult the External Interfaces Guide for information  
on debugging MEX-files

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [June 29, 2022, 11:52pm UTC](https://psychtoolbox.discourse.group/t/problem-with-eyelinktoolbox-mex-file-crashes-matlab/4516/2 "2022-06-29T23:52:44Z")

</div>

For me to read through your message, please provide your authentication token to prove that your lab bought a paid support membership.

-mario
