# MWClient crash with Matlab 2013a

**URL:** <https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619>\
**Category:** Support\
**Created:** [March 28, 2013, 7:39pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619 "2013-03-28T19:39:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [March 28, 2013, 7:39pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/1 "2013-03-28T19:39:39Z")

</div>

Chris,

When I use MWClient 0.5 with MATLAB\_2013a, the client crashes on startup. It works with 2012b. I’m attaching the crash report.

Mark

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [March 28, 2013, 7:43pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/2 "2013-03-28T19:43:57Z")

</div>

Hi Mark,

I’m out of the office this week, but I’ll look in to this when I’m back on Monday.

Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [March 28, 2013, 8:14pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/3 "2013-03-28T20:14:33Z")

</div>

Thanks. No rush. I’ve reverted to 2012b and I’ll be able to run with this for a while.  
Mark

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [April 1, 2013, 3:14pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/4 "2013-04-01T15:14:16Z")

</div>

Hi Mark,

I’ve reproduced this crash on my workstation. It looks like the versions of Boost used by MWorks and MATLAB are stepping on each others’ toes and corrupting memory. I don’t yet know if there’s a fix for the problem.

For the moment, I think sticking with R2012b is the right move.

Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [April 1, 2013, 3:44pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/5 "2013-04-01T15:44:25Z")

</div>

Thanks, and keep us posted.  
Mark

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [June 27, 2013, 4:25pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/6 "2013-06-27T16:25:40Z")

</div>

I have the same Thread 0 Crashed:: Dispatch queue: com.apple.main-thread

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 17, 2013, 8:05pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/7 "2013-07-17T20:05:14Z")

</div>

Hi Mark et al.,

This problem is fixed in the current nightly build. You should now be able to use MATLAB R2013a with the MATLAB client window.

The issue arose because MATLAB and MWorks link against different versions of Boost, which led to the dynamic linker sometimes binding a symbol to one version when the other was needed. The solution was for MWorks to build Boost using a custom namespace.

Mostly for my own future reference, here are a couple of resources that proved very useful in understanding this problem:

- [Explanation of the basic issue](http://stackoverflow.com/questions/17218320)
- Explanation of a [Mach-O “weak definition”](https://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/MachOTopics/1-Articles/executing_files.html#//apple_ref/doc/uid/TP40001829-98432-TPXREF120), which results in the `weak external` symbols mentioned in the previous item

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 17, 2013, 8:56pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/8 "2013-07-17T20:56:47Z")

</div>

Thanks, Chris. Have a great week,  
Mark

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 11:29pm UTC](https://mworks.discourse.group/t/mwclient-crash-with-matlab-2013a/619/9 "2022-07-19T23:29:14Z")

</div>

Closed on July 19, 2022, 11:29pm UTC


