ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pyxpcom
pyxpcom
[pyxpcom] pydom app crashes systematicaly
by Cyril Giraudon other posts by this author
Aug 25 2007 5:32AM messages near this date
view in the new Beta List Site
Re: [pyxpcom] pyxcom.xpi | Re: [pyxpcom] pydom app crashes systematicaly
Hi,

For the first time I've tried pydom.
I choosed the xulrunner trunk :
xulrunner --gre-version
1.9a8pre
and compiled it under linux madriva 2007.1
and Python 2.4.4 (#1, Aug 20 2007, 21:48:28)
[GCC 4.1.2 20070302 (prerelease) (4.1.2-1mdv2007.1)] on linux2


The compilation was OK ( with the little problem of BUILD_ID variable).

I tried a simple pyxpcom application : OK.

But when I try pydom, the application crashed after a few seconds.

I 've a few configuration but It crashed each time.

For example :
The terminal shows the "in init..." message and crash of the app.

I don't understand.

Any idea ?

Thanks a lot

Cyril.





### XUL FILE
<?xml version="1.0"?> 
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 

<window
    id="mytest-window"
    title="My Test"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    script-type="application/x-python"
   onload="init()"> 

  <button label="Hello"/> 
</window> 

# PYTHON FILE
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import xpcom
from xpcom import components
import nsdom

def init():
  print "in init..."

### ldd libpyxpcom.so
ldd libpyxpcom.so
        linux-gate.so.1 =>   (0xbfffe000)
        libpthread.so.0 =>  /lib/i686/libpthread.so.0 (0xb7eb7000)
        libxpcom.so (0xb7eb3000)
        libxul.so (0xb6cea000)
        libplds4.so (0xb6ce7000)
        libplc4.so (0xb6ce3000)
        libnspr4.so (0xb6caa000)
        libdl.so.2 =>  /lib/libdl.so.2 (0xb6ca6000)
        libpython2.4.so.1.0 =>  /home/cyril/local/lib/libpython2.4.so.1.0
(0xb6b98000)
        libutil.so.1 =>  /lib/libutil.so.1 (0xb6b94000)
        libstdc++.so.6 =>  /usr/lib/libstdc++.so.6 (0xb6aad000)
        libm.so.6 =>  /lib/i686/libm.so.6 (0xb6a85000)
        libgcc_s.so.1 =>  /lib/libgcc_s.so.1 (0xb6a7a000)
        libc.so.6 =>  /lib/i686/libc.so.6 (0xb694b000)
        /lib/ld-linux.so.2 (0x80000000)
        libsqlite3.so (0xb68e5000)
        libmozjs.so (0xb6814000)
        libsmime3.so (0xb67f1000)
        libssl3.so (0xb67c7000)
        libnss3.so (0xb6655000)
        libsoftokn3.so (0xb6619000)
        libpangoxft-1.0.so.0 =>  /usr/lib/libpangoxft-1.0.so.0 (0xb6612000)
        libpangoft2-1.0.so.0 =>  /usr/lib/libpangoft2-1.0.so.0 (0xb65e2000)
        libpango-1.0.so.0 =>  /usr/lib/libpango-1.0.so.0 (0xb659f000)
        libgobject-2.0.so.0 =>  /usr/lib/libgobject-2.0.so.0 (0xb6560000)
        libgmodule-2.0.so.0 =>  /usr/lib/libgmodule-2.0.so.0 (0xb655d000)
        libglib-2.0.so.0 =>  /usr/lib/libglib-2.0.so.0 (0xb64bf000)
        libXrender.so.1 =>  /usr/lib/libXrender.so.1 (0xb64b6000)
        libfreetype.so.6 =>  /usr/lib/libfreetype.so.6 (0xb643c000)
        libfontconfig.so.1 =>  /usr/lib/libfontconfig.so.1 (0xb640c000)
        libX11.so.6 =>  /usr/lib/libX11.so.6 (0xb6309000)
        libXft.so.2 =>  /usr/lib/libXft.so.2 (0xb62f5000)
        libz.so.1 =>  /lib/libz.so.1 (0xb62e2000)
        libgtk-x11-2.0.so.0 =>  /usr/lib/libgtk-x11-2.0.so.0 (0xb5f3d000)
        libatk-1.0.so.0 =>  /usr/lib/libatk-1.0.so.0 (0xb5f20000)
        libgdk-x11-2.0.so.0 =>  /usr/lib/libgdk-x11-2.0.so.0 (0xb5e90000)
        libgdk_pixbuf-2.0.so.0 =>  /usr/lib/libgdk_pixbuf-2.0.so.0
(0xb5e78000)
        libpangocairo-1.0.so.0 =>  /usr/lib/libpangocairo-1.0.so.0
(0xb5e6f000)
        libcairo.so.2 =>  /usr/lib/libcairo.so.2 (0xb5df0000)
        libXt.so.6 =>  /usr/lib/libXt.so.6 (0xb5d99000)
        libgthread-2.0.so.0 =>  /usr/lib/libgthread-2.0.so.0 (0xb5d94000)
        libxml2.so.2 =>  /usr/lib/libxml2.so.2 (0xb5c61000)
        libXau.so.6 =>  /usr/lib/libXau.so.6 (0xb5c5e000)
        libXdmcp.so.6 =>  /usr/lib/libXdmcp.so.6 (0xb5c58000)
        libXfixes.so.3 =>  /usr/lib/libXfixes.so.3 (0xb5c52000)
        libXext.so.6 =>  /usr/lib/libXext.so.6 (0xb5c43000)
        libXinerama.so.1 =>  /usr/lib/libXinerama.so.1 (0xb5c40000)
        libXi.so.6 =>  /usr/lib/libXi.so.6 (0xb5c38000)
        libXrandr.so.2 =>  /usr/lib/libXrandr.so.2 (0xb5c31000)
        libXcursor.so.1 =>  /usr/lib/libXcursor.so.1 (0xb5c26000)
        libpng12.so.0 =>  /usr/lib/libpng12.so.0 (0xb5c00000)
        libSM.so.6 =>  /usr/lib/libSM.so.6 (0xb5bf7000)
        libICE.so.6 =>  /usr/lib/libICE.so.6 (0xb5bde000)
        librt.so.1 =>  /lib/i686/librt.so.1 (0xb5bd5000)
Thread:
Cyril Giraudon
Cyril Giraudon
Cyril Giraudon

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved