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 trialGerardo Guzman
4,480 PointsError: eglSurfaceAttrib not implemented? Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6b7ba00, error=EGL_SUCCESS
I am using the downloaded code for MainActivity.java have increased the memory of the virtual devices, tested on two different Nexus API 21 and API 19, still I get this error in both cases. Help appreciated, thanks.
05-29 14:57:23.217 2636-2636/teamtreehouse.com.stormy I/art﹕ Not late-enabling -Xcheck:jni (already on) 05-29 14:57:23.566 2636-2636/teamtreehouse.com.stormy D/MainActivity﹕ Main UI copde is running! 05-29 14:57:23.646 2636-2655/teamtreehouse.com.stormy D/OpenGLRenderer﹕ Render dirty regions requested: true 05-29 14:57:23.801 2636-2636/teamtreehouse.com.stormy D/﹕ HostConnection::get() New Host Connection established 0xa6b7f6e0, tid 2636 05-29 14:57:23.818 2636-2643/teamtreehouse.com.stormy W/art﹕ Suspending all threads took: 69.583ms 05-29 14:57:23.850 2636-2648/teamtreehouse.com.stormy W/art﹕ Suspending all threads took: 19.792ms 05-29 14:57:23.883 2636-2636/teamtreehouse.com.stormy D/Atlas﹕ Validating map... 05-29 14:57:23.910 2636-2648/teamtreehouse.com.stormy I/art﹕ Background sticky concurrent mark sweep GC freed 8197(464KB) AllocSpace objects, 0(0B) LOS objects, 14% free, 966KB/1135KB, paused 52.419ms total 351.769ms 05-29 14:57:23.946 2636-2648/teamtreehouse.com.stormy W/art﹕ Suspending all threads took: 35.920ms 05-29 14:57:24.066 2636-2648/teamtreehouse.com.stormy I/art﹕ Background partial concurrent mark sweep GC freed 2777(129KB) AllocSpace objects, 0(0B) LOS objects, 51% free, 948KB/1972KB, paused 2.863ms total 114.938ms 05-29 14:57:24.182 2636-2655/teamtreehouse.com.stormy D/﹕ HostConnection::get() New Host Connection established 0xa6b83250, tid 2655 05-29 14:57:24.204 2636-2655/teamtreehouse.com.stormy I/OpenGLRenderer﹕ Initialized EGL, version 1.4 05-29 14:57:24.264 2636-2654/teamtreehouse.com.stormy V/MainActivity﹕ {"latitude":37.8267,"longitude":-122.423,"timezone":"America/Los_Angeles","offset":-7,"currently":{"time":1432925872,"summary":"Mostly Cloudy","icon":"partly-cloudy-day","nearestStormDistance":118,"nearestStormBearing":137,"precipIntensity":0,"precipProbability":0,"temperature":55.16,"apparentTemperature":55.16,"dewPoint":48.54,"humidity":0.78,"windSpeed":7.87,"windBearing":261,"visibility":9.2,"cloudCover":0.82,"pressure":1015.3,"ozone":330.07},"minutely":{"summary":"Mostly cloudy for the hour.","icon":"partly-cloudy-day","data":[{"time":1432925820,"precipIntensity":0,"precipProbability":0},{"time":1432925880,"precipIntensity":0,"precipProbability":0},{"time":1432925940,"precipIntensity":0,"precipProbability":0},{"time":1432926000,"precipIntensity":0,"precipProbability":0},{"time":1432926060,"precipIntensity":0,"precipProbability":0},{"time":1432926120,"precipIntensity":0,"precipProbability":0},{"time":1432926180,"precipIntensity":0,"precipProbability":0},{"time":1432926240,"precipIntensity":0,"precipProbability":0},{"time":1432926300,"precipIntensity":0,"precipProbability":0},{"time":1432926360,"precipIntensity":0,"precipProbability":0},{"time":1432926420,"precipIntensity":0,"precipProbability":0},{"time":1432926480,"precipIntensity":0,"precipProbability":0},{"time":1432926540,"precipIntensity":0,"precipProbability":0},{"time":1432926600,"precipIntensity":0,"precipProbability":0},{"time":1432926660,"precipIntensity":0,"precipProbability":0},{"time":1432926720,"precipIntensity":0,"precipProbability":0},{"time":1432926780,"precipIntensity":0,"precipProbability":0},{"time":1432926840,"precipIntensity":0,"precipProbability":0},{"time":1432926900,"precipIntensity":0,"precipProbability":0},{"time":1432926960,"precipIntensity":0,"precipProbability":0},{"time":1432927020,"precipIntensity":0,"precipProbability":0},{"time":1432927080,"precipIntensity":0,"precipProbability":0},{"time":1432927140,"precipIntensity":0,"precipProbability":0},{"time":1432927200,"precipIntensity":0,"precipProbability":0},{"time":1432927260,"precipIntensity":0,"precipProbability":0},{"time":1432927320,"precipIntensity":0,"precipProbability":0},{"time":1432927380,"precipIntensity":0,"precipProbability":0},{"time":1432927440,"precipIntensity":0,"precipProbability":0},{"time":1432927500,"precipIntensity":0,"precipProbability":0},{"time":1432927560,"precipIntensity":0,"precipProbability":0},{"time":1432927620,"precipIntensity":0,"precipProbability":0},{"time":1432927680,"precipIntensity":0,"precipProbability":0},{"time":1432927740,"precipIntensity":0,"precipProbability":0},{"time":1432927800,"precipIntensity":0,"precipProbability":0},{"time":1432927860,"precipIntensity":0,"precipProbability":0},{"time":1432927920,"precipIntensity":0,"precipProbability":0},{"time":1432927980,"precipIntensity":0,"precipProbability":0},{"time":1432928040,"precipIntensity":0,"precipProbability":0},{"time":1432928100,"precipIntensity":0,"precipProbability":0},{"time":1432928160,"precipIntensity":0,"precipProbability":0},{"time":1432928220,"precipIntensity":0,"precipProbability":0},{"time":1432928280,"precipIntensity":0,"precipProbability":0},{"time":1432928340,"precipIntensity":0,"precipProbability":0},{"time":1432928400,"precipIntensity":0,"precipProbability":0},{"time":1432928460,"precipIntensity":0,"precipProbability":0},{"time":1432928520,"precipIntensity":0,"precipProbability":0},{"time":1432928580,"precipIntensity":0,"precipProbability":0},{"time":1432928640,"precipIntensity":0,"precipProbability":0},{"time":1432928700,"precipIntensity":0,"precipProbability":0},{"time":1432928760,"precipIntensity":0,"precipProbability":0},{"time":1432928820,"precipIntensity":0,"precipProbability":0},{"time":1432928880,"precipIntensity":0,"precipProbability":0},{"time":1432928940,"precipIntensity":0,"precipProbability":0},{"time":1432929000,"precipIntensity":0,"precipProbability":0},{"time":1432929060,"precipIntensity":0,"precipProbability":0},{"time":1432929120,"precipIntensity":0,"precipProbability":0},{"time":1432929180,"precipIntensity":0,"precipProbab 05-29 14:57:24.283 2636-2655/teamtreehouse.com.stormy D/OpenGLRenderer﹕ Enabling debug mode 0 05-29 14:57:24.313 2636-2655/teamtreehouse.com.stormy W/EGL_emulation﹕ eglSurfaceAttrib not implemented 05-29 14:57:24.313 2636-2655/teamtreehouse.com.stormy W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6b7ba00, error=EGL_SUCCESS 05-29 14:57:24.677 2636-2636/teamtreehouse.com.stormy I/Choreographer﹕ Skipped 30 frames! The application may be doing too much work on its main thread.
1 Answer
Steve Hunter
57,712 PointsHi there,
Your code is working. The error you've highlighted isn't anything to worry about - your JSON is being brought back just fine from what you've posted there.
Ignore the errors if your app is working - there are many, many issues going on all the time in your device or emulator that can safely be ignored or aren't in the scope of your app.
The weather data is being retrieved. Job well done!
Steve.
Gerardo Guzman
4,480 PointsGerardo Guzman
4,480 PointsSteve, thank you for this clarification.