ginput crashes matlab on figure close (Windows 8)

조회 수: 8 (최근 30일)
Adrian
Adrian 2014년 5월 30일
편집: Adrian 2014년 5월 31일
Hi everyone,
I'm experiencing some peculiar behaviour (tried on R2012b and R2014a on different Windows PCs):
> figure(1); ginput()
and we close the figure, the appropriate error is thrown:
Error using ginput (line 112)
Interrupted by figure deletion
whereas if we have
> figure(1); figure(2); ginput();
and we close figure 2, a matlab system error happens and matlab crashes completely. If we close figure 1, and then figure 2, we get the figure deletion error again as expected.
Any ideas how to avoid the matlab crash? try/catching does not work (since it doesn't actually throw an error...)
Edit : It seems the problem is applicable to Windows 8 and 8.1, and not Windows 7.
Thanks!
- Adrian
  댓글 수: 2
dpb
dpb 2014년 5월 30일
Any different behavior if change the renderer property?
Irrespective of that, Matlab should not crash itself; if you can reproduce this (as it seems from you post you can) then it's subject fodder for a bug report to TMW at mathworks.com
Adrian
Adrian 2014년 5월 31일
Yes, it is reproducible even with different renderers. Thanks for the suggestion. I guess I'll submit a bug report!

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2014년 5월 31일
I do not observe the behavior you did. What I see is expected and is this:
>> figure(1); figure(2); ginput();
Error using ginput (line 84)
Interrupted by figure deletion
I closed figure 2 and it simply gave an entirely reasonable error message.
  댓글 수: 3
Image Analyst
Image Analyst 2014년 5월 31일
I had R2014a on Windows 7.
Adrian
Adrian 2014년 5월 31일
Thanks. I should have specified originally that my problems were on Win 8. But this was a good check, and yeah it seems that Win 7 is fine.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by