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

New screenshot method crashes emulator #81

Closed
scompt opened this issue Aug 10, 2012 · 5 comments
Closed

New screenshot method crashes emulator #81

scompt opened this issue Aug 10, 2012 · 5 comments

Comments

@scompt
Copy link
Contributor

scompt commented Aug 10, 2012

I'm just getting around to testing the new screenshot method from #69 and it looks like it reliably crashes the instrumentation backend in my 2.2 and 2.3 emulators. I haven't tried any other versions. The old one worked fine for me, even if it is less elegant than /screenshot.

What do you think about an environment variable or some configuration flag to select which screenshot method to use?

  • /screenshot
  • screenShotTaker.jar
  • None
@jonasmaturana
Copy link
Contributor

Any idea why it crashes? Out of memory?

On Friday, August 10, 2012 at 11:57 , Edward Dale wrote:

I'm just getting around to testing the new screenshot method from #69 (#69) and it looks like it reliably crashes the instrumentation backend in my 2.2 and 2.3 emulators. I haven't tried any other versions. The old one worked fine for me, even if it is less elegant than /screenshot.
What do you think about an environment variable or some configuration flag to select which screenshot method to use?
/screenshot
screenShotTaker.jar
None


Reply to this email directly or view it on GitHub (#81).

@scompt
Copy link
Contributor Author

scompt commented Aug 10, 2012

Nope, segfault :-(

08-10 11:28:42.065 I/System.out( 2741): result:{"bonusInformation":[],"message":"Text'login_login_failed_payment_required_alert_message' was not found","success":false}
08-10 11:28:42.175 I/System.out( 2741): URI: /screenshot
08-10 11:28:42.478 I/DEBUG   (   31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-10 11:28:42.478 I/DEBUG   (   31): Build fingerprint: 'generic/sdk/generic:2.3.3/GRI34/101070:eng/test-keys'
08-10 11:28:42.478 I/DEBUG   (   31): pid: 2741, tid: 2741  >>> de.simfy.androidapp.calabash <<<
08-10 11:28:42.478 I/DEBUG   (   31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
08-10 11:28:42.478 I/DEBUG   (   31):  r0 deadbaad  r1 0000000c  r2 00000027  r3 00000000
08-10 11:28:42.478 I/DEBUG   (   31):  r4 00000080  r5 afd46668  r6 0000a000  r7 43f00000
08-10 11:28:42.486 I/DEBUG   (   31):  r8 00000000  r9 beb4b1d8  10 beb4b1b0  fp 000001e0
08-10 11:28:42.486 I/DEBUG   (   31):  ip ffffffff  sp beb4ae58  lr afd19375  pc afd15ef0  cpsr 00000030
08-10 11:28:42.707 I/DEBUG   (   31):          #00  pc 00015ef0  /system/lib/libc.so
08-10 11:28:42.707 I/DEBUG   (   31):          #01  pc 00013852  /system/lib/libc.so
08-10 11:28:42.707 I/DEBUG   (   31): 
08-10 11:28:42.707 I/DEBUG   (   31): code around pc:
08-10 11:28:42.707 I/DEBUG   (   31): afd15ed0 68241c23 d1fb2c00 68dae027 d0042a00 
08-10 11:28:42.716 I/DEBUG   (   31): afd15ee0 20014d18 6028447d 48174790 24802227 
08-10 11:28:42.716 I/DEBUG   (   31): afd15ef0 f7f57002 2106eb56 ec92f7f6 0563aa01 
08-10 11:28:42.716 I/DEBUG   (   31): afd15f00 60932100 91016051 1c112006 e818f7f6 
08-10 11:28:42.716 I/DEBUG   (   31): afd15f10 2200a905 f7f62002 f7f5e824 2106eb42 
08-10 11:28:42.716 I/DEBUG   (   31): 
08-10 11:28:42.716 I/DEBUG   (   31): code around lr:
08-10 11:28:42.716 I/DEBUG   (   31): afd19354 b0834a0d 589c447b 26009001 686768a5 
08-10 11:28:42.716 I/DEBUG   (   31): afd19364 220ce008 2b005eab 1c28d003 47889901 
08-10 11:28:42.726 I/DEBUG   (   31): afd19374 35544306 d5f43f01 2c006824 b003d1ee 
08-10 11:28:42.726 I/DEBUG   (   31): afd19384 bdf01c30 000281a8 ffffff88 1c0fb5f0 
08-10 11:28:42.726 I/DEBUG   (   31): afd19394 43551c3d a904b087 1c16ac01 604d9004 
08-10 11:28:42.726 I/DEBUG   (   31): 
08-10 11:28:42.726 I/DEBUG   (   31): stack:
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae18  00000015  
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae1c  afd18407  /system/lib/libc.so
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae20  afd4270c  /system/lib/libc.so
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae24  afd426b8  /system/lib/libc.so
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae28  00000000  
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae2c  afd19375  /system/lib/libc.so
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae30  00010000  [heap]
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae34  afd183d9  /system/lib/libc.so
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae38  00000088  
08-10 11:28:42.726 I/DEBUG   (   31):     beb4ae3c  00000000  
08-10 11:28:42.736 I/DEBUG   (   31):     beb4ae40  afd46668  
08-10 11:28:42.736 I/DEBUG   (   31):     beb4ae44  0000a000  [heap]
08-10 11:28:42.736 I/DEBUG   (   31):     beb4ae48  43f00000  /data/dalvik-cache/system@framework@android.test.runner.jar@classes.dex
08-10 11:28:42.736 I/DEBUG   (   31):     beb4ae4c  afd18677  /system/lib/libc.so
08-10 11:28:42.736 I/DEBUG   (   31):     beb4ae50  df002777  
08-10 11:28:42.736 I/DEBUG   (   31):     beb4ae54  e3a070ad  
08-10 11:28:42.736 I/DEBUG   (   31): #00 beb4ae58  beb4af38  
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae5c  af904aac  /system/lib/libcutils.so
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae60  afd46608  
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae64  afd11010  /system/lib/libc.so
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae68  44adf608  
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae6c  fffffbdf  
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae70  000000da  
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae74  afd46450  
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae78  000001b4  
08-10 11:28:42.746 I/DEBUG   (   31):     beb4ae7c  afd13857  /system/lib/libc.so
08-10 11:28:42.746 I/DEBUG   (   31): #01 beb4ae80  afd46450  
08-10 11:28:42.756 I/DEBUG   (   31):     beb4ae84  afd13857  /system/lib/libc.so
08-10 11:28:42.756 I/DEBUG   (   31):     beb4ae88  ffffffff  
08-10 11:28:42.756 I/DEBUG   (   31):     beb4ae8c  43f00000  /data/dalvik-cache/system@framework@android.test.runner.jar@classes.dex
08-10 11:28:42.756 I/DEBUG   (   31):     beb4ae90  00000000  
08-10 11:28:42.756 I/DEBUG   (   31):     beb4ae94  af904aac  /system/lib/libcutils.so
08-10 11:28:42.756 I/DEBUG   (   31):     beb4ae98  44adf640  
08-10 11:28:42.756 I/DEBUG   (   31):     beb4ae9c  44adf608  
08-10 11:28:42.756 I/DEBUG   (   31):     beb4aea0  44adf608  
08-10 11:28:42.756 I/DEBUG   (   31):     beb4aea4  00000000  
08-10 11:28:42.766 I/DEBUG   (   31):     beb4aea8  43f00000  /data/dalvik-cache/system@framework@android.test.runner.jar@classes.dex
08-10 11:28:42.766 I/DEBUG   (   31):     beb4aeac  afd14769  /system/lib/libc.so
08-10 11:28:42.766 I/DEBUG   (   31):     beb4aeb0  44adf608  
08-10 11:28:42.766 I/DEBUG   (   31):     beb4aeb4  afc009cf  /system/lib/libstdc++.so
08-10 11:28:42.766 I/DEBUG   (   31):     beb4aeb8  44adf608  
08-10 11:28:42.766 I/DEBUG   (   31):     beb4aebc  ab151074  /system/lib/libskia.so
08-10 11:28:42.766 I/DEBUG   (   31):     beb4aec0  beb4aef8  
08-10 11:28:42.766 I/DEBUG   (   31):     beb4aec4  ab16ee68  /system/lib/libskia.so
08-10 11:28:46.936 I/DEBUG   (   31): tid 2767 does not exist in pid 2741. ignoring debug request
08-10 11:28:46.945 D/Zygote  (   33): Process 2741 terminated by signal (11)

@jonasmaturana
Copy link
Contributor

I just spotted the same problem on a Desire S running 2.3.3.

On Friday, August 10, 2012 at 12:00 , Edward Dale wrote:

Nope, segfault :-(
08-10 11:28:42.065 I/System.out( 2741): result:{"bonusInformation":[],"message":"Text'login_login_failed_payment_required_alert_message' was not found","success":false} 08-10 11:28:42.175 I/System.out( 2741): URI: /screenshot 08-10 11:28:42.478 I/DEBUG ( 31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 08-10 11:28:42.478 I/DEBUG ( 31): Build fingerprint: 'generic/sdk/generic:2.3.3/GRI34/101070:eng/test-keys' 08-10 11:28:42.478 I/DEBUG ( 31): pid: 2741, tid: 2741 >>> de.simfy.androidapp.calabash <<< 08-10 11:28:42.478 I/DEBUG ( 31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad 08-10 11:28:42.478 I/DEBUG ( 31): r0 deadbaad r1 0000000c r2 00000027 r3 00000000 08-10 11:28:42.478 I/DEBUG ( 31): r4 00000080 r5 afd46668 r6 0000a000 r7 43f00000 08-10 11:28:42.486 I/DEBUG ( 31): r8 00000000 r9 beb4b1d8 10 beb4b1b0 fp 000001e0 08-10 11:28:42.486 I/DEBUG ( 31): ip ffffffff sp beb4ae58 lr afd19375 pc afd15ef0 cpsr 00000030 08-10 11:28:42.707 I/DEBUG ( 31): #00 pc 00015ef0 /system/lib/libc.so 08-10 11:28:42.707 I/DEBUG ( 31): #1 pc 00013852 /system/lib/libc.so 08-10 11:28:42.707 I/DEBUG ( 31): 08-10 11:28:42.707 I/DEBUG ( 31): code around pc: 08-10 11:28:42.707 I/DEBUG ( 31): afd15ed0 68241c23 d1fb2c00 68dae027 d0042a00 08-10 11:28:42.716 I/DEBUG ( 31): afd15ee0 20014d18 6028447d 48174790 24802227 08-10 11:28:42.716 I/DEBUG ( 31): afd15ef0 f7f57002 2106eb56 ec92f7f6 0563aa01 08-10 11:28:42.716 I/DEBUG ( 31): afd15f00 60932100 91016051 1c112006 e818f7f6 08-10 11:28:42.716 I/DEBUG ( 31): afd15f10 2200a905 f7f62002 f7f5e824 2106eb42 08-10 11:28:42.716 I/DEBUG ( 31): 08-10 11:28:42.716 I/DEBUG ( 31): code around lr: 08-10 11:28:42.716 I/DEBUG ( 31): afd19354 b0834a0d 589c447b 26009001 686768a5 08-10 11:28:42.716 I/DEBUG ( 31): afd19364 220ce008 2b005eab 1c28d003 47889901 08-10 11:28:42.726 I/DEBUG ( 31): afd19374 35544306 d5f43f01 2c006824 b003d1ee 08-10 11:28:42.726 I/DEBUG ( 31): afd19384 bdf01c30 000281a8 ffffff88 1c0fb5f0 08-10 11:28:42.726 I/DEBUG ( 31): afd19394 43551c3d a904b087 1c16ac01 604d9004 08-10 11:28:42.726 I/DEBUG ( 31): 08-10 11:28:42.726 I/DEBUG ( 31): stack: 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae18 00000015 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae1c afd18407 /system/lib/libc.so 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae20 afd4270c /system/lib/libc.so 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae24 afd426b8 /system/lib/libc.so 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae28 00000000 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae2c afd19375 /system/lib/libc.so 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae30 00010000 [heap] 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae34 afd183d9 /system/lib/libc.so 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae38 00000088 08-10 11:28:42.726 I/DEBUG ( 31): beb4ae3c 00000000 08-10 11:28:42.736 I/DEBUG ( 31): beb4ae40 afd46668 08-10 11:28:42.736 I/DEBUG ( 31): beb4ae44 0000a000 [heap] 08-10 11:28:42.736 I/DEBUG ( 31): beb4ae48 43f00000 /data/dalvik-cache/system@framework@android.test.runner.jar (mailto:framework@android.test.runner.jar)@classes.dex 08-10 11:28:42.736 I/DEBUG ( 31): beb4ae4c afd18677 /system/lib/libc.so 08-10 11:28:42.736 I/DEBUG ( 31): beb4ae50 df002777 08-10 11:28:42.736 I/DEBUG ( 31): beb4ae54 e3a070ad 08-10 11:28:42.736 I/DEBUG ( 31): #00 beb4ae58 beb4af38 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae5c af904aac /system/lib/libcutils.so 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae60 afd46608 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae64 afd11010 /system/lib/libc.so 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae68 44adf608 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae6c fffffbdf 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae70 000000da 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae74 afd46450 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae78 000001b4 08-10 11:28:42.746 I/DEBUG ( 31): beb4ae7c afd13857 /system/lib/libc.so 08-10 11:28:42.746 I/DEBUG ( 31): #1 beb4ae80 afd46450 08-10 11:28:42.756 I/DEBUG ( 31): beb4ae84 afd13857 /system/lib/libc.so 08-10 11:28:42.756 I/DEBUG ( 31): beb4ae88 ffffffff 08-10 11:28:42.756 I/DEBUG ( 31): beb4ae8c 43f00000 /data/dalvik-cache/system@framework@android.test.runner.jar (mailto:framework@android.test.runner.jar)@classes.dex 08-10 11:28:42.756 I/DEBUG ( 31): beb4ae90 00000000 08-10 11:28:42.756 I/DEBUG ( 31): beb4ae94 af904aac /system/lib/libcutils.so 08-10 11:28:42.756 I/DEBUG ( 31): beb4ae98 44adf640 08-10 11:28:42.756 I/DEBUG ( 31): beb4ae9c 44adf608 08-10 11:28:42.756 I/DEBUG ( 31): beb4aea0 44adf608 08-10 11:28:42.756 I/DEBUG ( 31): beb4aea4 00000000 08-10 11:28:42.766 I/DEBUG ( 31): beb4aea8 43f00000 /data/dalvik-cache/system@framework@android.test.runner.jar (mailto:framework@android.test.runner.jar)@classes.dex 08-10 11:28:42.766 I/DEBUG ( 31): beb4aeac afd14769 /system/lib/libc.so 08-10 11:28:42.766 I/DEBUG ( 31): beb4aeb0 44adf608 08-10 11:28:42.766 I/DEBUG ( 31): beb4aeb4 afc009cf /system/lib/libstdc++.so 08-10 11:28:42.766 I/DEBUG ( 31): beb4aeb8 44adf608 08-10 11:28:42.766 I/DEBUG ( 31): beb4aebc ab151074 /system/lib/libskia.so 08-10 11:28:42.766 I/DEBUG ( 31): beb4aec0 beb4aef8 08-10 11:28:42.766 I/DEBUG ( 31): beb4aec4 ab16ee68 /system/lib/libskia.so 08-10 11:28:46.936 I/DEBUG ( 31): tid 2767 does not exist in pid 2741. ignoring debug request 08-10 11:28:46.945 D/Zygote ( 33): Process 2741 terminated by signal (11)


Reply to this email directly or view it on GitHub (#81 (comment)).

@scompt
Copy link
Contributor Author

scompt commented Aug 18, 2012

I just saw this code for grabbing a screenshot of a view. I don't have the time at moment to test it, but it might avoid the emulator crash problem.

@jonasmaturana
Copy link
Contributor

With the changes in 0.2.18 I haven't seen the issue since then.
Feel free to comment here if you see the problem again.

Will close it for now.

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

2 participants