[grisbi-bugs] [Grisbi-0.6.0 0000667]: L'export d'un etat abouti à un crash de Grisbi

bugtracker at grisbi.org bugtracker at grisbi.org
Tue Dec 22 12:23:12 CET 2009


The following issue has been REOPENED. 
====================================================================== 
http://grisbi.tuxfamily.org/mantis/view.php?id=667 
====================================================================== 
Reported By:                JP Joubert
Assigned To:                guneeyoufix
====================================================================== 
Project:                    Grisbi-0.6.0
Issue ID:                   667
Category:                   Main
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Plateforme:                 Windows 
OS:                         Windows 
Version OS:                 Window Vista edition familiale basique 
Unstable Impact:            Yes 
Version GTK:                 
====================================================================== 
Date Submitted:             10-07-2009 14:09 UTC
Last Modified:              12-22-2009 11:23 UTC
====================================================================== 
Summary:                    L'export d'un etat abouti à un crash de Grisbi
Description: 
La tentative d'exportation d'un etat abouti systématiquement à un crash de
Grisbi

Version 6.0 Beta 1 téléchargée sur le site : grisbi-0.6b1-msvc9.zip 
====================================================================== 

---------------------------------------------------------------------- 
 guneeyoufix - 10-07-09 22:24  
---------------------------------------------------------------------- 
This is caused by any call to fprintf during the generation of the file.

libintl.h redirects (preprocessor directive) the fprintf call to
libintl_fprintf.
[Edit] And libintl_fprintf seems buggy (MS VC++ Express says
    Exception non gérée à 0x772e68df dans grisbi.exe : 0xC0000005:
Violation
    d'accès lors de la lecture de l'emplacement 0x20202028.
when libintl_fprintf is called)

So it seems that this problem is again related to the application not
being built with localisation.

[Edit] A quick and dirty fix for this would be to add the "#undef fprintf"
directive to all the files that use the fprintf function for the export of
reports.

 

---------------------------------------------------------------------- 
 guneeyoufix - 10-10-09 16:36  
---------------------------------------------------------------------- 
Avec les variables d'environnement correctement définies, la localisation
fonctionne sans problèmes, donc il semble que le problème est bien dû à
libintl_fprintf.

En ajoutant, 
    #ifdef _WIN32
	#undef fprintf
    #endif
après les include dans etats_html.c et etats_latex.c, les exportations en
LaTeX et HTML fonctionnent sous Windows.

L'export en Postscript n'est pas possible avec MiKTeX à cause de
paquetages manquants dans les dépôts MiKTeX.

L'export en CVS n'a pas l'air implémenté. << à faire

 

---------------------------------------------------------------------- 
 pbiava - 10-10-09 17:37  
---------------------------------------------------------------------- 
les export en csv fonctionnent sous linux. Ce doit juste être un problème
de détail. 

---------------------------------------------------------------------- 
 JP Joubert - 11-14-09 22:06  
---------------------------------------------------------------------- 
Test beta 3 :
Export  HTML : OK
Export  egsb : OK
Export  Latex : OK
Export  Postcript : Message d'erreur "impossible d'ouvrir le fichier
gsbpt53730.tex permission denied"
Export  CSV  : Plantage

Jean Pierre 

---------------------------------------------------------------------- 
 guneeyoufix - 11-14-09 22:14  
---------------------------------------------------------------------- 
Pour l'état en Postscript, à moins d'avoir une distribution LaTeX sur sa
machine, avec en plus quelques paquetages supplémentaires non disponibles
sur les dépôts, il faut oublier.

Pour l'état en CSV, il doit se passer quelque chose sous Windows qui fait
que l'export ne se fait pas bien, j'y jetterai un oeil. 

---------------------------------------------------------------------- 
 guneeyoufix - 11-17-09 19:38  
---------------------------------------------------------------------- 
Trouvé le problème : le fichier source responsable de la génération des
fichiers CSV n'était pas inclu à la compilation. Ce sera réparé dans la
prochaine version. 

---------------------------------------------------------------------- 
 JP Joubert - 12-22-09 11:23  
---------------------------------------------------------------------- 
Bonjour ,
Je viens de tester la version RC1 . Ce bug n'est pas résolu ,
l'exportation en format CSV abouti toujours à un crash 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-07-09 14:09  JP Joubert     New Issue                                    
10-07-09 14:09  JP Joubert     Plateforme                => Linux           
10-07-09 14:09  JP Joubert     OS                        => Autre(Other)    
10-07-09 14:09  JP Joubert     Version OS                => Window Vista edition
familiale basique
10-07-09 14:09  JP Joubert     Unstable Impact           => Yes             
10-07-09 16:36  JP Joubert     Issue Monitored: JP Joubert                    
10-07-09 16:36  JP Joubert     Issue End Monitor: JP Joubert                    
10-07-09 19:51  guneeyoufix    Status                   new => assigned     
10-07-09 19:51  guneeyoufix    Assigned To               => guneeyoufix     
10-07-09 20:00  guneeyoufix    Plateforme               Linux => Windows    
10-07-09 20:00  guneeyoufix    OS                       Autre(Other) => Windows
10-07-09 20:00  guneeyoufix    Additional Information Updated                   

10-07-09 22:11  guneeyoufix    Note Added: 0001191                          
10-07-09 22:11  guneeyoufix    Status                   assigned => confirmed
10-07-09 22:24  guneeyoufix    Note Edited: 0001191                         
10-10-09 16:34  guneeyoufix    Note Added: 0001208                          
10-10-09 16:36  guneeyoufix    Note Edited: 0001208                         
10-10-09 17:37  pbiava         Note Added: 0001209                          
11-14-09 22:06  JP Joubert     Note Added: 0001288                          
11-14-09 22:14  guneeyoufix    Note Added: 0001290                          
11-17-09 19:38  guneeyoufix    Status                   confirmed => resolved
11-17-09 19:38  guneeyoufix    Fixed in Version          => CVS (développement)
11-17-09 19:38  guneeyoufix    Resolution               open => fixed       
11-17-09 19:38  guneeyoufix    Note Added: 0001320                          
12-22-09 11:23  JP Joubert     Status                   resolved => feedback
12-22-09 11:23  JP Joubert     Resolution               fixed => reopened   
12-22-09 11:23  JP Joubert     Note Added: 0001481                          
======================================================================



More information about the bugsreports mailing list