[SS-3479] Attempted to divide by zero exceptions

[SS-3479] Attempted to divide by zero exceptions - Сообщения

#1 Опубликовано: 22.03.2013 10:28:18
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 Опубликовано: 22.03.2013 10:54:12
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 22.03.2013 11:44:50
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 КиБ) скачан 60 раз(а).
#4 Опубликовано: 22.03.2013 12:57:13
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 КиБ) скачан 65 раз(а).
#5 Опубликовано: 22.03.2013 12:59:09
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 Опубликовано: 22.03.2013 14:43:45
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 Опубликовано: 22.03.2013 14:45:46
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 22.03.2013 15:03:57
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 Опубликовано: 22.03.2013 15:12:24
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 Опубликовано: 22.03.2013 18:10:22
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 Опубликовано: 27.03.2013 16:22:28
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 Опубликовано: 27.03.2013 20:20:17
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 Опубликовано: 28.03.2013 09:10:47
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: User

Unfortunately, .Net 4.5 is not available for my XP Pro SP3.
Thanks,
Kyle
#14 Опубликовано: 28.03.2013 09:21:50
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 Опубликовано: 28.03.2013 09:45:25
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 Опубликовано: 28.03.2013 09:59:58
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 28.03.2013 10:07:09
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 Опубликовано: 28.03.2013 11:55:31
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 Опубликовано: 28.03.2013 12:01:21
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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 Опубликовано: 28.03.2013 12:11:57
kda406

kda406

0 сообщений из 20 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений