# PVRCarbon recording libraries for Aarch64

**URL:** <https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239>\
**Category:** Uncategorized\
**Created:** [July 27, 2020, 1:45pm UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239 "2020-07-27T13:45:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![desperado](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@desperado](https://forums.imgtec.com/u/desperado)\
**Post date:** [July 27, 2020, 1:45pm UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/1 "2020-07-27T13:45:03Z")

</div>

Is there something like this or desktop only? If yes, where can I find them?

Regards

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [July 28, 2020, 7:30am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/2 "2020-07-28T07:30:27Z")

</div>

Hi,

By mistake we did not pack the Recording and the Playback folders with PVRCarbon which carry these libraries. We are making an update today to include them. By the way, the recommended way of recording is from the desktop GUI using remote connection (principally on Android).

Regards.

Carlos.

---

<div class="post-metadata">

**Author:** ![desperado](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@desperado](https://forums.imgtec.com/u/desperado)\
**Post date:** [July 29, 2020, 1:42pm UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/3 "2020-07-29T13:42:52Z")

</div>

Greetings,

I tried the gles libraries from the Linux\_armv8\_64 directory and it crashes with a segmentation fault.  
Recorder Version v0.5 20.1@577104

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [July 29, 2020, 2:47pm UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/4 "2020-07-29T14:47:58Z")

</div>

Hello,

Do you have more details like an error log or similar?

Thanks.

Carlos.

---

<div class="post-metadata">

**Author:** ![desperado](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@desperado](https://forums.imgtec.com/u/desperado)\
**Post date:** [July 29, 2020, 2:51pm UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/5 "2020-07-29T14:51:13Z")

</div>

How do I generate that with maximum verbose?

That’s all I can currently offer:

PVRCarbon Recorder v0.5 (20.1@5771704)  
PVRCarbon|Note: By default to support multi-platform playback we override api alignment values to our recommended values. To disable this set the align recommended option to false  
PVRCarbon|Writing intermediate data to ‘/usr/bin/tmyapp.0000.parts’  
minicoredumper: dump: auxv link\_map name (/media/mp000/pvrcarbon/libPVRCarbon.so): 39 bytes @ 0x7fb9a87cc0  
minicoredumper: dump: build-id: (/media/mp000/pvrcarbon/libPVRCarbon.so) - found  
PVRCarbon Recorder v0.5 (20.1@5771704)  
PVRCarbon|Note: By default to support multi-platform playback we override api alignment values to our recommended values. To disable this set the align  
PVRCarbon|Debugger detected: This may interfere with tracking mapped memory which relies on segmentation faults. If it does, please configure your debugger to ignore SIGSEGVs  
PVRCarbon|To ignore SIGSEGVs with GDB: (gdb) handle SIGSEGV nostop noprint  
PVRCarbon|To ignore SIGSEGVs with LLDB: (lldb) pro hand -p true -s false SIGSEGV  
PVRCarbon|Writing intermediate data to ‘/usr/bin/myapp.0000.parts’  
PVRCarbon|Signal 11 (Segmentation fault) caught  
PVRCarbon|-----  
PVRCarbon|0] (unknown) /media/mp000/pvrcarbon/libPVRCarbon.so  
PVRCarbon|1] (unknown) /usr/bin/myapp  
PVRCarbon|2] (unknown) /usr/bin/myapp  
PVRCarbon|3] (unknown) /usr/bin/myapp  
PVRCarbon|4] (unknown) /usr/bin/myapp  
PVRCarbon|5] (unknown) /usr/bin/myapp  
PVRCarbon|6] (unknown) /usr/bin/myapp  
…  
PVRCarbon|9] (unknown) /lib/libpthread.so.0  
PVRCarbon|-----  
minicoredumper: dump: auxv link\_map name (/media/mp000/pvrcarbon/libPVRCarbon.so): 39 bytes @ 0x7fb2fd4cc0  
minicoredumper: dump: build-id: (/media/mp000/pvrcarbon/libPVRCarbon.so) - found

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [July 30, 2020, 7:42am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/6 "2020-07-30T07:42:42Z")

</div>

Hi,

I think that might be enough for us to have a look. Which is your Linux platform?

Thanks.

Carlos.

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [July 30, 2020, 8:59am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/7 "2020-07-30T08:59:24Z")

</div>

Hello,

Based on this output we believe the debugger may be intercepting seg faults we rely on for memory tracking. If you are personally capturing your application from within a debugger you might need to configure gdb/lldb to ignore SIGSEGVs.

This should only be an issue for Vulkan applications and OpenGL ES applications that use the EXT\_buffer\_storage extension.

If this is not the case, please make sure the recorder can write its output to /usr/bin as the application will exit if it fails to write the output. If this does not help and you are using OpenGL ES, let us know how you have setup the recorder and where your host egl/gl libraries live.

Regards.

Carlos.

---

<div class="post-metadata">

**Author:** ![desperado](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@desperado](https://forums.imgtec.com/u/desperado)\
**Post date:** [July 30, 2020, 9:50am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/8 "2020-07-30T09:50:22Z")

</div>

But then it should work if I don’t use gdb, right? I had scenarios where I don’t use gdb and it still segfaults within libPVRCarbon.so.

Linux is Yocto.

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [July 31, 2020, 8:57am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/9 "2020-07-31T08:57:11Z")

</div>

Hi,

GDB will get in the way if you are using Vulkan or the EXT\_buffer\_storage extension for OGLES.  
If this is not the case, it could be caused by not being able to write to the output location or by a wrong setup.

Regards

Carlos.

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [August 3, 2020, 1:48pm UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/11 "2020-08-03T13:48:51Z")

</div>

Hello,

It is strange because your GDB output doesn’t show any sign that it is loading from your config file.  
In your description you have placed it in the libPVRCarbon path so it should be picked up. Maybe a permission issue is stopping it from being found/opened? ? Maybe the gdb output was from a run without the config?

You could try setting the config options in the environment:

> export PVRCARBON\_filename=[path to your carbon file]

If the drivers are in /usr/lib/ as mentioned in the config, then you shouldn’t need to set anything else as PVRCarbon will look for them in that location.

Regards

Carlos.

---

<div class="post-metadata">

**Author:** ![desperado](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@desperado](https://forums.imgtec.com/u/desperado)\
**Post date:** [August 11, 2020, 9:45am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/12 "2020-08-11T09:45:35Z")

</div>

> [@CarlosSarria](#):
>
> PVRCARBON\_filename

Didn’t help. Still crashes. That’s all the output I get:

17:18:14.634 [Warn] [user] nav: PVRCarbon Recorder v0.5 (20.1@5771704)  
17:18:17.720 [Error] [user] minicoredumper: dump: auxv link\_map name (/media/mp000/pvrcarbon/libGLESv2.so.2): 38 bytes @ 0x7fad5fad20  
17:18:17.724 [Error] [user] minicoredumper: dump: auxv link\_map name (/media/mp000/pvrcarbon/libPVRCarbon.so): 39 bytes @ 0x7fa7ae2cc0  
17:18:17.825 [Error] [user] minicoredumper: dump: build-id: (/media/mp000/pvrcarbon/libPVRCarbon.so) - found  
17:18:17.842 [Error] [user] minicoredumper: dump: build-id: (/media/mp000/pvrcarbon/libGLESv2.so) - found

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [August 12, 2020, 7:42am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/13 "2020-08-12T07:42:47Z")

</div>

Hi,

That is very strange. Have you checked that the OGLES libraries are in /usr/lib/ and that /usr/bin/ has write permissions. Could you attach you config file? Maybe that will give us a clue.

Regards

Carlos.

---

<div class="post-metadata">

**Author:** ![desperado](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@desperado](https://forums.imgtec.com/u/desperado)\
**Post date:** [January 11, 2021, 10:45am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/14 "2021-01-11T10:45:00Z")

</div>

Ok, I made another attempt this time with version 0.6 of the recorder:

No config file used, but environment:  
PVRCARBON\_filename=/media/mp000/myprocess.pvrcbn

17:41:55.790 [Error] [kern] PVR\_K: 245: HTBInit: HTBufferSizeInKB = 64  
17:41:55.793 [Error] [kern] PVR\_K: 245: RGX Device initialised with BVNC 4.45.2.58  
17:42:10.058 [Warn] [user] nav: PVRCarbon Recorder v0.6 (20.2@5880259)  
17:42:10.296 [Warn] [user] nav: PVRCarbon Recorder v0.6 (20.2@5880259)  
17:42:10.296 [Warn] [user] nav: PVRCarbon|Note: By default to support multi-platform playback we override api alignment values to our recommended values. To disable this set the align recommended option to false  
17:42:10.296 [Warn] [user] nav: PVRCarbon|Writing intermediate data to ‘/media/mp000/myprocess.parts’

Then I try to end the application with kill -SIGABRT :

17:43:05.213 [Warn] [user] nav: PVRCarbon|Signal 15 (Terminated) caught  
17:43:05.213 [Warn] [user] nav: PVRCarbon|-----  
17:43:05.213 [Warn] [user] nav: PVRCarbon|0] \_\_poll /lib/libc.so.6  
17:43:05.213 [Warn] [user] nav: PVRCarbon|1] (unknown) /usr/bin/myprocess  
17:43:05.213 [Warn] [user] nav: PVRCarbon|2] (unknown) /usr/bin/myprocess  
17:43:05.213 [Warn] [user] nav: PVRCarbon|3] \_\_libc\_start\_main /lib/libc.so.6  
17:43:05.213 [Warn] [user] nav: PVRCarbon|-----

It doesn’t crash but it also never writes /media/mp000/myprocess.pvrcbn.

---

<div class="post-metadata">

**Author:** ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)\
**Post date:** [January 11, 2021, 11:22am UTC](https://forums.imgtec.com/t/pvrcarbon-recording-libraries-for-aarch64/3239/15 "2021-01-11T11:22:00Z")

</div>

Hi desperado,

Thanks for your message, I’ll forward it to the Tools Team and come back to you shortly. I can see you also logged this message through our support web ([https://pvrsupport.imgtec.com](https://pvrsupport.imgtec.com)), we’ll answer you there.

Best regards,  
Alejandro
