rubinius/rubinius — Issue #1539: Undefined conversion for '
Author: emachnic
Created: 2012-01-31 14:57:34+00:00
State: open

Just did a fresh install of rbx using rvm and `rvm install rbx -- --default-version=1.9`. Installed Rails 3.2.1, created an application, bundled everything and then started the rails server. Upon hitting the index.html page, I receive the following error with stacktrace:

=> Booting WEBrick
=> Rails 3.2.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-01-31 09:14:27] INFO WEBrick 1.3.1
[2012-01-31 09:14:27] INFO ruby 1.9.3 (yyyy-mm-dd) [x86_64-apple-darwin11.2.0]
[2012-01-31 09:14:27] INFO WEBrick::HTTPServer#start: pid=12607 port=3000
[2012-01-31 09:14:29] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

Started GET "/assets/rails.png" for 127.0.0.1 at 2012-01-31 09:14:29 -0500
Error compiling asset rails.png:
Encoding::CompatibilityError: undefined conversion for '	:@created_atf1328019270.231997?
:@compressedF:@expires_in0:
@value' from US-ASCII to ASCII-8BIT

Encoding::CompatibilityError (undefined conversion for '	:@created_atf1328019270.231997?
:@compressedF:@expires_in0:
@value' from US-ASCII to ASCII-8BIT):
kernel/common/type19.rb:28:in `compatible_encoding'
kernel/common/string19.rb:605:in `<<'
kernel/common/marshal.rb:774:in `serialize_instance_variables_suffix'
kernel/bootstrap/array.rb:68:in `each'
kernel/common/marshal.rb:766:in `serialize_instance_variables_suffix'
kernel/common/marshal.rb:9:in `__marshal__'
kernel/common/marshal.rb:707:in `serialize'
kernel/common/marshal.rb:941:in `dump'
activesupport (3.2.1) lib/active_support/cache/file_store.rb:91:in `write_entry'
activesupport (3.2.1) lib/active_support/core_ext/file/atomic.rb:20:in `atomic_write'
activesupport (3.2.1) lib/active_support/cache/file_store.rb:91:in `write_entry'
activesupport (3.2.1) lib/active_support/cache/strategy/local_cache.rb:140:in `write_entry'
activesupport (3.2.1) lib/active_support/cache.rb:365:in `write'
activesupport (3.2.1) lib/active_support/cache.rb:521:in `instrument'
activesupport (3.2.1) lib/active_support/cache.rb:363:in `write'
sprockets (2.1.2) lib/sprockets/caching.rb:90:in `cache_set'
sprockets (2.1.2) lib/sprockets/caching.rb:53:in `cache_set_hash'
sprockets (2.1.2) lib/sprockets/caching.rb:24:in `cache_asset'
sprockets (2.1.2) lib/sprockets/index.rb:88:in `build_asset'
sprockets (2.1.2) lib/sprockets/base.rb:163:in `find_asset'
sprockets (2.1.2) lib/sprockets/index.rb:56:in `find_asset'
sprockets (2.1.2) lib/sprockets/environment.rb:74:in `find_asset'
sprockets (2.1.2) lib/sprockets/server.rb:47:in `call'
journey (1.0.1) lib/journey/router.rb:68:in `call'
kernel/bootstrap/array.rb:68:in `each'
journey (1.0.1) lib/journey/router.rb:56:in `call'
actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:589:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.1) lib/rack/etag.rb:23:in `call'
rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/cookies.rb:338:in `call'
activerecord (3.2.1) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
activesupport (3.2.1) lib/active_support/callbacks.rb:405:in `_run__2793216120303326317__call__1338411874204908663__callbacks'
activesupport (3.2.1) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.1) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.1) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.1) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.1) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.2.1) lib/rails/engine.rb:479:in `call'
railties (3.2.1) lib/rails/application.rb:220:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.1) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
/Users/engineyard/.rvm/rubies/rbx-head/lib/19/webrick/httpserver.rb:138:in `service'
/Users/engineyard/.rvm/rubies/rbx-head/lib/19/webrick/httpserver.rb:94:in `run'
/Users/engineyard/.rvm/rubies/rbx-head/lib/19/webrick/server.rb:191:in `start_thread'
kernel/bootstrap/thread.rb:146:in `__run__'

Rendered /Users/engineyard/.rvm/gems/rbx-head/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (16.5ms)
Rendered /Users/engineyard/.rvm/gems/rbx-head/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (31.9ms)
Rendered /Users/engineyard/.rvm/gems/rbx-head/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (70.9ms)

Removing the index page and creating a root controller and action, I get the same error when it tries to load application.js when it pulls in the jquery files. I've also testing removing application.js, adding in a style.css and then I get the error on application.css. My locale looks like:

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

The encoding in application.rb is also set to utf-8. Assuming an issue with Sprockets and compilation but not sure.