Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unexpected end of JSON input" when running test #6

Closed
travs opened this issue Oct 11, 2017 · 1 comment
Closed

"Unexpected end of JSON input" when running test #6

travs opened this issue Oct 11, 2017 · 1 comment

Comments

@travs
Copy link

travs commented Oct 11, 2017

Running this file it fails on the linked line, when uncommented.

Output like this:

+ dapp quicktest out out/simpleAdapter.bin out/rewards.bin out/safeMath.bin                                                                                                                    
Secp256k1 bindings are not compiled. Pure JS implementation will be used.                                                                                                                      
Trying out/DataFeedTest, out/assets/AssetTest, out/datafeeds/DataFeedTest, out/participation/ParticipationTest, out/version/VersionTest...                                                     
....thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Invalid character '_' at position 47616', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libcore
/result.rs:868                                                                                                                                                                                 
note: Run with `RUST_BACKTRACE=1` for a backtrace.                                                                                                                                             
undefined:1                                                                                                                                                                                    
                                                                                                                                                                                               
                                                                                                                                                                                               
                                                                                                                                                                                               
SyntaxError: Unexpected end of JSON input                                                                                                                                                      
    at JSON.parse (<anonymous>)                                                                                                                                                                
    at handleTestOutput (/home/travis/prg/dapp/libexec/dapp/dapp-quicktest:172:23)                                                                                                             
    at Socket.child.stdout.on (/home/travis/prg/dapp/libexec/dapp/dapp-quicktest:163:32)                                                                                                       
    at emitNone (events.js:110:20)                                                                                                                                                             
    at Socket.emit (events.js:207:7)                                                                                                                                                           
    at endReadableNT (_stream_readable.js:1059:12)                                                                                                                                             
    at _combinedTickCallback (internal/process/next_tick.js:138:11)                                                                                                                            
    at process._tickCallback (internal/process/next_tick.js:180:9)                                                                                                                             
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/io/stdio.rs:693                     
note: Run with `RUST_BACKTRACE=1` for a backtrace.                                                                                                                                             
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/io/stdio.rs:693                     
note: Run with `RUST_BACKTRACE=1` for a backtrace.                                                                                                                                             
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/io/stdio.rs:693                     
note: Run with `RUST_BACKTRACE=1` for a backtrace.                                                                                                                                             
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/io/stdio.rs:693                     
note: Run with `RUST_BACKTRACE=1` for a backtrace.                                                                                                                                             
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/io/stdio.rs:693                     
note: Run with `RUST_BACKTRACE=1` for a backtrace.    

Not sure what this stack trace means exactly, but the Err value: Invalid character '_' at position 47616' makes me wonder whether it's due to some unlinked library (__libnameEtc__ still in the bytecode).

Just a guess though.

@travs
Copy link
Author

travs commented Oct 12, 2017

Resolved via this; update to dapp 0.5.8 to get the patch

@travs travs closed this as completed Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant