# PVRTrace on Android Xmarin OpenTK fails

**URL:** <https://forums.imgtec.com/t/pvrtrace-on-android-xmarin-opentk-fails/2252>\
**Category:** PowerVR Insider\
**Tags:** pvrtrace\
**Created:** [February 14, 2015, 9:41pm UTC](https://forums.imgtec.com/t/pvrtrace-on-android-xmarin-opentk-fails/2252 "2015-02-14T21:41:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codemonkey-2](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@codemonkey-2](https://forums.imgtec.com/u/codemonkey-2)\
**Post date:** [February 14, 2015, 9:41pm UTC](https://forums.imgtec.com/t/pvrtrace-on-android-xmarin-opentk-fails/2252/1 "2015-02-14T21:41:52Z")

</div>

I am trying to get PVRTrace working on my Asus Memo Pad 7 which was not rooted. I was able to build and install my apk, and copy the pvrtraceconfig.json to /sdcard folder on my device. Debugging the the app shows that System.Load(“libPVRTrace.so”), etc, succeeds, and I get the following output:  
  
  
  
…  
  
[PVRTrace] Setting EglLibraryPath default to ‘/system/lib/libEGL.so’’  
  
[PVRTrace] Setting Es1LibraryPath default to ‘/system/lib/libGLESv1.so’’  
  
[PVRTrace] Setting EglLibraryPath default to ‘/system/lib/libGLESv2.so’’  
  
…  
  
[Mono] DllImport loaded library ‘./libEGL.os’  
  
… and so on  
  
  
  
The above three lines are the only indication that PVRTrace is part of my app. There are no errors; no other PVRTrace output. It is almost as if the config json file was ignored; and tracing never started.  
  
  
  
The pvrtracconfig.json is cut-and-paste from documentation (except that I changed the path of EglLibraryPath, etc, to actual libs on the device).  
  
  
  
Has anyone tested PVRTrace with Xamarin/OpenTK? Or am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![PaulLy](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@PaulLy](https://forums.imgtec.com/u/PaulLy)\
**Post date:** [February 16, 2015, 11:07am UTC](https://forums.imgtec.com/t/pvrtrace-on-android-xmarin-opentk-fails/2252/2 "2015-02-16T11:07:11Z")

</div>

Could you check in /data/local/tmp that a file exists named “pvrtrace\_enable” which has the contents “1”?  
  
  
  
Otherwise, send the logcat for the application loading.

---

<div class="post-metadata">

**Author:** ![codemonkey-2](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@codemonkey-2](https://forums.imgtec.com/u/codemonkey-2)\
**Post date:** [February 16, 2015, 9:36pm UTC](https://forums.imgtec.com/t/pvrtrace-on-android-xmarin-opentk-fails/2252/3 "2015-02-16T21:36:03Z")

</div>

I did add pvrtrace\_enable to /data/local/tmp; but it made no difference.  
  
  
  
I also tried to reply to the e-mail I received, but it bounced back with error "550 … User unknown"  
  
  
  
Here is the logcat output (from Release build):  
  
  
  
[monodroid-gc] GREF GC Threshold: 46800  
  
[AndroidInfo] Load PVRTrace libraries  
  
[PVRTrace] Setting EglLibraryPath default to ‘/system/lib/libEGL.so’.  
  
[PVRTrace] Setting Es1LibraryPath default to ‘/system/lib/libGLESv1\_CM.so’.  
  
[PVRTrace] Setting Es2LibraryPath default to ‘/system/lib/libGLESv2.so’.  
  
[GLView1] CreateFrameBuffer with George’s custom settings  
  
Device  
  
Manufacturer= asus  
  
Device = K007  
  
Brand = asus  
  
CPU = x86  
  
CPU = armeabi-v7a  
  
Hardware = mofd\_v0  
  
Product = WW\_K007  
  
Model = K007  
  
View  
  
Size = 1920x1004  
  
ColorFormat = 32 (8888)  
  
Depth = 24  
  
Stencil = 8  
  
Buffers = 0  
  
OpenGL Driver Info  
  
Vendor = Imagination Technologies  
  
Version = OpenGL ES

---

<div class="post-metadata">

**Author:** ![PaulLy](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@PaulLy](https://forums.imgtec.com/u/PaulLy)\
**Post date:** [February 17, 2015, 2:25pm UTC](https://forums.imgtec.com/t/pvrtrace-on-android-xmarin-opentk-fails/2252/4 "2015-02-17T14:25:13Z")

</div>

Would it be possible to share the your source code privately with us?  
  
  
  
If so, create a ticket on [https://pvrsupport.imgtec.com/new-ticket](https://pvrsupport.imgtec.com/new-ticket) and attached your files there.
