Skip to content

Instantly share code, notes, and snippets.

View PragTob's full-sized avatar

Tobias Pfeiffer PragTob

View GitHub Profile
@PragTob
PragTob / shoes4-tb-crash
Created February 7, 2014 12:35
Shoes4 TB crash
tobi@big-one:~/github/shoes4$ bin/ruby-shoes testing/flow_append.rb
Fontconfig warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 10: Having multiple values in <test> isn't supported and may not work as expected
AfterDo::CallbackError: A callback block for method eval_block on the instance Shoes::Swt::Button with the following arguments: #<Proc:0x313b63e6@/home/tobi/github/shoes4/testing/flow_append.rb:3> defined in the file /home/tobi/github/shoes4/lib/shoes/swt/redrawing_aspect.rb in line 60 resulted in the following error: Java::JavaLang::IllegalArgumentException: Argument not valid and this backtrace:
org.eclipse.swt.SWT.error(Unknown Source)
org.eclipse.swt.SWT.error(Unknown Source)
org.eclipse.swt.SWT.error(Unknown Source)
org.eclipse.swt.graphics.TextLayout.setWidth(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
@PragTob
PragTob / shoes-windows-no-more-handles
Created February 8, 2014 13:21
No more handles shoes4 crash
C:\Users\Tobi\github\shoes4\bin>ruby-shoes ..\samples\simple-manual.rb
null:-1:in `error': org.eclipse.swt.SWTError: No more handles
from null:-1:in `error'
from null:-1:in `error'
from null:-1:in `error'
from null:-1:in `internal_new_GC'
from null:-1:in `computePixels'
from null:-1:in `init'
from null:-1:in `<init>'
from null:-1:in `newInstance'
@PragTob
PragTob / simple_delegator_boom
Created February 24, 2014 14:32
Simple delegator + open = boom
require 'delegate'
class MyOpen
def open
puts 'my open'
end
end
my_open = MyOpen.new
wrapped = SimpleDelegator.new my_open
@PragTob
PragTob / jruby-head-shoes-failures
Created February 28, 2014 15:46
Jruby-head shoes fialures
Failures:
1) Shoes::Logger::Log4j delegates to a Log4jruby::Logger instance
Failure/Error: subject.debug("Foo bar baz!")
ArgumentError:
not delegated
@PragTob
PragTob / gem_upgrade_error_log
Created March 3, 2014 12:49
gem upgrade error
This file has been truncated, but you can view the full file.
[2014-03-03 13:41:31] __migrate_gemset
__migrate_gemset ()
{
\mkdir -p "${rvm_gems_path:-"$rvm_path/gems"}/$2"/ && \rm -rfv "${rvm_gems_path:-"$rvm_path/gems"}/$2"/* && \cp -rv "${rvm_gems_path:-"$rvm_path/gems"}/$1"/* "${rvm_gems_path:-"$rvm_path/gems"}/$2"/ && gemset_reset_env "$2"
}
current path: /home/tobi
GEM_HOME=/home/tobi/.rvm/gems/ruby-2.0.0-p451@xikolo
PATH=/home/tobi/.rvm/gems/ruby-2.0.0-p451@xikolo/bin:/home/tobi/.rvm/gems/ruby-2.0.0-p451@global/bin:/home/tobi/.rvm/rubies/ruby-2.0.0-p451/bin:/home/tobi/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/tobi/local/bin
GEM_PATH=/home/tobi/.rvm/gems/ruby-2.0.0-p451@xikolo:/home/tobi/.rvm/gems/ruby-2.0.0-p451@global
command(3): __migrate_gemset ruby-2.0.0-p451@xikolo ruby-2.1.1@xikolo
@PragTob
PragTob / big.log
Created March 24, 2014 23:10
Log for michal
+ 1395702532.278003639 /scripts/cli : __rvm_parse_args() 705 > [[ -z '' ]]
+ 1395702532.280873752 /scripts/cli : __rvm_parse_args() 705 > [[ -n '' ]]
+ 1395702532.283658528 /scripts/cli : __rvm_parse_args() 708 > [[ error == '' ]]
+ 1395702532.286593888 /scripts/cli : __rvm_parse_args() 708 > [[ 0 -eq 1 ]]
+ 1395702532.289285966 /scripts/cli : __rvm_parse_args() 708 > [[ -n '' ]]
+ 1395702532.291906145 /scripts/cli : __rvm_parse_args() 15 > [[ -n use ]]
+ 1395702532.294804468 /scripts/cli : __rvm_parse_args() 17 > rvm_token=use
+ 1395702532.297790339 /scripts/cli : __rvm_parse_args() 19 > (( 1 > 0 ))
+ 1395702532.300878700 /scripts/cli : __rvm_parse_args() 21 > next_token=ruby-2.1.1@xikolo
+ 1395702532.303878932 /scripts/cli : __rvm_parse_args() 22 > shift
@PragTob
PragTob / gist:9771705
Created March 25, 2014 21:23
MOAR MEMORY EATING
tobi@big-one:~$ rvm use 2.1.1@xikolo
Using /home/tobi/.rvm/gems/ruby-2.1.1 with gemset xikolo
^CError loading RubyGems plugin "/home/tobi/.rvm/gems/ruby-2.1.1@global/gems/executable-hooks-1.2.6/lib/rubygems_plugin.rb": (Interrupt)
^CError loading RubyGems plugin "/home/tobi/.rvm/gems/ruby-2.1.1@xikolo/gems/gem-wrappers-1.2.4/lib/rubygems_plugin.rb": (Interrupt)
^CError loading RubyGems plugin "/home/tobi/.rvm/gems/ruby-2.1.1@xikolo/gems/yard-0.8.7.3/lib/rubygems_plugin.rb": (Interrupt)
tobi@big-one:~$ ruby -wdS gem --version
Exception `LoadError' at /home/tobi/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems.rb:1194 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /home/tobi/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems.rb:1203 - cannot load such file -- rubygems/defaults/ruby
Exception `NoMethodError' at /home/tobi/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/specification.rb:1949 - undefined method `to_ary' for #<Gem::Specification:0x00000002219e48>
Exception `NoMet
@PragTob
PragTob / gist:9779571
Created March 26, 2014 09:26
xikolo.log
[2014-03-26 10:16:23] __rvm_with
__rvm_with ()
{
( unset rvm_rvmrc_flag;
export rvm_create_flag=1;
export rvm_delete_flag=0;
export rvm_internal_use_flag=1;
export rvm_use_flag=0;
__rvm_use "$1" || return $?;
shift;
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RailsGirlsApp</title>
<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet" />
<script data-turbolinks-track="true" src="/assets/application.js"></script>
</head>
<body>