[SS-2344] Closes when pasting

[SS-2344] Closes when pasting - Messages

#1 Posted: 5/5/2014 4:57:31 PM
phillip.toone

phillip.toone

1 likes in 6 posts.

Group: User

I've discovered that the most recent version of SMath closes when I try to use the paste feature. I do not have this problem in older versions. I have narrowed it down to these versions:

Version Build Date Crashes
0.96 4868 05/01/13 No
0.96 4909 06/10/13 No
0.96 5146 02/02/14 Yes
0.96 5151 02/07/14 Yes
0.97 5154 02/10/14 Yes

Also, I am using Linux Mint with this version of Mono:

Mono JIT compiler version 2.4.4 (Debian 2.4.4~svn151842-1ubuntu4.1)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none

I hope my description is clear here. Let me know if you need help understanding what I am trying to share. Thanks.
#2 Posted: 5/5/2014 5:28:07 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Does the crash occure in 0.97.5189 (latest nightly build)?
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 5/5/2014 6:38:13 PM
phillip.toone

phillip.toone

1 likes in 6 posts.

Group: User

Wrote

Does the crash occure in 0.97.5189 (latest nightly build)?



Unfortunately yes. That is where I first discovered the problem. Sorry I did not list that release in my table above. I was just trying to find the latest release that does not have the problem.
#4 Posted: 5/6/2014 5:08:36 PM
phillip.toone

phillip.toone

1 likes in 6 posts.

Group: User

Okay, I've found another issue. When I am at the end of a text block and press Shift+RightArrow the application closes unexpectedly.
1 users liked this post
Davide Carpi 5/6/2014 5:18:00 PM
#5 Posted: 5/6/2014 5:21:59 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

Okay, I've found another issue. When I am at the end of a text block and press Shift+RightArrow the application closes unexpectedly.



This is a bug in windows too... added in BTS: SS-141


Best regards,

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Posted: 6/17/2014 6:10:12 PM
phillip.toone

phillip.toone

1 likes in 6 posts.

Group: User

I've found another, probably related, problem. I have upgraded to Ubuntu 12.04 and now the program crashed when I use either copy or cut. Any progress on this bug? Any more details you would like me to share?
#7 Posted: 6/26/2014 5:25:13 PM
quert

quert

0 likes in 1 posts.

Group: User

I would like to confirm this bug.

Steps to reproduce: open new file, write random expression, copy it and try to paste (ctrl+c followed by ctrl+v). Results in crash.

I am using:
dev-lang/mono-3.2.8
smath 0.97 build 5154
on funtoo linux

Here is crash message:
Quote


System.ObjectDisposedException: The object was used after being disposed.
at System.IO.MemoryStream.CheckIfClosedThrowDisposed () [0x00000] in :0
at System.IO.MemoryStream.Read (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in :0
at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream) [0x00000] in :0
at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Xml.XmlInputStream:.ctor (System.IO.Stream)
at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Xml.XmlStreamReader:.ctor (System.IO.Stream)
at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in :0
at SMathFileType.SMathFileType. (System.IO.Stream , System.Collections.Generic.List`1 , SMath.Control.FileContext ) [0x00000] in :0
at SMath.Control.DataFiles.OpenFileType (System.IO.Stream stream, SMath.Control.Worksheet worksheet, SMath.Control.FileContext context) [0x00000] in :0
at SMath.Control.ClipboardManager.GetRegions (SMath.Control.Worksheet worksheet, Int32 topCorrection) [0x00000] in :0
at SMath.Control.Worksheet. (System.String ) [0x00000] in :0
at SMath.Control.Worksheet.Insert (System.String value) [0x00000] in :0
at SMath.Control.WorksheetControl.OnKeyDown (System.Windows.Forms.KeyEventArgs e) [0x00000] in :0
at System.Windows.Forms.Control.ProcessKeyEventArgs (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control.ProcessKeyMessage (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control.WmKeys (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in :0

Unhandled Exception:
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in :0
at System.Drawing.Graphics.GdipMeasureString (IntPtr graphics, System.String text, System.Drawing.Font font, System.Drawing.RectangleF& layoutRect, IntPtr stringFormat) [0x00000] in :0
at System.Drawing.Graphics.MeasureString (System.String text, System.Drawing.Font font, Int32 width, System.Drawing.StringFormat format) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:MeasureString (string,System.Drawing.Font,int,System.Drawing.StringFormat)
at System.Windows.Forms.TextRenderer.MeasureTextInternal (IDeviceContext dc, System.String text, System.Drawing.Font font, Size proposedSize, TextFormatFlags flags, Boolean useMeasureString) [0x00000] in :0
at System.Windows.Forms.TextRenderer.MeasureText (System.String text, System.Drawing.Font font, Size proposedSize, TextFormatFlags flags) [0x00000] in :0
at System.Windows.Forms.ToolStripItem.OnParentChanged (System.Windows.Forms.ToolStrip oldParent, System.Windows.Forms.ToolStrip newParent) [0x00000] in :0
at System.Windows.Forms.ToolStripItem.set_Parent (System.Windows.Forms.ToolStrip value) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:set_Parent (System.Windows.Forms.ToolStrip)
at System.Windows.Forms.ToolStripItemCollection.Remove (System.Windows.Forms.ToolStripItem value) [0x00000] in :0
at System.Windows.Forms.ToolStripItem.Dispose (Boolean disposing) [0x00000] in :0
at System.Windows.Forms.ToolStripDropDownItem.Dispose (Boolean disposing) [0x00000] in :0
at System.Windows.Forms.ToolStripMenuItem.Dispose (Boolean disposing) [0x00000] in :0
at System.ComponentModel.Component.Finalize () [0x00000] in :0



Best regards,
quert

edit @ 28.06.14
I have downloaded newer build and there is change in crash behaviour.
Smath now displays file save dialogue like before closing.

smath 0.97 build 5283

Here is crash message:
Quote


System.ObjectDisposedException: The object was used after being disposed.
at System.IO.MemoryStream.CheckIfClosedThrowDisposed () [0x00000] in :0
at System.IO.MemoryStream.Read (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in :0
at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream) [0x00000] in :0
at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Xml.XmlInputStream:.ctor (System.IO.Stream)
at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Xml.XmlStreamReader:.ctor (System.IO.Stream)
at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in :0
at SMathFileType.SMathFileType. (System.IO.Stream , System.Collections.Generic.List`1 , SMath.Control.FileContext ) [0x00000] in :0
at SMath.Control.DataFiles. (System.IO.Stream , SMath.Control.Worksheet , SMath.Control.FileContext ) [0x00000] in :0
at SMath.Control.DataFiles.OpenFileType (System.IO.Stream stream, SMath.Control.Worksheet worksheet, SMath.Control.FileContext context) [0x00000] in :0
at SMath.Control.ClipboardManager.GetRegions (SMath.Control.Worksheet worksheet, Int32 topCorrection) [0x00000] in :0
at SMath.Control.Worksheet. (System.String ) [0x00000] in :0
at SMath.Control.Worksheet.Insert (System.String value) [0x00000] in :0
at SMath.Control.Worksheet. (System.String ) [0x00000] in :0
at SMath.Control.Worksheet.Insert (System.String value) [0x00000] in :0
at SMath.Control.WorksheetControl.OnKeyDown (System.Windows.Forms.KeyEventArgs e) [0x00000] in :0
at System.Windows.Forms.Control.ProcessKeyEventArgs (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control.ProcessKeyMessage (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control.WmKeys (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in :0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in :0



Best regards,
quert
#8 Posted: 9/13/2015 4:15:47 AM
Lukas

Lukas

0 likes in 1 posts.

Group: User

Have anyone solve this problem?

I tried last nightly build(SMathStudioDesktop.0_97_5581.Mono) with last Mono(Mono JIT compiler version 4.3.0) from git but still same issue.

Best regards,

Lukas
  • New Posts New Posts
  • No New Posts No New Posts