Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNick Vitsinsky
7,246 PointsOnly black screen on emulator is shown
This is a copy\paste what I've got in a logcat
''03-01 13:38:16.076 939-939/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-01 13:38:16.076 939-939/? I/DEBUG: Build fingerprint: 'Android/sdk_google_phone_x86/generic_x86:5.1.1/LMY48X/2524186:userdebug/test-keys'
03-01 13:38:16.076 939-939/? I/DEBUG: Revision: '0'
03-01 13:38:16.076 939-939/? I/DEBUG: ABI: 'x86'
03-01 13:38:16.076 939-939/? I/DEBUG: pid: 2939, tid: 2939, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
03-01 13:38:16.076 939-939/? I/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-01 13:38:16.078 939-939/? I/DEBUG: eax 00000000 ebx 00000b7b ecx 00000b7b edx 00000006
03-01 13:38:16.078 939-939/? I/DEBUG: esi b77b3c48 edi 00000002
03-01 13:38:16.079 939-939/? I/DEBUG: xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b
03-01 13:38:16.079 939-939/? I/DEBUG: eip b76d1d86 ebp 00000b7b esp bf8e6d30 flags 00000282
03-01 13:38:16.079 939-939/? I/DEBUG: #00 pc 00073d86 /system/lib/libc.so (tgkill+22)
03-01 13:38:16.079 939-939/? I/DEBUG: #01 pc 0002217b /system/lib/libc.so (pthread_kill+155)
03-01 13:38:16.079 939-939/? I/DEBUG: #02 pc 000239f4 /system/lib/libc.so (raise+36)
03-01 13:38:16.079 939-939/? I/DEBUG: #03 pc 0001bdf4 /system/lib/libc.so (abort+84)
03-01 13:38:16.079 939-939/? I/DEBUG: #04 pc 000314e5 /system/lib/libsurfaceflinger.so
03-01 13:38:16.080 939-939/? I/DEBUG: #05 pc 000201d7 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+199)
03-01 13:38:16.080 939-939/? I/DEBUG: #06 pc 00000b51 /system/bin/surfaceflinger
03-01 13:38:16.080 939-939/? I/DEBUG: #07 pc 00012f94 /system/lib/libc.so (__libc_init+100)
03-01 13:38:16.080 939-939/? I/DEBUG: #08 pc 00000cd6 /system/bin/surfaceflinger
03-01 13:38:16.140 2940-2940/? I/mediaserver: ServiceManager: 0xb5835620
03-01 13:38:16.140 2940-2940/? I/AudioFlinger: Using default 3000 mSec as standby time.
03-01 13:38:16.144 2940-2940/? I/ServiceManager: Waiting for service batterystats...
03-01 13:38:16.205 929-929/? I/ServiceManager: service 'media.audio_flinger' died
03-01 13:38:20.260 2960-2960/? I/Netd: Netd 1.0 starting
03-01 13:38:20.260 2960-2960/? E/Netd: Failed to open /proc/sys/net/ipv6/conf/default/optimistic_dad: No such file or directory
03-01 13:38:20.260 2960-2960/? E/Netd: Failed to open /proc/sys/net/ipv6/conf/eth0/optimistic_dad: No such file or directory
03-01 13:38:20.260 2960-2960/? E/Netd: Failed to open /proc/sys/net/ipv6/conf/lo/optimistic_dad: No such file or directory
03-01 13:38:20.260 2960-2960/? E/Netd: Failed to open /proc/sys/net/ipv6/conf/sit0/optimistic_dad: No such file or directory
03-01 13:38:20.260 2960-2960/? E/Netd: Failed to open /proc/sys/net/ipv6/conf/default/use_optimistic: No such file or directory
03-01 13:38:20.261 2960-2960/? E/Netd: Failed to open /proc/sys/net/ipv6/conf/eth0/use_optimistic: No such file or directory
03-01 13:38:20.261 2960-2960/? E/Netd: Failed to open /proc/sys/net/ipv6/conf/lo/use_optimistic: No such file or directory
03-01 13:38:20.261 2960-2960/? E/Netd: Failed to open /proc/sys/net/ipv6/conf/sit0/use_optimistic: No such file or directory
03-01 13:38:20.289 2961-2961/? I/SurfaceFlinger: SurfaceFlinger is starting
03-01 13:38:20.292 2961-2961/? I/SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
03-01 13:38:20.292 2961-2961/? D/libEGL: Emulator without GPU support detected. Fallback to legacy software renderer.
03-01 13:38:20.293 2961-2961/? D/libEGL: loaded /system/lib/egl/libGLES_android.so
03-01 13:38:20.327 2961-2961/? D/gralloc_goldfish: Emulator without host-side GPU emulation detected.
03-01 13:38:20.327 2961-2961/? E/SurfaceFlinger: hwcomposer module not found
03-01 13:38:20.327 2961-2961/? E/SurfaceFlinger: ERROR: failed to open framebuffer (No such file or directory), aborting
03-01 13:38:20.327 2961-2961/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 2961 (surfaceflinger)
1 Answer
Kourosh Raeen
23,733 PointsI'm not quite sure what the cause of this problem is, but something that caught my eye in the logcat is the line: Emulator without host-side GPU emulation detected.
In Android Studio, click on the AVD Manager icon in the Toolbar. Once the AVD Manager opens you should see your emulator listed there. Under Actions, click on the pencil icon to "Edit this AVD". In the newly opened window that shows details of your emulator's configuration, make sure that the "Use Host GPU" checkbox is selected.
Give this a try and hopefully it will take care of the problem. Also, you may want to use the Genymotion emulator. Here's the link for a Treehouse course on Genymotion: https://teamtreehouse.com/library/android-tools/getting-started-with-genymotion/what-is-genymotion