[Mono-bugs] [Bug 81289][Nor] New - Unhandled System.ArgumentOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 2 03:09:59 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by lists at gnudental.org.


--- shadow/81289	2007-04-02 03:09:59.000000000 -0400
+++ shadow/81289.tmp.31075	2007-04-02 03:09:59.000000000 -0400
@@ -0,0 +1,223 @@
+Bug#: 81289
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: Gentoo (default-linux/x86/2006.1/desktop profile)
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: lists at gnudental.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Unhandled System.ArgumentOutOfRangeException
+Open Dental(R) is a Windows(R) application with a 4-6 year history that is
+in production use now and is authored primarily by Jordan S. Sparks, DMD
+(though contributed to by others, primarily Frederik Carlier, and trivially
+by Kevin Ford) for assisting a dentist with the tasks associated with
+maintaining a dental practice through automation.
+GNUdental(tm) is a fork of Open Dental(R) announced on 5 March 2007 and
+created because prior to its announcement, Dr. Sparks repeatedly described
+himself publicly as having little to no interest in supporting Linux(R)
+with Open Dental(R) in the near future.
+GNUdental's primary technical focus is on supporting non- Windows(R)
+operating systems via Mono in the near future and its primary philosophical
+focus is on (a) openness of code, bug reporting, and discussions related to
+both, (b) personal integrity by the development team members, and (c)
+trustworthy software & service fostering a genuine community spirit (to
+mirror that of the GNU(R) project) within the dental profession (arguably
+for the first time).
+Since the launch of the GNUdental(tm) project, development focused on
+supporting Linux(R) has been occuring more rapidly on Open Dental(R).
+This bug seems to be within the Mono project's code base, and though it
+does not seem to surface on Ubuntu(R) or Debian(R) systems, it *does*
+manifest itself on several current Gentoo systems
+(default-linux/x86/2006.1/desktop profile for each system) and is therefore
+a blocker for GNUdental(tm) on Gentoo (perhaps also Open Dental(R) on
+Gentoo although current plans for Open Dental(R) include support only for
+Debian(R) and Ubuntu(R)).
+Description of Problem:
+A single line (line number 270):
+ this.tabControlImages = new System.Windows.Forms.TabControl();
+in file OpenDental/Main\ Modules/ContrChart.cs (svn-head) throws an
+Unhandled Exception for an out of range argument upon application execution
+from the command line.
+At the time of testing and reporting of this suspected bug in Mono, this
+line was present and this exception thrown in every svn-head revision of
+Open Dental(R) compiled & run on Gentoo between 28 March and 2 April 2007
+(at least revisions 92-116). See initial report at
+http://code.google.com/p/gnudental/issues/detail?id=13&can=2&q= and realize
+that this bug is reported on GNUdental's issue tracker because the Open
+Dental(R) Bugzilla only accepts bug reports from developers with svn-write
+privileges (see http://www.open-dent.com/manual/developers.html under
+section entitled, "Bugzilla" which currently reads in part: "Only
+developers with commit permission will be allowed to submit bugs.")
+However, it should be noted that these Open Dental(R) revisions have been
+known to change (administratively and without record) after being committed
+(see http://code.google.com/p/gnudental/issues/detail?id=19&can=1&q= ), so
+these results may not be readily reproducible for that reason (although
+that would be the only reason).
+Steps to reproduce the problem:
+1. Install a Gentoo system with profile default-linux/x86/2006.1/desktop
+2. Install svn-head versions of development tools including Mono and NAnt
+3. Download and compile svn-head version of Open Dental(R)
+( (additional
+instructions which apply for both Open Dental(R) and GNUdental(tm) except
+in certain obvious specifics are here:
+http://code.google.com/p/gnudental/wiki/GettingStarted )
+4. make install in root of Open Dental(R) build tree (installs in /usr/local)
+5. type `opendental' at the command prompt.
+Actual Results:
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+Parameter name: startIndex
+  at System.String.Substring (Int32 startIndex) [0x00000] 
+  at OpenDental.ContrChart..ctor () [0x00000] 
+  at (wrapper remoting-invoke-with-check) OpenDental.ContrChart:.ctor ()
+  at OpenDental.FormOpenDental.InitializeComponent () [0x00000] 
+  at OpenDental.FormOpenDental..ctor () [0x00000] 
+  at (wrapper remoting-invoke-with-check) OpenDental.FormOpenDental:.ctor ()
+  at OpenDental.FormOpenDental.Main () [0x00000] 
+Expected Results:
+An application window like one of these should open up:
+How often does this happen? 
+100% of the time over the last 5 days with various revisions of Mono tools
+and Open Dental(R).
+Additional Information:
+1) multiple svn-head revisions of MonoDevelop have compiled and run on
+these Gentoo systems over the same time period without problems.
+2) MonoDevelop svn-head apparently makes no use of the Mono code that seems
+to contain this bug:
+kevin at gnudental1 ~/monodev/monodevelop $ svn update
+U    ChangeLog
+U    Core/src/MonoDevelop.Projects/MonoDevelop.Projects/ProjectService.cs
+U    po/ChangeLog
+Updated to revision 75274.
+kevin at gnudental1 ~/monodev/monodevelop $ find . -name "*.cs" -exec grep
+TabControl {} \;
+                private Crownwood.Magic.Controls.TabControl tabControl1;
+                        this.tabControl1 = new
+                        this.tabControl1.HideTabsMode =
+3) When a patch commenting out the line in question is applied (see
+following comment where this patch file will be attached), this exception
+goes away (although not surprisingly, is replaced by the following
+unhandled exception:
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at OpenDental.ContrChart.InitializeComponent () [0x00000] 
+  at OpenDental.ContrChart..ctor () [0x00000] 
+  at (wrapper remoting-invoke-with-check) OpenDental.ContrChart:.ctor ()
+  at OpenDental.FormOpenDental.InitializeComponent () [0x00000] 
+  at OpenDental.FormOpenDental..ctor () [0x00000] 
+  at (wrapper remoting-invoke-with-check)
+OpenDental.FormOpenDental:.ctor ()
+  at OpenDental.FormOpenDental.Main () [0x00000] 
+4) Tested with numerous svn revisions of mono/mcs/libgdiplus over the
+course of time between 28 March and 2 April, but most recently with
+revision 75274.
+kevin at gnudental1 ~ $ emerge --info
+Portage (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0,
+2.6.19-gentoo-r5-kf1 i686)
+System uname: 2.6.19-gentoo-r5-kf1 i686 Intel(R) Celeron(R) CPU 2.53GHz
+Gentoo Base System release 1.12.9
+Timestamp of tree: Sun, 25 Mar 2007 18:50:01 +0000
+dev-java/java-config: 1.3.7, 2.0.31
+dev-lang/python:     2.4.3-r4
+dev-python/pycrypto: 2.0.1-r5
+sys-apps/sandbox:    1.2.17
+sys-devel/autoconf:  2.13, 2.61
+sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
+sys-devel/binutils:  2.16.1-r3
+sys-devel/gcc-config: 1.3.14
+sys-devel/libtool:   1.5.22
+virtual/os-headers:  2.6.17-r2
+CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer
+CONFIG_PROTECT="/etc /usr/share/X11/xkb"
+CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
+/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
+CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer
+FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms
+http://mirrors.acm.cs.rpi.edu/gentoo/ "
+PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
+--compress --force --whole-file --delete --delete-after --stats
+--timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages
+USE="X alsa apache2 bash-completion berkdb bitmap-fonts bluetooth bonobo
+boo bzip2 cairo cddb cdparanoia cdr clamav cli cracklib crypt cups curl
+dbus doc dri dvd dvdr eds emacs emboss encode esd examples exif fam fortran
+gb gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv ipv6
+isdnlog java jbig jpeg jpeg2k ldap libg++ mad midi mikmod mp3 mpeg mule
+multiuser mysql ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png
+postgres ppds pppd pygrub python qt3 qt4 quicktime readline reflection rle
+samba sasl scanner screen sdl session soap speex spell spl ssl svg svga
+sysfs sysvipc tcl tcpd tetex theora tidy tiff tk truetype truetype-fonts
+type1-fonts unicode usb vim-syntax vnc vorbis wddx win32codecs wmf x86
+xface xml xorg xpm xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp
+atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938
+es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio
+via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix
+dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear
+meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
+INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad
+cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
+USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev
+glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage
+siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"

More information about the mono-bugs mailing list