Bug SS-1225
3 votes

Crash on file saving

Created by Davide on 10/1/2014 5:12 PM Last Updated by smath on 4/1/2016 1:53 AM
%
 (hrs)
Logged: 0   (hrs)

 Description

original post: http://en.smath.info/forum/yaf_postst2824_Miss-some-regions-and-crash.aspx#post16228

 

On some computers, the attached file can't be saved, because SMath crashes. As stated in the forum the issue seems related with the memory handling.

    smath (Friday, April 1, 2016 1:53 AM) #

Thank you, Davide!

Issue is fixed, so closing this ticket...

(Behind the scene we contacted by Skype, tested several possible fixes and finally found a reason and a proper solution. Next SMath Studio version will have no such a bug.)

    Davide (Friday, April 1, 2016 12:11 AM) #

Here you have the requested info:

    smath (Thursday, March 31, 2016 10:36 PM) #

Thank you.

Please could you press Debug button on the error dialog and make a screenshot for Call stack in Visual Studio?

Also please provide a result of the following command from cmd: SMathStudio_Desktop.exe -s -i

Thanks in advance!

    Davide (Thursday, March 31, 2016 10:06 PM) #

Still experience the bug, same exception thrown in the JIT.

No problem about testing more and more... hope you'll find a solution :)

    smath (Thursday, March 31, 2016 9:50 PM) #

Thank you, Davide!

I figured out why it happened. Please could you test another version: http://smath.info/file/hPxpa?

I'm sorry for interrupting you, but I can't replicate issue on my environment. You are my only chance to check we have positive trend here :)

    Davide (Thursday, March 31, 2016 7:12 PM) #

Hello Andrey,

I can still reproduce it... seems even easier to trigger than before :(

 

Got this from the JIT debugger:

System.InvalidOperationException unhandled exception.

Message: unandled exception of type 'System.InvalidOperationException' in System.Drawing.dll

Further informations: object is currently in use elsewhere

    smath (Thursday, March 31, 2016 6:34 PM) #

Davide,

Please, could you check again with the following build: http://smath.info/file/G6asr. I've found wrong memory usage when working with images on file saving and did fix it.

    Davide (Saturday, March 26, 2016 4:14 AM) #

Seems fixed here. I can still notice the bug in a big file (approx 10 Mb). Now it appears randomly (very rare, but I've noticed it at least 3 times, opening the file, waiting for calculation and then saving it with "save as")

Moreover, seems that if we save the file while it is being processed, it restarts the processing and become very slow (worksheet processed in 2 seconds on opening, stopped manually after 2 minutes of calculations)

    smath (Saturday, March 26, 2016 2:05 AM) #

    smath (Friday, October 10, 2014 12:53 PM) #

Reproduced. Thank you!