Re: M4L Stability
Posted: Fri Feb 27, 2015 5:15 am
AFAIK this is not entirely Live problem. As i understand it it is M4L issue and that same issue is causing Live to crash. So it's m4l.
http://www.lurklurk.org/linkers/linkers ... incircularCircular Dependencies
One final complication with DLLs is that Windows is stricter than Unix in requiring every symbol to have a resolution at link time. On Unix, it's possible to link a shared library that contains an unresolved symbol that the linker has never seen; in this situation, any other code that pulls in this shared library must provide that symbol, or the program will fail to load. Windows doesn't allow this sort of laxity.
In most systems this isn't a problem. Executables rely on high-level libraries, the high-level libraries rely on lower-level libraries, and everything gets linked in the opposite order—low-level libraries first, then higher-level libraries, and finally the executables that rely on it all. However, if there are circular dependencies between binaries, then things are trickier. If X.DLL needs a symbol from Y.DLL, and Y.DLL needs a symbol from X.DLL, then there is a chicken-and-egg problem: whichever library is linked first won't be able to find all of its symbols.
Windows does provide a way around this, roughly as follows.
Angstrom wrote:Every time I hear about this issue with loading libraries, dependancies and non-resolving race conditions ... I think about this ...
http://www.lurklurk.org/linkers/linkers ... incircular
It seems daft for me to comment on the issue without all the facts, but I can't help but attempt to fix problems, it's in my nature.[email protected] wrote:You might just be spot on actually.
Anyway, to anyone on Windows (specially 7): just give a try to the procedure specified above (in my previous post).
Angstrom wrote:Every time I hear about this issue with loading libraries, dependancies and non-resolving race conditions ... I think about this ...
http://www.lurklurk.org/linkers/linkers ... incircular
Precisely that is my experience as well. With the exception that on win 10 things are working in kinda better way...but sporadic crashes are there.[email protected] wrote:Ableton developers pointed out in the beta forum that there is one crash situation on Windows which they do recognize (and are working on - so it was reported):
At M4L initialization (that is: when you start M4L for the *first time* since Live was open, so with the *black* Max for Live logo popping up) things can go wrong.
In particular on Windows 7 OS. M4L requires some windows dll library to start. With large M4L devices those libraries may be called before being fully loaded, causing a Live crash. It is a matter of timing (therefore the unpredictable aspect).
# Procedure:
A workaround (not a solution), as they suggested, is to load the simplest Max for Live device possible first.
For instance load the basic (empty) "Max Midi Effect" device, which you can find in Live browser under Max for Live // Max Midi Effect.
Wait then a few seconds. Yes it sounds stupid, but they said it allows all dll's to be loaded. This has the effect of starting up Max for Live engine with no such issues.
After that it should be possible to load complex M4L devices without crashes.
My own experience kind of confirms this workaround does indeed help. I still had very sporadic issues, but much better.
To comment your post i can say to you that i:Eanna wrote:
And no, I haven't yet sent Ableton a crash report. I am gonna devote tonight / tomorrow to working some pattern, any pattern, (even if the pattern is "There is no pattern") and annotate my crash dumps with info that I hope Ableton will find usable and useful.
Because789 pointed me at the workaround that Fabrizio mentioned above. It may alleviate the issue, I will be checking. Thanks!
There seems to be some common mention of this getting worse about 9 months ago - this is my experience too. Was it an update to Live? Or to the Max runtime? Or did Microsoft release some Win7 patch around that time that might be tripping us up? Do we know?
Should I be posting this on their Beta forums?
Thanks lads.
Yes, I agree, it's been a right nightmare...tecolo wrote:My guess is that they updated Max and Ableton somehow and now it is crashing like hell on win7. Terrible experience..
let me just say that max4L hass been incredibly unstable in the past , has been since i first got suite......, it basically made me never use any of the devices, because they always caused crashing.....i just noticed an update though foir max and using it now, maybe this will help..Eanna wrote:Well I'm not sure if it's 95% - judging by the poll here viewtopic.php?f=1&t=205944
But I'm not sure the nature of the issues that os x users experience.
The significant issues do appear to be manifested on windows tho, yeah.