Comments (2)
Royce Mitchell wrote:
Phoenix is crashing the interpreter, and when I boiled my code down to
the bare minimum I discovered it was an issue where I was catching an
exception and then trying to display it in a MessageDialog before I
had created the wx.App object.Attached is the result of the code simplification.
Here's is the program's output from wxPython-classic:
3.0.2.0 msw (classic)
Traceback (most recent call last):
File "crash_phoenix.py", line 6, in
dlg = wx.MessageDialog ( parent=None, message='boom', caption='Crash',
style=wx.OK|wx.ICON_ERROR )
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx_windows.py", line
3631, in init
/windows/.MessageDialog_swiginit(self,/windows/.new_MessageDialog(/args,
*/kwargs))
wx._core.PyNoAppError: The wx.App object must be created first!However, when run from phoenix, it crashes the python interpreter
Yep, this is a known issue. I haven't yet worked out how to best
implement that check with the new implementation tech. It's on the TODO
list though.
Robin Dunn
Software Craftsman
http://wxPython.org
from phoenix.
Phoenix is now checking for the existence of a wxApp object at appropriate places.
from phoenix.
Related Issues (20)
- Call to wx.aui.AuiNotebook() causes segmentation fault in 4.2.1 on ARM Mac with conda's py 3.10
- Build wxpython on Debian, MX-21, Ubuntu 22.04 failed HOT 12
- Snapshot build(s) have stopped building HOT 7
- Importing wx.media on Windows HOT 5
- Unable to install wxPython on OpenSUSE 15.5 in venv - python-config not found. HOT 7
- PropertyGridManager does not handle the issue of parent property display disorder. HOT 3
- Is it possible to create wheel from actual master branch? HOT 10
- BusyCursor docs are outdated HOT 1
- 4-byte characters (emojis) in StaticText/TextCtrl/Button/ListCtrl/... labels or values cause string truncation HOT 2
- Recent sip related change to build.py breaks building from source on GTK HOT 2
- wx.EVT_ENTER_WINDOW not Triggering on Windows 11, working in Ubuntu & Artix HOT 16
- Bug on RibbonBar RecalculateTabSizes
- A Segmentation fault is caused by wxpython 4.2.1 + python 3.12.1 HOT 1
- "python setup.py bdist_wheel" Error while installing wxPython HOT 1
- SystemError: <slot wrapper '__init__' of 'sip.simplewrapper' objects> returned a result with an error set HOT 2
- Native error dialog on MacOS does not show exclamation mark icon
- importing wx in app run on GitHub actions will segfault on termination HOT 1
- AttributeError: module 'wx.html2' has no attribute 'New' HOT 1
- EditLabel on CustomTreeCtrl doesn't automatically select the entire text
- how can i hide the button on wx.GenericDirCtrl tree?
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 phoenix.