buggnubg - Bugs: bug #26096, Crashes when saving existing...

 
 

bug #26096: Crashes when saving existing modified sgf file (again)

Submitted by:  Alain Redlinger <aredlinger>
Submitted on:  Mon 06 Apr 2009 10:38:53 AM UTC  
 
Originator Name: Alain RedlingerItem Group: Crash error
Category: Loading and saving of SGF filesRelease: 0.90-devel
Privacy: PublicOperating System: Windows XP
OS Type: NoneProcessor Type: None
Severity: 3 - NormalOpen/Closed: Closed
Assigned to: NonePriority: 5 - Normal
Status: Works For Me

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 03 Jun 2009 01:04:12 PM UTC, comment #4:

This comment to tell you that the crashing error does not occur anymore (most members in my backgammon club use gnubg and several have experiences the same problem I reported error).

I am now using the latest version (0.90-mingw 20090518) but I am pretty sure that the error already did not occur with the previous version after I made a Windows Update !
I had not updated Windows on my machine between January 6th and May 1rst.
The only item in the May 1rst update that could be relevant is:
Microsoft .NET Framework 3.5 Service Pack 1 et mise à jour pour la gamme. NET Framework 3.5 x86 (KB951847).
Sorry for the inconvenience.

Alain Redlinger <aredlinger>
Wed 15 Apr 2009 09:50:13 AM UTC, comment #3:

I have these, which come with GnuBG:

F:\gnubg\
libgtk-win32-2.0-0.dll
libgtkglext-win32-1.0-0.dll
libglib-2.0-0.dll

Nothing on “C:” nor on any other (logical) drive.

In the attached file (Search for glib.JPG) are the search results for “glib.dll”. I am not familiar with GTK, but I don’t think any of the listed file could be related to GTK, with the exception of "libglib-2.0-0.dll", of course.

(file #17919)

Alain Redlinger <aredlinger>
Tue 14 Apr 2009 08:53:46 PM UTC, comment #2:

Could you please check your computer for different versions of gtk/glib by searching for the location of gtk.dll and glib.dll on your hard drive. I cannot reproduce the problem, and I believe it is possible that the executable is linked to wrong versions of the dll's.

Christian Anthon <c_anthon>
Project Administrator
Tue 07 Apr 2009 11:49:31 AM UTC, comment #1:

Version GNU Backgammon 0.90-mingw 20090403 on XP/SP3

Now, even worse: when the dialog box opens to warn that the given file name is that of an already existing file, and asking for confirmation that the file must be saved, if I press the cancel button, Gnugb also crashes, automatically launching Visual Studio (installed on my machine for other purposes). VS then says:

Exception non gérée à 0x7c921669 [unhandled exception] dans gnubg.exe : 0xC0000005: Violation d'accès lors de la lecture de l'emplacement [acces violation while reading] 0x00000001.

May I add a few specifics of my installation, which might be of relevance?
The hard drive has been divided in 5 partitions i.e. 5 logical disks.
Gnugb is on “F:”, in “F:\gnugb” not on “C:”
The “My documents” folder (in fact: Mes documents) is the hole drive “G:”

This error is not transient, but always happens when saving an “sgf” file in place of an existing file.
I have a feeling it might be related to the ways file paths are handled in the code.

Variant: for further testing purposes, I then tried to open an “sgf” file in one folder (e.g. “G:\BG\Positions\Magriel”, modify it, and saved it in the “F:\gnugb” folder, with the name of a file that already exists there, I am **not** asked for confirmation (OK/Cancel dialog box), Gnugb crashes immediately! Then VS says:
Exception non gérée à 0x7c938beb dans gnubg.exe : 0xC0000005: Violation d'accès lors de la lecture de l'emplacement 0x65746961.
This is slightly different from the previous error signal.

Sorry about being long, I am trying to build a position database, but have to face these little bugs.

Alain Redlinger <aredlinger>
Mon 06 Apr 2009 10:38:53 AM UTC, original submission:

I repost, because the former bug report seems to have been closed.
I can hardly understand what’s going on!
When I installed the newer: Version GNU Backgammon 0.90-mingw 20090403 on XP/SP3, I made a test which was ok.
But now the same old problem occurs again.

Gnugb crashes when attempting to save a sgf file after the position has been modified.

More precisions. There are to ways of crashing.

1) In the save dialog box, I click on the file in the list window. Then a confirmation dialog box opens (file already exists …). And gnugb crashes after a positive response, sending the following error message: Glib ERROR**: gmeme.c:175 Failed to allocate 176 bytes. Aborting.
See attached image file.

2) When I simply confirm the saving by clicking the "save" button, a new instance of Visual Studio 2005 is automatically launched and says:
Exception non gérée à 0x7c921109 dans gnubg.exe : 0xC0000005: Violation d'accès lors de la lecture de l'emplacement 0x0b43342d.

NB. Now a must mention a minor interface anomaly which could very well be related to this bug. It concerns the directory path of the position file and occurs when gnugb.exe is launched by double-clicking a sgf file. If the file is modified and the save button is clicked, the directory path of the sgf file is not remembered and the file shall be saved to the /gnugb/ installation directory by default. In this case, no error occurs, because no file is replaced. I think this is what happened, when I said that the bug no longer occurred in the most recent build. But after selecting the correct directory in the save-to-file dialog box, the bug always occurs. And we have the two variants in the way of crashing which I described above.

Alain Redlinger <aredlinger>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17919:  Search for glib.JPG added by aredlinger (82KiB - image/pjpeg)
file #17875:  ErrorSavingFile_3.JPG added by aredlinger (166KiB - image/pjpeg)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by c_anthon (Posted a comment)
  • -unavailable- added by aredlinger (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Dec 2009 01:32:36 PM UTCc_anthonOpen/ClosedOpen=>Closed
      StatusNone=>Works For Me
    Wed 15 Apr 2009 09:50:13 AM UTCaredlingerAttached File-=>Added Search for glib.JPG, #17919
    Mon 06 Apr 2009 10:38:53 AM UTCaredlingerAttached File-=>Added ErrorSavingFile_3.JPG, #17875

    Back to the top


    Powered by Savane 3.1-cleanup1