<div class="gmail_quote">On Sat, Apr 11, 2009 at 10:00 AM, Detlev Offenbach <span dir="ltr"><<a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Samstag, 11. April 2009, Darren Dale wrote:<br>
> On Sat, Apr 11, 2009 at 9:40 AM, Detlev Offenbach<br>
><br>
> <<a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a>>wrote:<br>
> > On Samstag, 11. April 2009, Darren Dale wrote:<br>
> > > Hello,<br>
> > ><br>
> > > I have been trying to keep up with the sip/pyqt/qscintilla snapshots<br>
> > > (installed on up-to-date kubuntu jaunty prerelease). There have been a<br>
> ><br>
> > few<br>
> ><br>
> > > issues trying to run eric in this environment, but it looks like they<br>
> ><br>
> > have<br>
> ><br>
> > > been mostly addressed in subsequent snapshots from riverbank.<br>
> > ><br>
> > > There is one issue I am seeing this morning with the latest snapshots<br>
> ><br>
> > that<br>
> ><br>
> > > I am not sure how to investigate. If I start eric from the command<br>
> ><br>
> > prompt,<br>
> ><br>
> > > it launches successfully. If I make an entry in the kde start menu and<br>
> > > launch eric from there, it crashes. I can choose "Run in terminal" as<br>
> > > an option for the menu entry, and the output is simply "Warning:<br>
> > > Program '/usr/local/bin/eric4' crashed." I thought I could get more<br>
> > > information about the crash if I edited the menu command to be "eric4<br>
> > > --debug", but when I do so, eric doesnt crash! I get this debugging<br>
> > > output during startup:<br>
> > ><br>
> > > DEBUG:root:Importing packages...<br>
> > > DEBUG:root:Generating Main Window...<br>
> > > DEBUG:root:Initializing Plugin Manager...<br>
> > > DEBUG:root:Config Dir: None; exists: False<br>
> > > DEBUG:root:Config Dir: None; exists: False<br>
> > > DEBUG:root:Generating Main User Interface...<br>
> > > DEBUG:root:Setting up connections...<br>
> > > DEBUG:root:Initializing Tools...<br>
> > > DEBUG:root:Registering Objects...<br>
> > > DEBUG:root:Initializing Actions...<br>
> > > DEBUG:root:Initializing Menus...<br>
> > > DEBUG:root:Initializing Toolbars...<br>
> > > DEBUG:root:Initializing Statusbar...<br>
> > > DEBUG:root:Activating Plugins...<br>
> > > DEBUG:root:Restoring Toolbarmanager...<br>
> > > DEBUG:root:Config Dir: None; exists: False<br>
> > > DEBUG:root:Config Dir: None; exists: False<br>
> > > DEBUG:root:Config Dir: None; exists: False<br>
> > > DEBUG:root:Config Dir: None; exists: False<br>
> > ><br>
> > > Can anyone suggest a next step?<br>
> > ><br>
> > > Thanks,<br>
> > > Darren<br>
> ><br>
> > You could try compile sip/pyqt/qscintilla with debugging symbols and<br>
> > start eric4 in a debugger like kdbg. If it crashes, you will see in which<br>
> > file it fails.<br>
</div></div>> > <<a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a>><br>
<div class="im">><br>
> I dont think it is possible to start eric4 with kdbg or gdb, because eric4<br>
> is not an executable file.<br>
<br>
</div>You can. Just load python as the program to debug and give it eric4.py as the<br>
command line. I did it this way, when PyQt4 was it's infancy.<br>
<div><div></div><div class="h5"><br>
><br>
> I just noticed a different error though. I started eric4 with --debug,<br>
> tried to configure some preferences, and eric4 crashed with:<br>
><br>
> Original exception was:<br>
> Traceback (most recent call last):<br>
> File<br>
> "/usr/lib/python2.6/dist-packages/eric4/Project/ProjectBrowserModel.py",<br>
> line 272, in data<br>
> return BrowserModel.data(self, index,<br>
> role)<br>
> File "/usr/lib/python2.6/dist-packages/eric4/UI/BrowserModel.py", line<br>
> 77, in data<br>
> if role ==<br>
> Qt.DisplayRole:<br>
><br>
> RuntimeError: maximum recursion depth exceeded in<br>
> cmp<br>
> Error in<br>
> sys.excepthook:<br>
><br>
> Traceback (most recent call<br>
> last):<br>
> File "/usr/lib/python2.6/dist-packages/eric4/eric4.py", line 111, in<br>
> excepthook<br>
> logFile = os.path.join(unicode(Utilities.getConfigDir()),<br>
> "eric4_error.log")<br>
> File "/usr/lib/python2.6/dist-packages/eric4/Utilities/__init__.py", line<br>
> 978, in getConfigDir<br>
> (configDir, (configDir is not None) and<br>
> os.path.exists(configDir)))<br>
> File "/usr/lib/python2.6/logging/__init__.py", line 1459, in<br>
> debug<br>
> root.debug(*((msg,)+args),<br>
> **kwargs)<br>
> File "/usr/lib/python2.6/logging/__init__.py", line 1017, in<br>
> debug<br>
> if<br>
> self.isEnabledFor(DEBUG):<br>
><br>
> RuntimeError: maximum recursion depth exceeded<br>
><br>
> Darren<br>
<br>
</div></div>Just delete the first line of Utilities.getConfigDir(), which is the logging<br>
line.</blockquote><div><br>Thanks Detlev. I'm running the svn checkout, updated just now, on a system with no ~.eric4/ or .config/Eric4/, and that change brings me to a different error:<br><br>Original exception was:<br>
Traceback (most recent call last):<br> File "/home/darren/Projects/eric4/UI/BrowserModel.py", line 113, in headerData<br> if orientation == Qt.Horizontal and role == Qt.DisplayRole:<br>RuntimeError: maximum recursion depth exceeded in cmp<br>
Error in sys.excepthook:<br>Traceback (most recent call last):<br> File "./eric4.py", line 111, in excepthook<br> logFile = os.path.join(unicode(Utilities.getConfigDir()), "eric4_error.log")<br> File "/home/darren/Projects/eric4/Utilities/__init__.py", line 980, in getConfigDir<br>
if sys.platform == "win32":<br>RuntimeError: maximum recursion depth exceeded in cmp<br><br>Darren<br></div></div>