Giter Site home page Giter Site logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
This is not a real bug report, you did not specify what script / example / 
program you run, you did not define what web page you load and you did not 
paste the error message you got when program crashed. Do not post to the issue 
tracker unless you are 100% sure this is a bug, when having doubts use 
cefpyghon group to ask any questions. 

Use cefpython group to ask for help:
https://groups.google.com/group/cefpython?hl=en

Original comment by [email protected] on 4 Jan 2013 at 4:53

  • Changed state: Invalid

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
In cefadvanced.py example there is a global exception handler defined that will 
exit application when javascript error is encountered, the error is logged to 
"error.log" file and displayed in the console (you must run the example using a 
console to see it), to get rid of this behavior you would have to remove "def 
OnUncaughtException()" from ClientHandler class. I will modify cefadvanced 
example in next release so that this exception handler catches errors only for 
the cefadvanced.html page and not for other web pages as this might be 
confusing.

Original comment by [email protected] on 4 Jan 2013 at 5:06

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Thanks for your reply

I tried to change cefwxpanel.py to show any error message, 
but I can't see anything.

I attach the files that I used to reproduce the problem:
- cefwxpanel_sample1.py
- cefwxpanel.py
- prova.html

I changed cefsimple and cefadvanced to open the prova.html and the problem 
doesn't occur

The version of wxpython is 
"wx.version=2.9.4.0 msw (classic)"

Original comment by [email protected] on 7 Jan 2013 at 10:41

Attachments:

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I can't reproduce the problem using your examples.

You have to run scripts using the console mode (not windowed mode) so that you 
see their output (you should also see any errors in debug.log & error.log 
files).

Original comment by [email protected] on 7 Jan 2013 at 4:45

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
However I see a minor problem with cefwxpanel, when I open popup, close it and 
then close main window, the application seems to be still running.

Original comment by [email protected] on 7 Jan 2013 at 4:50

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
There are problems with popups in wxPython, see Issue 46, it is very likely 
related to your problem.

Original comment by [email protected] on 8 Jan 2013 at 4:44

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Hi, 
I changed the cefwxpanel.py adding the instructions in CEFWindow class:
javascriptBindings = cefpython.JavascriptBindings(bindToFrames=False, 
bindToPopups=True)
        self.browser.SetJavascriptBindings(javascriptBindings)
With two rows above, the problem doesn't occurs

I hope that the solution can help someone with the same problem

Original comment by [email protected] on 9 Jan 2013 at 8:42

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I noticed another problem with window.open
If in the webpage there is a link that open a new window with window.open 
javascript function and if I add the property "left=100" in the argument of the 
function, the new page is created but it is in background.
I can see it in the window (operating system) application bar and if I move 
over it with mouse I can see the preview with the Aero functionality of window 
7.

Original comment by [email protected] on 9 Jan 2013 at 10:31

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
You are right about the javascript bindings, they fix the problem with popup, 
I've reproduced it in cefsimple.py example. I started debugging and seems that 
there is some nasty bug in cefpython as I got this message:

  Fatal Python error: deallocating None

  This application has requested the Runtime to terminate it in an unusual way.
  Please contact the application's support team for more information.

Original comment by [email protected] on 9 Jan 2013 at 5:17

  • Changed title: Opening popups causes hang up of the application loop or a crash
  • Changed state: Accepted

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
It was so hard to debug this error as its behavior is random, 
sometimes it hangs up application, the other time it crashes
app, I've found the root of the problem, but it's also a fault
of Cython that it was hard to debug it, I've reported it on
Cython google group:

https://groups.google.com/d/topic/cython-users/PtVEaKIjyuc/discussion

Original comment by [email protected] on 9 Jan 2013 at 7:57

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
This bug will fixed in next release, a temporary solution is to
set javascript bindings for the browser object as mentioned in
comment 7:

    javascriptBindings = cefpython.JavascriptBindings(
            bindToFrames=False, bindToPopups=False)
    browser.SetJavascriptBindings(javascriptBindings)

Regarding comment 8 and "left=100" property for the popup, you 
should create a separate issue for that bug.

Original comment by [email protected] on 9 Jan 2013 at 8:07

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Issue 46 has been merged into this issue.

Original comment by [email protected] on 9 Jan 2013 at 8:10

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Fixed in version v52 that was just released.

Original comment by [email protected] on 14 Mar 2013 at 2:02

  • Changed state: Fixed

from cefpython.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.