# Rspec windows gem not running on 1.9?

**URL:** <https://www.ruby-forum.com/t/rspec-windows-gem-not-running-on-1-9/179357>\
**Category:** Ruby\
**Created:** [November 23, 2009, 10:41am UTC](https://www.ruby-forum.com/t/rspec-windows-gem-not-running-on-1-9/179357 "2009-11-23T10:41:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micheldogger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b5e925/32.png) [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Post date:** [November 23, 2009, 10:41am UTC](https://www.ruby-forum.com/t/rspec-windows-gem-not-running-on-1-9/179357/1 "2009-11-23T10:41:25Z")

</div>

Hi All,

My spec files work on 1.8.  
Running on 1.9.1-p243 (mingw) with rspec-1.2.9, I get a GC error :

* * *

F:\dev\ruby\DMX\>rake ruby19:spec  
(in F:/dev/ruby/DMX)  
1.9.1  
[BUG] cross-thread violation on rb\_gc()  
ruby 1.8.6 (2009-08-04) [i386-mingw32]

## This application has requested the Runtime to terminate it in an unusual way. Please contact the application’s support team for more information.

My spec main file starts by printing RUBY\_VERSION (gives 1.9.1), but the  
bug report speaks of 1.8.6.

I understand the rspec gem installed by ‘gem install’ is not compatible  
with 1.9. If this is the correct explanation, how can I get a correct  
one (without a mingw compiler) ?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![micheldogger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b5e925/32.png) [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Post date:** [November 23, 2009, 10:51am UTC](https://www.ruby-forum.com/t/rspec-windows-gem-not-running-on-1-9/179357/2 "2009-11-23T10:51:48Z")

</div>

Michel D. wrote:

Sorry, the bug comes from the json gem I use in my project

F:\Ruby19\bin\>irb  
irb(main):001:0\> puts RUBY\_VERSION  
1.9.1  
=\> nil  
irb(main):002:0\> require ‘json’  
[BUG] cross-thread violation on rb\_gc()  
ruby 1.8.6 (2009-08-04) [i386-mingw32]

This application has requested the Runtime to terminate it in an unusual  
way.  
Please contact the application’s support team for more information.

So, same question for ‘json’. How to get a correct one ?

---

<div class="post-metadata">

**Author:** ![micheldogger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b5e925/32.png) [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Post date:** [November 23, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/rspec-windows-gem-not-running-on-1-9/179357/3 "2009-11-23T12:17:33Z")

</div>

Michel D. wrote:

> Michel D. wrote:
> 
> Sorry, the bug comes from the json gem I use in my project

Solved : json is packed with 1.9. and uninstalling the gem solves the  
problem…

Sorry for the noise added to the forum.
