librelist archives

« back to archive

summoner's chronicles - test my app

summoner's chronicles - test my app

From:
Sebastjan Hribar
Date:
2013-03-29 @ 18:59
Hi,

I'd really appreciate if someone could test the last version on github: 
https://github.com/sebastjan-hribar/summoner_chronicles.

After adding ice and fire spells I get sporadic errors when summoning 
cards in battle. I can't figure out the error cause. Which brings me to 
the second problem.

I am not getting the ususal code errors in terminal as I used to. Now it 
seems as every error thrown is related to green shoes, eventhough it 
shouldn't be.

It's a bit hard to explain, but I used tro get errors why an app 
crashed, now I just get

*****************************************

/home/sebah/.rvm/gems/ruby-1.9.3-p392/gems/green_shoes-1.1.373/lib/shoes/ruby.rb:14:in

`exit_application': super: no superclass method `exit_application' for 
GLib:Module (NoMethodError)
     from 

/home/sebah/.rvm/gems/ruby-1.9.3-p392/gems/green_shoes-1.1.373/lib/shoes/main.rb:123:in

`main'
     from 

/home/sebah/.rvm/gems/ruby-1.9.3-p392/gems/green_shoes-1.1.373/lib/shoes/main.rb:123:in

`app'
     from dd.rb:221:in `<main>'
********************************************

The line 221 in dd.rb is the line which trigers the app.

I've recently changed laptops and I've done a fresh install of ruby via 
rvm and then green shoes with dependencies.

I've tested it on the old laptop as well with the old configuration and 
I get the same error.
Currently I am using:

Ubuntu 12.04
ruby 1.9.3 -p392
rubygems 2.0.3
green_shoes


regards
seba

Re: [shoes] summoner's chronicles - test my app

From:
Jesús Gabriel y Galán
Date:
2013-04-01 @ 11:47
On Fri, Mar 29, 2013 at 7:59 PM, Sebastjan Hribar
<sebastjan.hribar@gmail.com> wrote:
> Hi,
>
> I'd really appreciate if someone could test the last version on github:
> https://github.com/sebastjan-hribar/summoner_chronicles.
>

I've tried the application a couple of times, and this is what I get:

When entering the battle:

/home/jesus/.rvm/gems/ruby-1.9.2-p290/gems/green_shoes-1.1.373/lib/shoes/basic.rb:
line 63
   Gtk-CRITICAL **:IA__gtk_container_remove: assertion `GTK_IS_WIDGET
(widget)' failed
/home/jesus/.rvm/gems/ruby-1.9.2-p290/gems/green_shoes-1.1.373/lib/shoes/basic.rb:
line 63
   Gtk-CRITICAL **:IA__gtk_container_remove: assertion `GTK_IS_WIDGET
(widget)' failed
/home/jesus/.rvm/gems/ruby-1.9.2-p290/gems/green_shoes-1.1.373/lib/shoes/basic.rb:
line 63
   Gtk-CRITICAL **:IA__gtk_container_remove: assertion `GTK_IS_WIDGET
(widget)' failed

but everything works fine. When I finish the duel, and click the
window X to close it, I get this at the console:

dd.rb: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:001bc8 d:001bc8 TOP
---------------------------

-- C level backtrace information -------------------------------------------
/home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_vm_bugreport+0x61)
[0x7f30a296a531]
/home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x62004)
[0x7f30a2856004]
/home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_bug+0xa5)
[0x7f30a2856d65]
/home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x10d2a4)
[0x7f30a29012a4]
/lib/libpthread.so.0(+0xf170) [0x7f30a25e7170]
/usr/lib/libgobject-2.0.so.0(+0x204e0) [0x7f309e8fc4e0]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0xdac) [0x7f309e904eec]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x82) [0x7f309e905082]
/usr/lib/libgtk-x11-2.0.so.0(+0x15d520) [0x7f309bf31520]
/usr/lib/libgobject-2.0.so.0(g_object_unref+0x154) [0x7f309e8f0dc4]
/home/jesus/.rvm/gems/ruby-1.9.2-p290/gems/glib2-1.2.5/lib/glib2.so(+0x32e81)
[0x7f309eb5ce81]
/home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x798a8)
[0x7f30a286d8a8]
/home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x7acc8)
[0x7f30a286ecc8]
/home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(ruby_cleanup+0x1ec)
[0x7f30a285eb7c]
/home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(ruby_run_node+0x25)
[0x7f30a285ede5]
ruby(main+0x4b) [0x4008db]
/lib/libc.so.6(__libc_start_main+0xf5) [0x7f30a1918725]
ruby() [0x400909]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

I'm testing in Arch Linux 64bits, with RVM, ruby 1.9.2-p290

> After adding ice and fire spells I get sporadic errors when summoning
> cards in battle. I can't figure out the error cause. Which brings me to
> the second problem.

I didn't get any problem playing spells.

Keep up the good work !

Jesus.

Re: [shoes] summoner's chronicles - test my app

From:
Sebastjan Hribar
Date:
2013-04-01 @ 12:09
Thank you for testing!

Dne 01. 04. 2013 13:47, piše Jesús Gabriel y Galán:
> On Fri, Mar 29, 2013 at 7:59 PM, Sebastjan Hribar
> <sebastjan.hribar@gmail.com> wrote:
>> Hi,
>>
>> I'd really appreciate if someone could test the last version on github:
>> https://github.com/sebastjan-hribar/summoner_chronicles.
>>
> I've tried the application a couple of times, and this is what I get:
>
> When entering the battle:
>
> 
/home/jesus/.rvm/gems/ruby-1.9.2-p290/gems/green_shoes-1.1.373/lib/shoes/basic.rb:
> line 63
>     Gtk-CRITICAL **:IA__gtk_container_remove: assertion `GTK_IS_WIDGET
> (widget)' failed
> 
/home/jesus/.rvm/gems/ruby-1.9.2-p290/gems/green_shoes-1.1.373/lib/shoes/basic.rb:
> line 63
>     Gtk-CRITICAL **:IA__gtk_container_remove: assertion `GTK_IS_WIDGET
> (widget)' failed
> 
/home/jesus/.rvm/gems/ruby-1.9.2-p290/gems/green_shoes-1.1.373/lib/shoes/basic.rb:
> line 63
>     Gtk-CRITICAL **:IA__gtk_container_remove: assertion `GTK_IS_WIDGET
> (widget)' failed

I get that too.

> but everything works fine. When I finish the duel, and click the
> window X to close it, I get this at the console:
>
> dd.rb: [BUG] Segmentation fault
> ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
>
> -- control frame ----------
> c:0001 p:0000 s:0002 b:0002 l:001bc8 d:001bc8 TOP
> ---------------------------
>
> -- C level backtrace information -------------------------------------------
> /home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_vm_bugreport+0x61)
> [0x7f30a296a531]
> /home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x62004)
> [0x7f30a2856004]
> /home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_bug+0xa5)
> [0x7f30a2856d65]
> /home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x10d2a4)
> [0x7f30a29012a4]
> /lib/libpthread.so.0(+0xf170) [0x7f30a25e7170]
> /usr/lib/libgobject-2.0.so.0(+0x204e0) [0x7f309e8fc4e0]
> /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0xdac) [0x7f309e904eec]
> /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x82) [0x7f309e905082]
> /usr/lib/libgtk-x11-2.0.so.0(+0x15d520) [0x7f309bf31520]
> /usr/lib/libgobject-2.0.so.0(g_object_unref+0x154) [0x7f309e8f0dc4]
> /home/jesus/.rvm/gems/ruby-1.9.2-p290/gems/glib2-1.2.5/lib/glib2.so(+0x32e81)
> [0x7f309eb5ce81]
> /home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x798a8)
> [0x7f30a286d8a8]
> /home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x7acc8)
> [0x7f30a286ecc8]
> /home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(ruby_cleanup+0x1ec)
> [0x7f30a285eb7c]
> /home/jesus/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(ruby_run_node+0x25)
> [0x7f30a285ede5]
> ruby(main+0x4b) [0x4008db]
> /lib/libc.so.6(__libc_start_main+0xf5) [0x7f30a1918725]
> ruby() [0x400909]
>
> [NOTE]
> You may have encountered a bug in the Ruby interpreter or extension libraries.
> Bug reports are welcome.
> For details: http://www.ruby-lang.org/bugreport.html
>
> I'm testing in Arch Linux 64bits, with RVM, ruby 1.9.2-p290
after close I get that too as I said, but not always and that seems 
strange...

>> After adding ice and fire spells I get sporadic errors when summoning
>> cards in battle. I can't figure out the error cause. Which brings me to
>> the second problem.
> I didn't get any problem playing spells.
You've probably pulled the last version with fixes. The last should now 
be stable, apart from the sporadic errors mentioned above, which don't 
influence the game-play itself.

> Keep up the good work !
>
> Jesus.
>
regards
seba

Re: [shoes] summoner's chronicles - test my app

From:
ashbb
Date:
2013-04-01 @ 12:49
Hi Jesus, Seba and folks,

About the Segmentation fault. That's a known problem. Look at
https://github.com/ashbb/green_shoes/issues/72

Although I've not found any solutions so far... Try out the previous
version green_shoes 1.1.367.

ashbb

Re: [shoes] summoner's chronicles - test my app

From:
J. Kaiden
Date:
2013-04-02 @ 08:53
hi Seba -

  just got a chance to test the game - it looks cool!

  unfortunately i get the same error whenever i try to play a card...

  using ubuntu 12.04, ruby 2.0, greenshoes 1.1.373 -

/.../ruby-2.0.0-p0/gems/green_shoes-1.1.373/lib/shoes/basic.rb: line 63
   Gtk-CRITICAL **:IA__gtk_container_remove: assertion `GTK_IS_WIDGET
(widget)' failed
/.../ruby-2.0.0-p0/gems/green_shoes-1.1.373/lib/shoes/ruby.rb:14:in
`exit_application': super: no superclass method `exit_application' for
GLib:Module (NoMethodError)
        from
/.../ruby-2.0.0-p0/gems/green_shoes-1.1.373/lib/shoes/main.rb:123:in `main'
        from
/.../ruby-2.0.0-p0/gems/green_shoes-1.1.373/lib/shoes/main.rb:123:in `app'
        from dd.rb:230:in `<main>'


  - j


On Mon, Apr 1, 2013 at 2:49 PM, ashbb <ashbbb@gmail.com> wrote:

> Hi Jesus, Seba and folks,
>
> About the Segmentation fault. That's a known problem. Look at
> https://github.com/ashbb/green_shoes/issues/72
>
> Although I've not found any solutions so far... Try out the previous
> version green_shoes 1.1.367.
>
> ashbb
>
>

Re: [shoes] summoner's chronicles - test my app

From:
Sebastjan Hribar
Date:
2013-04-02 @ 15:26
Dne 02. 04. 2013 10:53, piše J. Kaiden:
> hi Seba -
>
>   just got a chance to test the game - it looks cool!
>
>   unfortunately i get the same error whenever i try to play a card...
>
>   using ubuntu 12.04, ruby 2.0, greenshoes 1.1.373 -
>
> /.../ruby-2.0.0-p0/gems/green_shoes-1.1.373/lib/shoes/basic.rb: line 63
>    Gtk-CRITICAL **:IA__gtk_container_remove: assertion `GTK_IS_WIDGET 
> (widget)' failed
> /.../ruby-2.0.0-p0/gems/green_shoes-1.1.373/lib/shoes/ruby.rb:14:in 
> `exit_application': super: no superclass method `exit_application' for 
> GLib:Module (NoMethodError)
>         from 
> /.../ruby-2.0.0-p0/gems/green_shoes-1.1.373/lib/shoes/main.rb:123:in 
> `main'
>         from 
> /.../ruby-2.0.0-p0/gems/green_shoes-1.1.373/lib/shoes/main.rb:123:in `app'
>         from dd.rb:230:in `<main>'
>
Strange, I get the widget failed error, but the game doesn't break. If I 
understand correctly the game breaks whenever you play a card? I know I 
haven't versioned the game yet so I can't reference a version, but the 
latest files on github should be stable. The error when playing cards 
was thrown because I hadn't had the damage methods defined as ashbb 
pointed out. Could you check you have the module with fixed damage and 
effect methods for ice and fire spells.

Damage methods should be defined and effect method should take four 
parameters.

I hope it works for you, but anyway this current version is hopefully 
just a solid basis for the expansion I have in mind: more complex battle 
mechanics, more card types and some rpg elements.

Unfortunately I have to go back to writing my thesis or I'll never be 
finished:) and so all my "ruby and shoes learning projects" are once 
again on a side track:(

love shoes!
seba


Re: [shoes] summoner's chronicles - test my app

From:
ashbb
Date:
2013-03-31 @ 03:26
Hi Seba,

Glad to see your progress. :)

I tried to make a quick review of your code and found the following two.

You have to
1. define FIRE#damage and ICE#damage methods.
2. revise FIRE#effect and ICE#effect methods to accept more than one
argument.

Hope this helps,
ashbb

Re: [shoes] summoner's chronicles - test my app

From:
Sebastjan Hribar
Date:
2013-04-01 @ 12:05
* sighs with embarrassment *



Dne 31. 03. 2013 05:26, piše ashbb:
> Hi Seba,
>
> Glad to see your progress. :)
>
slowly, but surely:)

> I tried to make a quick review of your code and found the following two.
>
> You have to
> 1. define FIRE#damage and ICE#damage methods.
> 2. revise FIRE#effect and ICE#effect methods to accept more than one 
> argument.
>
thank you, as always!
I've fixed it

regards
seba