IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Interfaces Graphiques Discussion :

Bugs de Matlab Guide


Sujet :

Interfaces Graphiques

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Étudiant
    Inscrit en
    Mars 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France, Côte d'Or (Bourgogne)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2009
    Messages : 105
    Par défaut Bugs de Matlab Guide
    Bonjour,

    c'est la deuxième fois que ça m'arrive, un beug de Guide.
    Après avoir créé mon interface je ne peux plus l'ouvrir , même après avoir redémarrer mon pc le beug insiste, je ne veux pas recommencer la création de toute l'interface (tags,callback,...) car ça serait vraiment pénible sans parler du temps à y passer

    voila le message affiché après exécution de mon programme corréspondant:


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    ??? Error using ==> hgload at 53
    invalid Figure file format
    
    Error in ==> openfig at 72
        [fig, savedvisible] = hgload(filename, struct('Visible','off'));
    
    Error in ==> gui_mainfcn>local_openfig at 286
        gui_hFigure = openfig(name, singleton, visible);
    
    Error in ==> gui_mainfcn at 159
            gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
    
    Error in ==> classification_automatique at 42
        gui_mainfcn(gui_State, varargin{:});

    Le message en essayant de l'ouvrir avec GUIDE:



    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    	at com.mathworks.toolbox.matlab.guide.LayoutArea.pointsAreClose(LayoutArea.java:2437)
    	at com.mathworks.toolbox.matlab.guide.LayoutArea.isMouseUpPopupTrigger(LayoutArea.java:2505)
    	at com.mathworks.toolbox.matlab.guide.LayoutArea.mouseReleased(LayoutArea.java:2645)
    	at java.awt.Component.processMouseEvent(Unknown Source)
    	at com.mathworks.mwt.MWContainer.processMouseEvent(MWContainer.java:561)
    	at java.awt.Component.processEvent(Unknown Source)
    	at java.awt.Container.processEvent(Unknown Source)
    	at java.awt.Component.dispatchEventImpl(Unknown Source)
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
    	at java.awt.Component.dispatchEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
    	at java.awt.Window.dispatchEventImpl(Unknown Source)
    	at java.awt.Component.dispatchEvent(Unknown Source)
    	at java.awt.EventQueue.dispatchEvent(Unknown Source)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.run(Unknown Source)

    Le message en essayant d'ouvrir la figure(.fig) à partir de Matlab


  2. #2
    Expert confirmé
    Avatar de Caro-Line
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    9 458
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 9 458
    Par défaut
    Si tu as un compte sur le site de The Mathworks (tu peux normalement t'en créé un mais je ne me souviens plus comment on fais ), il semble que c'est un bug référencé :
    http://www.mathworks.com/support/bugreports/452282

    Sinon je te retranscris partiellement le problème :
    Summary

    System error resulting in a corrupted FIG-file when building a GUI in GUIDE
    Description

    When building GUIs in GUIDE, saving the GUI or performing edits in GUIDE can generate an exception that displays in a MATLAB System Error dialog, and result in a corrupted GUI FIG-file file.
    The corrupted GUI FIG-file cannot be restored, causing the GUI to become unusable; if you attempt to open the GUI, the following error might display:
    ??? Error using ==> hgload at 53 invalid Figure file format
    Workaround

    To work around this issue, replace the version of the guidemfile.m function in your current R2008a installation with the updated version attached, as follows:

    1. Exit MATLAB.
    2. Make a backup copy of the following file. matlabroot\toolbox\matlab\guide\guidemfile.m
      matlabroot represents the name of your MATLAB installation directory, as returned by the matlabroot function.
      For example, rename the existing file, adding "old" to the file extension, guidemfile.m.OLD.
    3. Download the attached file, guidemfile.m, storing it the directory specified in the previous step.
    4. Restart MATLAB.
    5. Run the rehash toolbox command at the MATLAB prompt.
    Si tu ne peux y accéder dis-le moi je chargerai le fichier nécessaire et le mettrai ici.

  3. #3
    Membre confirmé
    Profil pro
    Étudiant
    Inscrit en
    Mars 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France, Côte d'Or (Bourgogne)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2009
    Messages : 105
    Par défaut
    Citation Envoyé par Caro-Line Voir le message
    Si tu as un compte sur le site de The Mathworks (tu peux normalement t'en créé un mais je ne me souviens plus comment on fais ), il semble que c'est un bug référencé :
    http://www.mathworks.com/support/bugreports/452282

    Sinon je te retranscris partiellement le problème :
    Si tu ne peux y accéder dis-le moi je chargerai le fichier nécessaire et le mettrai ici.
    salut caro-line, pour le fichier nécessaire c'est ok je l'ai téléchargé(et moi même j'ai oublié comment j'avais fait)

    j'ai fait les étapes décrites au deçus sauf la dérnière je ne vois pas ce qu'ils appèllent rehash toolbox

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Run the rehash toolbox command at the MATLAB prompt.

  4. #4
    Expert confirmé
    Avatar de Caro-Line
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    9 458
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 9 458
    Par défaut
    Des fois le plus évident est vraiment ce qu'il faut faire

    En ligne de commande :

  5. #5
    Membre confirmé
    Profil pro
    Étudiant
    Inscrit en
    Mars 2009
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France, Côte d'Or (Bourgogne)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2009
    Messages : 105
    Par défaut
    toujours le même problème

  6. #6
    Expert confirmé
    Avatar de Caro-Line
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    9 458
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 9 458
    Par défaut
    Aïe, là je n'ai plus d'idée.
    Il faudrait peut-être essayer de contacter le support de The Mathworks compte tenu qu'il s'agit d'un bug connu...

Discussions similaires

  1. Passage de variable d'une interface a une autre guide matlab
    Par nadou114 dans le forum Interfaces Graphiques
    Réponses: 1
    Dernier message: 13/05/2010, 23h33
  2. Integration du webcam dans guide -matlab gui
    Par mihaispr dans le forum MATLAB
    Réponses: 1
    Dernier message: 06/08/2009, 14h25
  3. deux fichiers :l'un est créé par matlab, l'autre vient du GUIDE
    Par pompier21 dans le forum Interfaces Graphiques
    Réponses: 15
    Dernier message: 01/10/2008, 15h50
  4. [Débutant] aide guide matlab
    Par m2ise dans le forum Interfaces Graphiques
    Réponses: 2
    Dernier message: 11/01/2008, 11h45

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo