Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul  
View profile  
 More options Mar 22 2012, 6:19 am
From: Paul <poal...@gmail.com>
Date: Thu, 22 Mar 2012 03:19:33 -0700 (PDT)
Local: Thurs, Mar 22 2012 6:19 am
Subject: EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon
Hey,

I've got a program which worked fine on 2.8 however after changing to
2.9 I got Python quit unexpectedly errors when running. I've stepped
through the code and found its a .SetValue call on a TextCtrl which is
causing the program to crash. Is this known about? Is there a change
in 2.9 or a work around for this? Any ideas what I can do to get this
working in 2.9?

Cheers!

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul  
View profile  
 More options Mar 22 2012, 6:59 am
From: Paul <poal...@gmail.com>
Date: Thu, 22 Mar 2012 03:59:03 -0700 (PDT)
Local: Thurs, Mar 22 2012 6:59 am
Subject: Re: EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon
On Mar 22, 10:19 am, Paul <poal...@gmail.com> wrote:

> Hey,

> I've got a program which worked fine on 2.8 however after changing to
> 2.9 I got Python quit unexpectedly errors when running. I've stepped
> through the code and found its a .SetValue call on a TextCtrl which is
> causing the program to crash. Is this known about? Is there a change
> in 2.9 or a work around for this? Any ideas what I can do to get this
> working in 2.9?

> Cheers!

> Paul

I noticed creating a wx.lib.masked.TimeCtrl causes the same error, in
TextBase ChangeValue on the line:
_core_.TextEntryBase_ChangeValue(*args, **kwargs)

I've also noticed that I can't see the selection in combo boxes (they
always look blank)

When I call GetValue on a ComboBox I get:
wx._core.PyAssertionError: C++ assertion "IsValid(n)" failed at /BUILD/
wxPython-src-2.9.3.1/src/osx/choice_osx.cpp(212) in GetString():
wxChoice::GetString(): invalid index

There's other problems as well, mainly visual with custom drawn items
and layouts that I guess are just differences in 2.9

Basically my motivation for switching to 2.9 is the frame native
toolbar in mac is drag-able by the whole toolbar and not just the
title bar like in 2.8 but it looks like I would have to overcome all
these issues if I were to do so. Is there a way instead I could
perhaps take the toolbar part of 2.9 and include it, or overwrite it
in 2.8 somehow?

What's my best option?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Dunn  
View profile  
 More options Mar 22 2012, 1:11 pm
From: Robin Dunn <ro...@alldunn.com>
Date: Thu, 22 Mar 2012 10:11:14 -0700
Local: Thurs, Mar 22 2012 1:11 pm
Subject: Re: [wxPython-users] Re: EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon
On 3/22/12 3:59 AM, Paul wrote:

Please make small runnable samples for that demonstrates each of these
problems.  http://wiki.wxpython.org/MakingSampleApps  Also, what version
of OSX are you using?  Carbon or Cocoa build of wxPython? Running Python
in 32-bit or 64-bit mode?

> There's other problems as well, mainly visual with custom drawn items
> and layouts that I guess are just differences in 2.9

> Basically my motivation for switching to 2.9 is the frame native
> toolbar in mac is drag-able by the whole toolbar and not just the
> title bar like in 2.8 but it looks like I would have to overcome all
> these issues if I were to do so. Is there a way instead I could
> perhaps take the toolbar part of 2.9 and include it, or overwrite it
> in 2.8 somehow?

No.

--
Robin Dunn
Software Craftsman
http://wxPython.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul  
View profile  
 More options Mar 23 2012, 7:04 am
From: Paul <poal...@gmail.com>
Date: Fri, 23 Mar 2012 04:04:44 -0700 (PDT)
Local: Fri, Mar 23 2012 7:04 am
Subject: Re: [wxPython-users] Re: EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon

I've attached a small program with the problems reproduced, just change the
value of i to see them all

I'm on OSX 10.6.8, on carbon build 2.9.3.1 osx-carbon (classic) with
running python in 32-bit mode

> > There's other problems as well, mainly visual with custom drawn items
> > and layouts that I guess are just differences in 2.9

> > Basically my motivation for switching to 2.9 is the frame native
> > toolbar in mac is drag-able by the whole toolbar and not just the
> > title bar like in 2.8 but it looks like I would have to overcome all
> > these issues if I were to do so. Is there a way instead I could
> > perhaps take the toolbar part of 2.9 and include it, or overwrite it
> > in 2.8 somehow?

> No.

I didn't think so :P

  problems2.9.py
1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Wiseman  
View profile  
 More options Apr 10 2012, 10:08 am
From: Paul Wiseman <poal...@gmail.com>
Date: Tue, 10 Apr 2012 15:08:47 +0100
Local: Tues, Apr 10 2012 10:08 am
Subject: Re: [wxPython-users] Re: EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon

Hey Robin did you get a chance to run the sample?

Was wondering if there was any news?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Dunn  
View profile  
 More options Apr 10 2012, 6:15 pm
From: Robin Dunn <ro...@alldunn.com>
Date: Tue, 10 Apr 2012 15:15:25 -0700
Local: Tues, Apr 10 2012 6:15 pm
Subject: Re: [wxPython-users] Re: EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon
On 4/10/12 7:08 AM, Paul Wiseman wrote:

> Hey Robin did you get a chance to run the sample?

> Was wondering if there was any news?

Not yet, I haven't done a another Carbon build in a while.

--
Robin Dunn
Software Craftsman
http://wxPython.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Wiseman  
View profile  
 More options Oct 5 2012, 8:39 am
From: Paul Wiseman <poal...@gmail.com>
Date: Fri, 5 Oct 2012 13:38:57 +0100
Local: Fri, Oct 5 2012 8:38 am
Subject: Re: [wxPython-users] Re: EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon

On 22 March 2012 17:11, Robin Dunn <ro...@alldunn.com> wrote:

Sorry to revive this older post- and also baring in mind you did say no.

How can I get this working? I don't mind getting my hands dirty and making
some cpp changes and building from source.

I was looking to see if I could find which file this might have been fixed
in in 2.9, but where the toolbar is loaded in as a CDLL from the carbon
framework I'm not really sure where to start looking.

Which files contain the fix for the draggable toolbar in 2.9? and roughly
what changes would be needed in 2.8.12 to get it working (what wasn't
working in the last version of 2.8 that disabled the dragging? I'm led to
believe it used to work in earlier versions 2.8 but broke at some point?)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Dunn  
View profile  
 More options Oct 8 2012, 12:55 pm
From: Robin Dunn <ro...@alldunn.com>
Date: Mon, 08 Oct 2012 09:55:24 -0700
Local: Mon, Oct 8 2012 12:55 pm
Subject: Re: [wxPython-users] Re: EXC_BAD_ACCESS calling wx.TextCtrl.SetValue in 2.9 carbon
On 10/5/12 5:38 AM, Paul Wiseman wrote:

> Sorry to revive this older post- and also baring in mind you did say no.

> How can I get this working? I don't mind getting my hands dirty and
> making some cpp changes and building from source.

> I was looking to see if I could find which file this might have been
> fixed in in 2.9, but where the toolbar is loaded in as a CDLL from the
> carbon framework I'm not really sure where to start looking.

> Which files contain the fix for the draggable toolbar in 2.9? and
> roughly what changes would be needed in 2.8.12 to get it working (what
> wasn't working in the last version of 2.8 that disabled the dragging?
> I'm led to believe it used to work in earlier versions 2.8 but broke at
> some point?)

Sorry, I don't know.  You may be able to find it with some searching
through the SVN history in Trac.

http://trac.wxwidgets.org/log/wxWidgets/trunk

You may also want to try with the latest SVN version of the 2.8 branch,
if you haven't already.  The fix may have been applied there since the
last release.

https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH/
https://svn.wxwidgets.org/svn/wx/wxPython/branches/WX_2_8_BRANCH/

--
Robin Dunn
Software Craftsman
http://wxPython.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »