[SS-3479] Attempted to divide by zero exceptions

[SS-3479] Attempted to divide by zero exceptions - Messages

#1 Posted: 3/22/2013 10:28:18 AM
kda406

kda406

0 likes in 20 posts.

Group: User

When I try to save a simple page it crashes SMath with a "Attempted to divide by zero." error. I got this error with the portable and installed version. The page works great until I try to save. I have attached a screen shot.
Thanks,
Kyle

SmathDBZ.png
#2 Posted: 3/22/2013 10:54:12 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hi,

could you attach the file?


regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 3/22/2013 11:44:50 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Wrote

Hi,

could you attach the file?




:d yes, can you attach it ?
this is my version of your sheet, please tell us if you can run and save it.


Page1.sm (5 KiB) downloaded 62 time(s).
#4 Posted: 3/22/2013 12:57:13 PM
kda406

kda406

0 likes in 20 posts.

Group: User

Wrote

Hi,

could you attach the file?


regards,

w3b5urf3r



Sure, it's attached. It won't open for me.
Thanks,
Kyle
CapacitorRippleVoltage.sm (1 KiB) downloaded 68 time(s).
#5 Posted: 3/22/2013 12:59:09 PM
kda406

kda406

0 likes in 20 posts.

Group: User

Wrote


:d yes, can you attach it ?
this is my version of your sheet, please tell us if you can run and save it.



Thanks for the sample file. It does not open correctly for me. When I double click your file, I get what you see in the attached screen shot.
Thanks,
Kyle

EDIT: I get the same problem below from your file in both installed and portable version.
SMS-Kilele.PNG
#6 Posted: 3/22/2013 2:43:45 PM
kilele

kilele

133 likes in 397 posts.

Group: User

There might be some problem with the TextRegion.dll plugin.
You may want to make a clean uninstall of SMath with some of this programs, all of them available for free at portableapps.com
ZSoftUninstaller, IObitUninstaller, WiseRegistryCleaner.
#7 Posted: 3/22/2013 2:45:46 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

Sure, it's attached. It won't open for me.
Thanks,
Kyle



The file is broken - probably becasue the "Attemted to divide by zero" error has stopped the saving routines, but I'm not sure because last line is in the file header (TextRegion plugin), not in the body...

The kilele file works for me; if both install and portable versions cause you issues you can try to install again the .NET framework 2.0 libraries. What OS are you using? Windows XP x86/x64 SP1/2/3?

CUsersDavideDesktopCapacitorRippleVoltage.sm - Notepad++_2.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#8 Posted: 3/22/2013 3:03:57 PM
kda406

kda406

0 likes in 20 posts.

Group: User

Wrote

The file is broken - probably becasue the "Attemted to divide by zero" error has stopped the saving routines, but I'm not sure because last line is in the file header (TextRegion plugin), not in the body...

The kilele file works for me; if both install and portable versions cause you issues you can try to install again the .NET framework 2.0 libraries. What OS are you using? Windows XP x86/x64 SP1/2/3?


This machine runs XP Pro x86 SP3 and has .NET 2.0, 3.0, 3.5, and 4 installed. .NET 2.0 has Service Pack 2.
Thanks,
Kyle

#9 Posted: 3/22/2013 3:12:24 PM
kda406

kda406

0 likes in 20 posts.

Group: User

Wrote

There might be some problem with the TextRegion.dll plugin.


I have only one copy of TextRegion.dll on my computer. It is located in C:\Program Files\SMath\SMath Studio\plugins. It is 23552 bytes in size and was made on July 30, 2012, 12:03:58AM.

I uninstalled SMath Studio, and made sure the directory was removed (it was gone). I downloaded a fresh copy of the .msi installer and reinstalled. Same problems.
Thanks,
Kyle

#10 Posted: 3/22/2013 6:10:22 PM
kilele

kilele

133 likes in 397 posts.

Group: User

Kyle, I suggested to use some of the uninstallers above because I had problems with an old SMath version which always disabled a plugin when loading. This kind of programs not only remove the installed files but also search for leftovers on the registry, this seemed to make SMath load with all plugins.
Another thing that you could try is to install SMath in a different location than default, and also install several versions of SMath. Good luck!
#11 Posted: 3/27/2013 4:22:28 PM
kda406

kda406

0 likes in 20 posts.

Group: User

I tried uninstalling and reinstalling in a different directory. This did not solve the problem.

I uninstalled SMath altogether.

I ran Piriform CCleaner (here) and ran the registry cleaner and rebooted 3 times before all problems were fixed. All "problems" were minor and the result of uninstalled 3D CAD systems. I cleaned them all up until the computer rebooted, checked, and claimed "no problems."

I installed 0.95.4594 again, and still have the exact same problem reading Kilele's Page1.sm.

New info==> When I click Help -> About, I get a divide by zero error. This happens with both a new, blank page, and if I have Kilele's Page1.sm file open.

Thanks for all the help guys,
Kyle
#12 Posted: 3/27/2013 8:20:17 PM
kilele

kilele

133 likes in 397 posts.

Group: User

You can try to install .Net4.5
and also update the other .Net libraries present on your system. This should fix the problem :d

Edit:

My last shot, take the file TextRegion.dll out of its directory and run SMath, put it back and see if the problem is gone.
#13 Posted: 3/28/2013 9:10:47 AM
kda406

kda406

0 likes in 20 posts.

Group: User

Unfortunately, .Net 4.5 is not available for my XP Pro SP3.
Thanks,
Kyle
#14 Posted: 3/28/2013 9:21:50 AM
kilele

kilele

133 likes in 397 posts.

Group: User

well actually SMath works with .net2 apart from the DataExchange plugin which has versions for .net2 and .net35, though later .net frameworks might have some effect on previous ones. Maybe you could find some update for these two .net versions from windows update of your operating system.
#15 Posted: 3/28/2013 9:45:25 AM
kda406

kda406

0 likes in 20 posts.

Group: User

Wrote

My last shot, take the file TextRegion.dll out of its directory and run SMath, put it back and see if the problem is gone.


I missed the edit earlier. I just tried this and it gives me the same drawing error after following your instructions. (Also the same divide by zero error when trying to view Help -> About)

Thanks,
Kyle

#16 Posted: 3/28/2013 9:59:58 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Have you tried if the issue affects also older SMath Studio versions? 0.95, 0.94, 0.93, 0.92....
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#17 Posted: 3/28/2013 10:07:09 AM
kilele

kilele

133 likes in 397 posts.

Group: User

I've noticed that if you delete some dlls, a reconfiguration window is brought up by SMath and the files are restored, I assume they are extracted from the program's exe. As a last resort, apart from upgrading .Net20, you may want to replace some files from your installation with these of mine:
https://dl.dropbox.com/u/3152568/extract_to_smath_folder.zip
#18 Posted: 3/28/2013 11:55:31 AM
kda406

kda406

0 likes in 20 posts.

Group: User

Wrote

Maybe you could find some update for these two .net versions from windows update of your operating system.



"Windows Update" shows no updates available for my machine. This workstation is fully patched as far as I can tell. Looking at "Add or Remove Programs":

Microsoft .NET Framework 2.0 Language Pack - DEU
Microsoft .NET Framework 2.0 Service Pack 2 v2.2.30729

Microsoft .NET Framework 3.0 Service Pack 3 v3.2.30729

Microsoft .NET Framework 3.5 SP1

Microsoft .NET Framework 4 Client Profile v4.0.30319
Microsoft .NET Framework 4 Extended v4.0.30319

Thanks,
Kyle
#19 Posted: 3/28/2013 12:01:21 PM
kda406

kda406

0 likes in 20 posts.

Group: User

Wrote

Have you tried if the issue affects also older SMath Studio versions? 0.95, 0.94, 0.93, 0.92....



I see I neglected to mention above I downloaded and tried an earlier version and it had the same problems. I think it was 0.93 (sorry I didn't keep it to remember).

I will try the files in the zip next...

Thanks,
Kyle
#20 Posted: 3/28/2013 12:11:57 PM
kda406

kda406

0 likes in 20 posts.

Group: User

Wrote

I've noticed that if you delete some dlls, a reconfiguration window is brought up by SMath and the files are restored, I assume they are extracted from the program's exe. As a last resort, apart from upgrading .Net20, you may want to replace some files from your installation with these of mine:



Your plugins directory had tons of files which mine did not have. I extracted your and told Winzip to overwrite mine. Then I noticed you included some .sm files in the plugins directory. I opened the larger one in SMath, which you can see in the attached.

Thanks,
Kyle
SM2.PNG
  • New Posts New Posts
  • No New Posts No New Posts