[SS-3479] Attempted to divide by zero exceptions

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

#21 Опубликовано: 28.03.2013 13:10:36
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....



WAIT WAIT WAIT WAIT WAIT! WHAAAAAT?

I believe I have found a problem with the SMath site. Because of this, when I tried an "older" version, I did not.

If I go to download for example, 0.88, and click on the 0.88 setup here:
http://en.smath.info/forum/yaf_postst425_Stable--SMath-Studio-0-88--12-April-2010.aspx

What do I get? 0.95

If I try to get 0.94 from here:
http://en.smath.info/forum/yaf_postst1317_Stable--SMath-Studio-0-94--18-May-2012.aspx

What do I get? 0.95

Every version I have tried to download (in the last hour) has given me 0.95.

I therefore am unable to try other versions to see if the divide by zero problem is limited to 0.95.

Thanks,
Kyle
#22 Опубликовано: 28.03.2013 13:17:43
Davide Carpi

Davide Carpi

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

Группа: Moderator

It's true o_o

However here there is a 0.94 version (found in C:\Users\Davide\AppData\Roaming\SMath - folder get from SettingsDirectory(#) function of customFunctions plugin) (edit) and the first 0.95.


regards,

w3b5urf3r
SMathStudioDesktop.0_95.Setup.msi.zip (1 МиБ) скачан 38 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#23 Опубликовано: 28.03.2013 13:37:57
kilele

kilele

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

Группа: User

I could find download links for old versions, for example:
https://smath.com/files/Download/QY6Yb
Just go to the archive subforum on the "Download" forum

Could you try to change xp look and feel, you know the style of windows dialogues, titlebars, icons size..
I think you can change it opening Desktop Properties, "Appearance" and "themes" tab.
Changing this to get a more standard style, I was able to solve issues affecting user interfaces of another software.
#24 Опубликовано: 28.03.2013 14:10:14
kda406

kda406

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

Группа: User

Kilele,

The link you posted takes me to install 0.95. Yes, I too find the download links for older versions, but when you actually click to download, the files you receive are all 0.95.____.msi.

I had already tried changing to the totally default Blue theme (all defaults for screen setups) when I saw rendering issues with your Page1.sm file. When it did not fix the problem, I changed back to Microsoft XP Silver Normal.

I just downloaded and ran the NetFXRepairTool.exe from Microsoft. It said it found no problems, so I clicked the button to do what I will call deep compare/repair. It checked every file in every .Net version I have installed against Microsoft looking for any differences (took about 15 mins). It finished by saying it could find no issues with any of my .Net installations.

I uninstalled 0.95, cleaned the registry, installed the 0.94 version W3b5urf3r posted. It had the same issues rendering and divide by zero when looking at Help -> About. It wanted to do an update, so I allowed it to update to 0.95. Same results.

I have never had software to not run on this PC. This is crazy!

Thanks so much,
Kyle
#25 Опубликовано: 28.03.2013 14:11:55
kda406

kda406

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

Группа: User

Aaahh, the requested older versions are hidden. You have to click a link to unhide them. Not cool.
-Kyle
#26 Опубликовано: 28.03.2013 14:17:42
kda406

kda406

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

Группа: User

Цитата

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.DivideByZeroException: Attempted to divide by zero.
at SMath.Manager.DynamicLabel..ctor()
at SMath.Desktop.About.InitializeComponent()
at SMath.Desktop.About..ctor()
at SMath.Desktop.Form1.ShowAboutDialog(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3643 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


SMathStudio_Desktop
Assembly Version: 0.88.3754.54
Win32 Version: 1.1.14.0
CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/SMathStudio_Desktop.exe

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3645 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

ioman
Assembly Version: 0.88.3754.50
Win32 Version: 0.88.3754.50
CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/ioman.DLL

HTMLFileType
Assembly Version: 1.1.3753.43167
Win32 Version: 1.1.3753.43167
CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/HTMLFileType.dll

canvas
Assembly Version: 0.88.3754.52
Win32 Version: 0.88.3754.52
CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/canvas.DLL

SpecialFunctions
Assembly Version: 1.1.3753.43100
Win32 Version: 1.1.3753.43100
CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/SpecialFunctions.dll

XMCDFileType
Assembly Version: 1.1.3753.43032
Win32 Version: 1.1.3753.43032
CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/XMCDFileType.dll

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll


************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:





When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Is this helpful?
Thanks,
Kyle
#27 Опубликовано: 28.03.2013 15:17:41
kilele

kilele

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

Группа: User

Hopefully Andrey will see this log with the exception: System.DivideByZeroException: Attempted to divide by zero.
and will be taken into account in the next version, It seems some problem related with calculating/placing user interfaces elements, just guessing though.

You may want to install .net20 manually (I guess the install will detect if there are newer versions
http://www.microsoft.com/en-us/download/details.aspx?id=1639

Another idea to test, backup and delete mscorlib at C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll and try to repair the .net installation again.

#28 Опубликовано: 28.03.2013 16:52:27
kda406

kda406

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

Группа: User

I tried several iterations. Removed mscorlib.dll from 2.0, same problems. Restored, same problems. Removed it from 4.0, same problems. Restored, same problems.

I removed them both, so there is NO mscorlib.dll on my PC and ran SMath. Same problems. What? I don't even need this DLL installed to run SMath. Search does not find the DLL. Is it cached somewhere?

I have not restored my .Nets yet. Right now, running the PC without those DLLs at all.

Thanks,
Kyle
#29 Опубликовано: 29.03.2013 06:39:14
kilele

kilele

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

Группа: User

If you are not totally annoyed by the software yet or by my suggestions, you could try to upgrade your videocard drivers as well as checking out if you are using any applications that affect other software like antivirus..
#30 Опубликовано: 02.04.2013 09:27:42
kda406

kda406

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

Группа: User

Wrote

If you are not totally annoyed by the software yet or by my suggestions, you could try to upgrade your videocard drivers as well as checking out if you are using any applications that affect other software like antivirus..



I figure you guys are the one who is annoyed with me. I do not believe the video card drivers or anti-virus could cause a divide by zero error when I click Help -> About.

Nevertheless, I checked my video card drivers and turned off my anti-virus software (Comodo Internet Security Premium). I still get divide by zero errors.

Since I last posted, I took some time to upgrade NetBeans, MPLabX, Gimp, Firefox, Thunderbird, LibreOffice, Filezilla, puTTY, Zim Wiki, and Foxit Reader. All went smoothly and work perfectly with no glitches. The problem with SMath Studio is quite confounding and completely atypical for me. If the developers want to send stripped down test-compiles to locate the problem, I am open to it. I would very much like to use this program.

I really appreciate everyone being so patient with me.

Thanks,
Kyle
#31 Опубликовано: 13.04.2013 14:17:05
kilele

kilele

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

Группа: User

oops I'm sort of cursed with the same issues as you.
I wanted to see Smath in Linux in a rapid way, that is by installing a precompiled exe of a lightweight distribution:
"Precise Puppy Linux 550.exe", then I searched "mono-complete" on the Pupy package manager and finally downloaded Smath and run its .exe from the console: mono smath.exe
And arghh I was faced with your very same problems: abrupt exit when trying to activate menus leaving dividing zero errors messages on the console, and sheets showing all regions messed up.

By the way, I've noticed that the download setup provided for Linux is actually a nice portable version which works on Windows, with the advantage of not including the entire .net framework as well as allowing the use of third party plugins!
#32 Опубликовано: 14.04.2013 05:40:33
Martin Kraska

Martin Kraska

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

Группа: Moderator

Wrote


By the way, I've noticed that the download setup provided for Linux is actually a nice portable version which works on Windows, with the advantage of not including the entire .net framework as well as allowing the use of third party plugins!



That is really an interesting option which I would like to recommend in my handbook. However, the settings are not stored in the dir where the exe resides as in the portable version. Instead, a settings directory is used that seems to depend on the local .net environment. I noticed that the installed version and the linux executable use the same settings dir.

I added most of the available plugins to the linux distrib and packed that into a zip (3MB ) available in the wiki: SMath with plugins. This saves you from collecting the plugins from the locations spread over the forum.

I only used precompiled plugins and excluded those that have licence issues or do not run on x64. Still I may have missed some plugins.

I did not collect individual permissions from the authors to include the plugins but shall remove them if I am asked to do so. Also I did not perform thorough testing of the setup, but so far no indications for particular problems (in addition to those that we have with the native windows version.

Depending on the response, I shall repeat this post at a more appropriate location in the forum.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#33 Опубликовано: 14.04.2013 08:28:34
kilele

kilele

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

Группа: User

Wrote



That is really an interesting option which I would like to recommend in my handbook. However, the settings are not stored in the dir where the exe resides as in the portable version. Instead, a settings directory is used that seems to depend on the local .net environment. I noticed that the installed version and the linux executable use the same settings dir.

I added most of the available plugins to the linux distrib and packed that into a zip (3MB ) available in the wiki: SMath with plugins. This saves you from collecting the plugins from the locations spread over the forum.

I only used precompiled plugins and excluded those that have licence issues or do not run on x64. Still I may have missed some plugins.



Thanks for maintaining this derivative distribution with user-made plugins.

It could be possible to make an alternative version to store settings in the same directory as the exe,
following the instructions on the portableapps.com forum, but it might be hacking Andrey's installer too much.
Anyway, I remember that he was interested in following the specifications of that software suite. The next version of portableapps will support .net applications so it will be a good opportunity to prepare an official portable distibution to promote smath on that site.



#34 Опубликовано: 14.04.2013 09:30:01
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Thank you Martin

If I remember my wishlist from almost three years ago, it seems that SMath version you presented here is a step forward to something I always wanted, thanking to Andrey and plugin makers (w3b5urf3r and uni in the first place). I really hope that there would not be another three years waiting for SMath version 1.0 . I can not find the right words, but It would be really just a very sad thing not to have SMath 1.0 in the very recent future .

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#35 Опубликовано: 15.04.2013 09:24:28
kda406

kda406

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

Группа: User

Wrote

And arghh I was faced with your very same problems: abrupt exit when trying to activate menus leaving dividing zero errors messages on the console, and sheets showing all regions messed up.


I am sorry you have the problem on your linux install, but happy to not be the only one with the problem.

Did you solve the problem?

Thanks,
Kyle
#36 Опубликовано: 15.04.2013 14:46:32
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

I added most of the available plugins to the linux distrib and packed that into a zip (3MB ) available in the wiki: SMath with plugins. This saves you from collecting the plugins from the locations spread over the forum.



kda406, have you tried to run this build? It's designed for linux but work also on windows systems.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#37 Опубликовано: 15.04.2013 15:23:27
kda406

kda406

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

Группа: User

Wrote

kda406, have you tried to run this build? It's designed for linux but work also on windows systems.


I thought so, but just to be sure I tried again just now.

I tried:
SMathStudioDesktop.0_95_4594.Portable.exe (Date: 30.07.2012. File size: 18M - .Net Framework 2.0 doesn't required

And also tried:
Desktop Linux (desktop computer with Linux OS):
SMathStudioDesktop.0_95_4594.Mono.tar.gz (Date: 30.07.2012. File size: 857.25K - last version of Mono distributive required!

Portable for Windows gives the same problems and divide by zero errors as the installed version.

Mono/Linux version gives 4 warnings about plug-ins, then runs, but crashes the same way with divide by zero errors.

Thanks,
Kyle
#38 Опубликовано: 15.04.2013 16:04:25
kilele

kilele

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

Группа: User

Wrote



I am sorry you have the problem on your linux install, but happy to not be the only one with the problem.

Did you solve the problem?



I tried several windows installers for installing Puppy (not the .iso files) without success to run Smath.
A pity because I like Puppy, just occupies a few hundred megabytes and can run totally in ram.
I think it's best to use some distribution bundled with mono like Ubuntu. I'll post my finding here if I manage to make a minimum installation of Ubuntu.

I wonder if installing mono for windows would make a difference in your case.
#39 Опубликовано: 16.04.2013 08:49:01
kda406

kda406

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

Группа: User

Wrote

I wonder if installing mono for windows would make a difference in your case.



I downloaded and installed Mono (no issues). I ran it as the command line version.

First I pasted the path of the installed SMathStudio. It runs slowly, but comes up. It had the same issues, which I guess is no surprise as it is still using the installed .Net components.

Next I navigated the Mono CL to the location where my SMath portable (for Windows) is located. I ran it, and it was much slower, as expected. But I was shocked that when I clicked Help About, I still get a divide by zero error.

I didn't try anything else.

Thanks,
Kyle
#40 Опубликовано: 16.04.2013 11:54:53
kilele

kilele

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

Группа: User

Kyle :

Have you tried to run the the Linux build with Mono for Windows ?

Wrote

Wrote

I added most of the available plugins to the linux distrib and packed that into a zip (3MB ) available in the wiki: SMath with plugins. This saves you from collecting the plugins from the locations spread over the forum.



kda406, have you tried to run this build? It's designed for linux but work also on windows systems.




You could install VirtualBox for Windows hosts and run it as a virtualmachine just fine.
This is a straightforward how-to with screenshots:
http://www.psychocats.net/ubuntu/virtualbox
The idea is to run some lightweight Linux distro including Mono by default, like Ubuntu.
I would try Xubuntu which runs loading less ram and allows an installation of 1.5gb in case you are interested after seeing it on virtualbox, besides it makes sense to use a lighter ram version from within windows.

Edit:

other linux versions reported in the forum which run successfully Smath
http://en.smath.info/forum/yaf_postsm7327_Fail-to-run-Ubuntu.aspx#post7327
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений