Menu

Debugger error

2007-03-20
2013-03-15
  • aurelien.baudet

    aurelien.baudet - 2007-03-20

    I have installed eclipse on linux (redhat), then I installed Pydev plugin. On windows the debugger works well but on linux I have troubles :
    when i launch my project, a message appears in red in the console :
    pydev debugger

    Then it switches to debug perspective and I have the error message many times :
    An internal error occured during: "Retrieving labels".

    And in the Variables view, i can't see the names of variables at the first level but I can see the others levels

    What is the problem ?

    [INFO]
    Eclipse 3.2.2
    PyDev 1.3.0 (installed manually by copying the folder into eclipse folder)
    Python 2.5

    Tahnks for your help

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2007-03-20

      Do you have something in your error log? Can you paste some code where this happens?

       
    • aurelien.baudet

      aurelien.baudet - 2007-03-21

      It happens with every code even with :
      bonjour = "bonjour"
      print bonjour

      The logs :

      !ENTRY org.eclipse.ui 4 0 2007-03-20 17:00:58.494
      !MESSAGE Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
      !STACK 0
      org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
          at org.eclipse.swt.SWT.error(SWT.java:3374)
          at org.eclipse.swt.SWT.error(SWT.java:3297)
          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
          at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3157)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2859)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
          at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
          at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
          at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
          at org.eclipse.core.launcher.Main.run(Main.java:977)
          at org.eclipse.core.launcher.Main.main(Main.java:952)
      Caused by: java.lang.IllegalArgumentException: Argument not valid
          at org.eclipse.swt.SWT.error(SWT.java:3358)
          at org.eclipse.swt.SWT.error(SWT.java:3297)
          at org.eclipse.swt.SWT.error(SWT.java:3268)
          at org.eclipse.swt.graphics.Region.add(Region.java:148)
          at org.eclipse.swt.graphics.Region.add(Region.java:125)
          at org.eclipse.ui.internal.RectangleAnimation.setCurrentRectangle(RectangleAnimation.java:119)
          at org.eclipse.ui.internal.RectangleAnimation.access$4(RectangleAnimation.java:112)
          at org.eclipse.ui.internal.RectangleAnimation$1.run(RectangleAnimation.java:101)
          at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:155)
          at org.eclipse.ui.internal.UISynchronizer$1.run(UISynchronizer.java:36)
          at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
          ... 20 more

      !ENTRY org.eclipse.ui 4 4 2007-03-20 17:00:58.495
      !MESSAGE Unhandled event loop exception

      !ENTRY org.eclipse.core.jobs 4 2 2007-03-20 17:01:02.033
      !MESSAGE An internal error occurred during: "Retrieving labels".
      !STACK 0
      org.eclipse.swt.SWTException: Unsupported or unrecognized format
          at org.eclipse.swt.SWT.error(SWT.java:3374)
          at org.eclipse.swt.SWT.error(SWT.java:3297)
          at org.eclipse.swt.SWT.error(SWT.java:3268)
          at org.eclipse.swt.internal.image.FileFormat.load(FileFormat.java:82)
          at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:127)
          at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:22)
          at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:328)
          at org.eclipse.jface.resource.URLImageDescriptor.getImageData(URLImageDescriptor.java:57)
          at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:279)
          at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:233)
          at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:211)
          at org.python.pydev.core.bundle.ImageCache.get(ImageCache.java:55)
          at org.python.pydev.debug.model.PyDebugModelPresentation.getImage(PyDebugModelPresentation.java:63)
          at org.eclipse.debug.internal.ui.LazyModelPresentation.getImage(LazyModelPresentation.java:110)
          at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getImage(DelegatingModelPresentation.java:147)
          at org.eclipse.debug.internal.ui.views.launch.DebugElementHelper.getImageDescriptor(DebugElementHelper.java:61)
          at org.eclipse.debug.internal.ui.elements.adapters.AsynchronousDebugLabelAdapter.getImageDescriptors(AsynchronousDebugLabelAdapter.java:86)
          at org.eclipse.debug.internal.ui.viewers.provisional.AsynchronousLabelAdapter.computeLabels(AsynchronousLabelAdapter.java:96)
          at org.eclipse.debug.internal.ui.elements.adapters.AsynchronousDebugLabelAdapter.computeLabels(AsynchronousDebugLabelAdapter.java:66)
          at org.eclipse.debug.internal.ui.viewers.provisional.AsynchronousLabelAdapter$2.run(AsynchronousLabelAdapter.java:51)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

      !ENTRY org.python.pydev 1 1 2007-03-20 17:03:58.602
      !MESSAGE Information about process of adding new interpreter:
      - Opening dialog to request executable (or jar).
      - Chosen interpreter file:'/home/abt/Applications/Python-2.5/python
      - Ok, file is non-null. Getting info on:/home/abt/Applications/Python-2.5/python
      - Beggining task:Getting libs totalWork:100
      - Setting task name:Mounting executable string...
      - Setting task name:Executing:  /home/abt/Applications/Python-2.5/python -u /home/abt/Applications/eclipse/plugins/org.python.pydev_1.3.0/PySrc/interpreterInfo.py
      - Setting task name:Making pythonpath environment... /home/abt/Applications/Python-2.5/python -u /home/abt/Applications/eclipse/plugins/org.python.pydev_1.3.0/PySrc/interpreterInfo.py
      - Setting task name:Making exec... /home/abt/Applications/Python-2.5/python -u /home/abt/Applications/eclipse/plugins/org.python.pydev_1.3.0/PySrc/interpreterInfo.py
      - Setting task name:Reading output...
      - Setting task name:Waiting for process to finish.
      - Success getting the info. Result:/home/abt/Applications/Python-2.5/python

      !ENTRY org.eclipse.core.jobs 4 2 2007-03-20 17:04:01.161
      !MESSAGE An internal error occurred during: "Module resolved: 3 of 4 (reglesCodage.__init__)".
      !STACK 0
      org.python.pydev.ui.NotConfiguredInterpreterException: org.python.pydev.ui.interpreters.PythonInterpreterManager:Interpreter is not properly configured!
      Please go to window->preferences->PyDev->Python Interpreters and configure it.
      If this is not supposed to be a Python project, change the project type on the
      project properties to the project you want (e.g.: Jython project).
          at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreter(AbstractInterpreterManager.java:122)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getSystemModulesManager(ProjectModulesManager.java:182)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagers(ProjectModulesManager.java:360)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagersInvolved(ProjectModulesManager.java:437)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getCompletePythonPath(ProjectModulesManager.java:454)
          at org.python.pydev.plugin.nature.PythonPathNature.getCompleteProjectPythonPath(PythonPathNature.java:69)
          at org.python.pydev.plugin.nature.PythonNature$2.run(PythonNature.java:378)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

      !ENTRY org.eclipse.core.jobs 4 2 2007-03-20 17:04:01.164
      !MESSAGE An internal error occurred during: "Module resolved: 0 of 1 (test)".
      !STACK 0
      org.python.pydev.ui.NotConfiguredInterpreterException: org.python.pydev.ui.interpreters.PythonInterpreterManager:Interpreter is not properly configured!
      Please go to window->preferences->PyDev->Python Interpreters and configure it.
      If this is not supposed to be a Python project, change the project type on the
      project properties to the project you want (e.g.: Jython project).
          at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreter(AbstractInterpreterManager.java:122)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getSystemModulesManager(ProjectModulesManager.java:182)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagers(ProjectModulesManager.java:360)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagersInvolved(ProjectModulesManager.java:437)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getCompletePythonPath(ProjectModulesManager.java:454)
          at org.python.pydev.plugin.nature.PythonPathNature.getCompleteProjectPythonPath(PythonPathNature.java:69)
          at org.python.pydev.plugin.nature.PythonNature$2.run(PythonNature.java:378)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

      !ENTRY org.eclipse.core.jobs 4 2 2007-03-20 17:04:01.172
      !MESSAGE An internal error occurred during: "Module resolved: 0 of 1 (testPyXML)".
      !STACK 0
      org.python.pydev.ui.NotConfiguredInterpreterException: org.python.pydev.ui.interpreters.PythonInterpreterManager:Interpreter is not properly configured!
      Please go to window->preferences->PyDev->Python Interpreters and configure it.
      If this is not supposed to be a Python project, change the project type on the
      project properties to the project you want (e.g.: Jython project).
          at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreter(AbstractInterpreterManager.java:122)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getSystemModulesManager(ProjectModulesManager.java:182)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagers(ProjectModulesManager.java:360)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagersInvolved(ProjectModulesManager.java:437)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getCompletePythonPath(ProjectModulesManager.java:454)
          at org.python.pydev.plugin.nature.PythonPathNature.getCompleteProjectPythonPath(PythonPathNature.java:69)
          at org.python.pydev.plugin.nature.PythonNature$2.run(PythonNature.java:378)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

      !ENTRY org.eclipse.core.jobs 4 2 2007-03-20 17:04:00.047
      !MESSAGE An internal error occurred during: "Module resolved: 67 of 68 (Rapport.RapportMessageWarning)".
      !STACK 0
      org.python.pydev.ui.NotConfiguredInterpreterException: org.python.pydev.ui.interpreters.PythonInterpreterManager:Interpreter is not properly configured!
      Please go to window->preferences->PyDev->Python Interpreters and configure it.
      If this is not supposed to be a Python project, change the project type on the
      project properties to the project you want (e.g.: Jython project).
          at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreter(AbstractInterpreterManager.java:122)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getSystemModulesManager(ProjectModulesManager.java:182)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagers(ProjectModulesManager.java:360)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagersInvolved(ProjectModulesManager.java:437)
          at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getCompletePythonPath(ProjectModulesManager.java:454)
          at org.python.pydev.plugin.nature.PythonPathNature.getCompleteProjectPythonPath(PythonPathNature.java:69)
          at org.python.pydev.plugin.nature.PythonNature$2.run(PythonNature.java:378)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

      !ENTRY org.eclipse.ui 4 4 2007-03-20 17:04:01.414
      !MESSAGE Unhandled event loop exception

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2007-03-21

        Wow, really strange... it appears to be failing when trying to open a .gif image (so, it might be that it is somehow corrupdet)... I think it might be related to the way you installed pydev... try erasing pydev (from eclipse/features and eclipse/plugins) and getting it from the eclipse update manager: http://pydev.sourceforge.net/download.html

        Cheers,

        Fabio

         
        • David Whitmore

          David Whitmore - 2007-04-17

          Hi, I've been trying Pydev recently and come up against the same issue.

          First off, thanks for the workaround - it fixed the problem nicely.

          For what it's worth, this my environment is:
          Eclipse 3.2 on Windows XP
          Pydev 1.3.1

          I wonder if there was maybe a problem with the Windows installer for Python 2.4.4, but I can't confirm that yet?

          I only stumbled upon this problem when upgrading the version of Python running on my system:
          Originally I installed 2.4.3. 
          Then I upgraded to 2.5. 
          Then, for compatibility reasons, had to downgrade to 2.4.4. 

          Everything seemed to be fine until the downgrade to 2.4.4.