Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Nov 17, 2017 2:21 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: spelling plugin causing crash?
PostPosted: Wed Aug 29, 2012 3:01 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
Since I added this spell check plugin, I've been seeing intermittent crashes. Any idea from the bug report what I might look for? Here is thread 0 and the events leading up...
_____________________________________________________________________________

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000e000021c

VM Regions Near 0xe000021c:
CG shared images 00000000c2b47000-00000000c2b4f000 [ 32K] r--/r-- SM=SHM
-->
Submap 00000000ffff0000-00000000ffff2000 r-x/r-x process-only submap

Application Specific Information:
objc[403]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 rbframework.dylib 0x0185e8b3 editTextGetter + 29
1 0x0010b9cb TextArea.Text.Get%s%o<TextArea>i4 + 81
2 0x0150c46f MagicSpeller.MagicSpeller_hiliteErrors + 1530
3 0x009b86bc editorWin.editorWin.textArea_GotFocus%%o<editorWin.editorWin>o<MagicSpellerTA> + 217
4 0x013c4e2c Delegate.IM_Invoke%%o<MagicSpellerTA> + 110
5 0x0094529e AddHandler.Stub.15%% + 54
6 rbframework.dylib 0x0185efa1 RuntimeEditRouter::EditControlGainedFocus(EditControl*) + 193
7 rbframework.dylib 0x0181d0c9 AtsuEditControl::GainedFocus() + 123
8 rbframework.dylib 0x017b0969 SetFocusPane(SubPane*) + 155
9 rbframework.dylib 0x01786231 SubPane::SetMacFocusPart(short, short*) + 273
10 rbframework.dylib 0x0178809c SubPane::InvalidatePaneRect(Rect const*, unsigned char) + 742
11 com.apple.HIToolbox 0x95240dec _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
_____________________________________________________________________________

The crash occurs before I even do anything with the TextArea, and doesn't happen consistently, so I'm kind of baffled. It always appears to be the same cause, though. Since I don't have access to the guts of the plugin (even though I bought it) I cannot dig deeper into that to look.


Top
 Profile  
Reply with quote  
 Post subject: Re: spelling plugin causing crash?
PostPosted: Wed Aug 29, 2012 3:04 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
I think you'll have to check with the plugin author.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: spelling plugin causing crash?
PostPosted: Wed Aug 29, 2012 3:07 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
I have. was hoping at the same time that if someone might recognize something in the crash report that could point me toward the culprit that I'd be further ahead.


Top
 Profile  
Reply with quote  
 Post subject: Re: spelling plugin causing crash?
PostPosted: Wed Aug 29, 2012 3:34 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Well, it looks like the text of the textarea is queried after the object was destroyed.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: spelling plugin causing crash?
PostPosted: Wed Aug 29, 2012 8:29 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
the textarea is destroyed? wonder how that could be. i know there is some default text in the textarea. wonder if it's somehow trying to check the spelling of that text prior to the dictionary being loaded? but you'd think it would do the same thing every time the app was opened. pretty tough to troubleshoot unless i can get it to happen consistently.


Top
 Profile  
Reply with quote  
 Post subject: Re: spelling plugin causing crash?
PostPosted: Thu Aug 30, 2012 8:36 am 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
On further testing, it almost looks like when the textarea gets focus is when the crash occurs. Any text in the textarea will get blanked out so you don't have to delete the previous entry. Perhaps it's trying to check the text that is in there already and it suddenly gets blanked out? I will try moving the inline spellcheck to the keydown method perhaps.


Top
 Profile  
Reply with quote  
 Post subject: Re: spelling plugin causing crash?
PostPosted: Sat Sep 01, 2012 1:49 am 
Offline

Joined: Thu Dec 01, 2011 2:13 pm
Posts: 288
"Destroying" means closing, so it gets unloaded from RAM. If that woulsnt happen, RAM would never clean up. This happens normally once a window closes or the app quits.

_________________
Mac OS X 10.3-10.8
Windows 2000 (I know it sucks)
Windows Server 2007

You want a bunch of new classes and web styles? realstudiodevspot.com (search there for Web Styles Plugin)
Folderitem is too hard? File Bin Class
I hate cows.


Top
 Profile  
Reply with quote  
 Post subject: Re: spelling plugin causing crash?
PostPosted: Sat Sep 01, 2012 7:33 am 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
that could make sense if it's trying to edit text that's no longer there. so far so good on moving the method to the keydown. by then the text should have already been cleared so it's not there to check. won't know till tuesday, though, when my tester gets back. doesn't seem to happen on my computer, but is more consistent on hers.


Top
 Profile  
Reply with quote  
 Post subject: Re: spelling plugin causing crash?
PostPosted: Sat Sep 15, 2012 6:48 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
I believe I've finally tracked this down to duplicate methods of MagicSpeller.checkSpellingWithDialog(). there was one in the spell check window's open event and one needed to launch that window. I removed the one in the window's open event and it seems to have quit crashing and still performs the check.
thanks for all the suggestions, folks!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group