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

Undefined method `exitstatus' for nil:NilClass (NoMethodError) #2077

Closed
fastlanebot opened this Issue Mar 1, 2016 · 6 comments

Comments

Projects
None yet
5 participants
@fastlanebot

fastlanebot commented Mar 1, 2016

Original issue by @VictorJava - Imported from fastlane/screengrab#84

Hi guys,

I trying start screengrab in Ubuntu with Android project.

My way: call screengrab in terminal -> put package -> see error with exitstatus.

After sudo gem install fastlane
I sow error like use ruby >= 2.2.2
So, ruby was updated up to 2.3.
But problem hasn`t gone.

Please, see log below error message
while running screengrab
and fastlane.
Does fastlane need install for correct work with screengrab?
Could you help me?

~ $ screengrab
.......
$ adb devices -l
[12:55:24]: ▸ List of devices attached

[12:55:24]: ▸ 08a07e0c43aab722 device usb:1-2 product:hammerhead model:Nexus_5 device:hammerhead

😨 An error occured. Please enable crash reports using fastlane enable_crash_reporting.
👍 This makes resolving issues much easier and helps improve fastlane.
🔒 The reports will be stored securely on getsentry.com.

🙊 More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3

/var/lib/gems/2.1.0/gems/fastlane_core-0.36.8/lib/fastlane_core/command_executor.rb:79:in execute': [!] undefined methodexitstatus' for nil:NilClass (NoMethodError)
from /var/lib/gems/2.1.0/gems/screengrab-0.2.1/lib/screengrab/runner.rb:80:in select_device' from /var/lib/gems/2.1.0/gems/screengrab-0.2.1/lib/screengrab/runner.rb:52:inrun'
from /var/lib/gems/2.1.0/gems/screengrab-0.2.1/bin/screengrab:39:in block (2 levels) in run' from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:178:incall'
from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call' from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:153:inrun'
from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in run_active_command' from /var/lib/gems/2.1.0/gems/fastlane_core-0.36.8/lib/fastlane_core/ui/fastlane_runner.rb:23:inrun!'
from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in run!' from /var/lib/gems/2.1.0/gems/screengrab-0.2.1/bin/screengrab:56:inrun'
from /var/lib/gems/2.1.0/gems/screengrab-0.2.1/bin/screengrab:62:in <top (required)>' from /usr/local/bin/screengrab:23:inload'
from /usr/local/bin/screengrab:23:in `

'
~ $ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux-gnu]
~ $ sudo gem install fastlane
Building native extensions. This could take a while...
ERROR: Error installing fastlane:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/unf_ext-0.0.7.2/ext/unf_ext

/usr/bin/ruby2.3 -r ./siteconf20160301-30575-gfbvtm.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/unf_ext-0.0.7.2 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/unf_ext-0.0.7.2/gem_make.out
~ $

Thanks for your help.

@fastlanebot

This comment has been minimized.

fastlanebot commented Mar 1, 2016

@i2amsam commented

@VictorJava fastlane isn't required for screengrab, so that native extension issue another issue. The first error is very odd, it looks like there's no response code from shelling out. What Ubuntu release are you using? It looks like the command was run successfully, but there was just no response code for some reason.

From the command line could you try:

adb devices -l ; echo "result code: $?"
@fastlanebot

This comment has been minimized.

fastlanebot commented Mar 3, 2016

@VictorJava commented

Hi i2amsam,
Thanks for your reply.
OS Ubuntu 15.10 without any another builds and so on.

Here you are

~ $ adb devices -l; echo "result code: $?"
$? is not the exit status. In fish, please use $status.
fish: adb devices -l; echo "result code: $?"

~ $ adb devices -l; echo "result code: $status?" List of devices attached 08a07e0c43aab722 device usb:1-3 product:hammerhead model:Nexus_5 device:hammerhead

result code: 0?
~ $

@lucasvanhalst

This comment has been minimized.

lucasvanhalst commented Mar 17, 2016

Any updates on this?
I'm also running into this issue, also on Ubuntu 15.10.

@lucasvanhalst

This comment has been minimized.

lucasvanhalst commented Mar 18, 2016

Thanks for the very fast response @i2amsam
I updated the gems to the latest version, but unfortunately the problem persists 😞.

😨  An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.
👍  This makes resolving issues much easier and helps improve fastlane.
🔒  The reports will be stored securely on getsentry.com.
🙊  More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3
-------------------------------------------------------------------------------------------
/var/lib/gems/2.1.0/gems/fastlane_core-0.39.0/lib/fastlane_core/command_executor.rb:79:in `execute': [!] undefined method `exitstatus' for nil:NilClass (NoMethodError)
        from /var/lib/gems/2.1.0/gems/screengrab-0.3.1/lib/screengrab/runner.rb:80:in `select_device'
        from /var/lib/gems/2.1.0/gems/screengrab-0.3.1/lib/screengrab/runner.rb:52:in `run'
        from /var/lib/gems/2.1.0/gems/screengrab-0.3.1/bin/screengrab:39:in `block (2 levels) in run'
        from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
        from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
        from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
        from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
        from /var/lib/gems/2.1.0/gems/fastlane_core-0.39.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
        from /var/lib/gems/2.1.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
        from /var/lib/gems/2.1.0/gems/screengrab-0.3.1/bin/screengrab:56:in `run'
        from /var/lib/gems/2.1.0/gems/screengrab-0.3.1/bin/screengrab:62:in `<top (required)>'
        from /usr/local/bin/screengrab:22:in `load'
        from /usr/local/bin/screengrab:22:in `<main>'
@i2amsam

This comment has been minimized.

i2amsam commented Mar 18, 2016

@lvh1 could you try this?

gem install fastlane_core -v 0.38.0
gem uninstall fastlane_core -v 0.39.0

and try again? As tracked in #3821 I pushed a second update to revert the change while I track down some test flakiness, but the fix in 0.38.0 may solve this problem, it would be awesome if you could verify.

@lucasvanhalst

This comment has been minimized.

lucasvanhalst commented Mar 18, 2016

That did seem to fix it. Thanks a lot!

@KrauseFx KrauseFx closed this Mar 19, 2016

@joeabouassi joeabouassi referenced this issue May 12, 2016

Closed

Screengrab issue on Circle-Ci #4500

2 of 2 tasks complete

@fastlane fastlane locked and limited conversation to collaborators Sep 22, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.