require 'hallon'
session = Hallon::Session.initialize IO.read("./spotify_app.key")session.login("m...@email.com", "password")
print "[SESSION] Logging in ..."while(session.status != :logged_in) session.process_events print "." sleep(3)endputs " done!"c = session.containerc.load
while(session.container.loaded? == false) session.process_events sleep(0.1)endp = c.contents.at(0).load
Segmentation fault (core dumped)
daemon.rb: [BUG] SEGV received in SEGV handler
Segmentation faultruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Aborted (core dumped)
daemon.rb: [BUG] Segmentation faultruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
-- Control frame information -----------------------------------------------c:0001 p:0000 s:0002 b:0002 l:0019c8 d:0019c8 TOP
-- C level backtrace information -------------------------------------------
/home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/observable.rb:198:in `[]': can't convert String into Integer (TypeError)
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/observable.rb:198:in `trigger'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/observable.rb:91:in `block in trigger'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/observable.rb:89:in `each'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/observable.rb:89:in `inject'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/observable.rb:89:in `trigger'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/observable/playlist.rb:34:in `tracks_added_callback'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/spotify-12.3.0/lib/spotify.rb:99:in `call'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/spotify-12.3.0/lib/spotify.rb:99:in `session_process_events'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/spotify-12.3.0/lib/spotify.rb:99:in `block in method_missing'
from /home/allan/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/spotify-12.3.0/lib/spotify.rb:98:in `method_missing'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/session.rb:168:in `block in process_events'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/session.rb:167:in `initialize'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/session.rb:167:in `new'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/session.rb:167:in `process_events'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/loadable.rb:18:in `block in load'
from /home/allan/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
from /home/allan/.rvm/gems/ruby-1.9.3-p194/gems/hallon-0.18.1/lib/hallon/loadable.rb:16:in `load'
from daemon2.rb:26:in `<main>'
--
You received this message because you are subscribed to the Hallon ruby gem mailing list.
- To view this group online, visit https://groups.google.com/d/forum/ruby-hallon
- To post to this group, send email to ruby-...@googlegroups.com
- To unsubscribe from this group, send email to ruby-hallon...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Hallon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-hallon...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
@Bradley Yep that seems to be the spot, where it gets sticky. Sometimes it loads perfectly, while it crashes at others. I started having problems with track objects as well, after calling that code even when the playlist succeeded. I wasn't able to solve it, and had to turn back to use C and libspotify directly instead, but please post if you find any news on the linux/raspberry front
--Allan
--
You received this message because you are subscribed to the Hallon ruby gem mailing list.
- To view this group online, visit https://groups.google.com/d/forum/ruby-hallon
- To post to this group, send email to ruby-...@googlegroups.com
- To unsubscribe from this group, send email to ruby-hallon...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Hallon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-hallon...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.