# Segmentation fault on paste a long text into Scintilla

**URL:** <https://www.ruby-forum.com/t/segmentation-fault-on-paste-a-long-text-into-scintilla/189551>\
**Category:** wxRuby\
**Created:** [June 3, 2010, 12:44am UTC](https://www.ruby-forum.com/t/segmentation-fault-on-paste-a-long-text-into-scintilla/189551 "2010-06-03T00:44:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [June 3, 2010, 12:44am UTC](https://www.ruby-forum.com/t/segmentation-fault-on-paste-a-long-text-into-scintilla/189551/1 "2010-06-03T00:44:52Z")

</div>

Hi there,

In bundled samples\scintilla.rb, paste a long one-line text (see below)  
caused segmentation fault

scintilla.rb:166: [BUG] Segmentation fault  
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]

However, It was Ok if not including last 100 or so characters (worked on  
13100 characters).

Cheers,  
Zhimin

– text copied

&nbsp;
Example

Source Code

CSS Style

&nbsp;

| 
Rich Text
 |
| 
The Rich Text Area is supported on all major browsers, and will fall back gracefully to the level of functionality supported on each.
 |
|
| |
| |
| 
 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

 ![](http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif)

\<img class="gwt-Image" onload='this.\_\_gwtLastUnhandledEvent="load";' src="http://gwt.google.com/samples/Showcase/showcase/clear.cache.gif" style="width: 20px; height: 20px; background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABSklEQVR42t2Uv0oDQRCH8zR5FhvfJOADpEplpWBhY6cgNgrqA0RTRDHNxWgjCF7jHyxyIaggyTHyrfyOgejuYRcPfuze7sw3szN712j8u+fxeWxo0B/Y

| 

 |

 |
