Comments (13)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Issue 46 has been merged into this issue.
Original comment by [email protected]
on 9 Jan 2013 at 8:10
from cefpython.
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)
- Mouse context menu and <select> control crash app on Mac HOT 3
- Create build_all.bat and build_all.sh scripts to build multiple binary distributions in just one step HOT 1
- Cookies not flushed to disk when closing app immediately (wxpython.py) HOT 7
- Provide a single same wxpython.py example for all plattforms (Win, Linux, Mac)
- Create a simple wxPython example (wxsimple.py)
- Copy (Cmd+C) and Paste (Cmd+V) do not work in text controls on Mac HOT 2
- Mac examples exit with error code 255 HOT 3
- The default en-US locale pak file fails to load on Mac HOT 3
- Examples crash on Mac when app doesn't have permission to write to the debug.log file
- Issues with size_t => int conversions when using cef_values.h API on Win x64 platform HOT 2
- Python Wheels - DESCRIPTION.rst UNKNOWN
- Embed __version__ also in the cython generated module (cefpython_py27.pyd) HOT 1
- Create unified key mappings for all platforms HOT 8
- Add Browser.IsDevTools() HOT 1
- Expose CreateBrowser() with a callback argument that will be executed after browser was created
- The popup window and parent window can't script each other in the wxpython.py example HOT 3
- Create "chrome31" branch before updating to a newer CEF branch
- wxpython-response.py example: final url is wrong when doing redirects HOT 7
- Close the browser BEFORE the page is full loaded CEF Crashe HOT 1
- Warnings on OS X: Internals of CFAllocator not known HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cefpython.