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 trial

Android

Error in getting data from the web(blog reader app)

I am learning how to build a blog reader app and my log shows the error "cutils-trace Error opening trace file. No such file or directory (2)" , every time i try to run it. Please help !

4 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Can you paste in more information from your logcat view? It might help trace back to the root issue.

I was able to solve the issue.

Thanks Anyways

John Chun
John Chun
3,230 Points

I got the same problem.

My logcat shows:

Exception caught: java.io.EOFexception

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Hi John,

Can you copy and paste the contents in logcat into a new question? Let's revisit it there.

Hey Ben,

Here's my logcat view for the error "error opening trace file: No such file or directory (2)".. The app works fine till i call 4 blogs in NUMBER_OF_POST, but the moment i enter NUMBER_OF_POST=5; I get these errors in logcat.

09-19 10:38:17.827: E/Trace(812): error opening trace file: No such file or directory (2) 09-19 10:38:18.652: D/dalvikvm(812): GC_FOR_ALLOC freed 38K, 6% free 2556K/2716K, paused 86ms, total 93ms 09-19 10:38:18.682: I/dalvikvm-heap(812): Grow heap (frag case) to 3.217MB for 635812-byte allocation 09-19 10:38:18.762: D/dalvikvm(812): GC_FOR_ALLOC freed 2K, 5% free 3175K/3340K, paused 84ms, total 84ms 09-19 10:38:18.862: D/dalvikvm(812): GC_CONCURRENT freed <1K, 5% free 3188K/3340K, paused 24ms+16ms, total 103ms 09-19 10:38:19.442: D/libEGL(812): loaded /system/lib/egl/libEGL_emulation.so

I have also tried doing FORCE STOP several times, cleaning the project and also restarting the emulator but it doesn't seem to work.

Please help!!

Ben Jakuben
Ben Jakuben
Treehouse Teacher

This might be because of a known issue. Check out the Teacher's Notes on this page for a possible solution: http://teamtreehouse.com/library/build-a-blog-reader-android-app/getting-data-from-the-web/getting-json-data-from-an-http-request-2

Let us know in a new Forum post if that doesn't help, though!