Try a large scale Integer linear programming problem (e.g. 100000 variable). Because of rec function you will get the following error.

Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.

Error in optimget>optimgetfast
is there any way to fix it ?