# Null pointer in Plex Commercial skip

**URL:** <https://forums.plex.tv/t/null-pointer-in-plex-commercial-skip/820397>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [November 28, 2022, 11:57am UTC](https://forums.plex.tv/t/null-pointer-in-plex-commercial-skip/820397 "2022-11-28T11:57:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gloppie](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@Gloppie](https://forums.plex.tv/u/Gloppie)\
**Post date:** [November 28, 2022, 11:57am UTC](https://forums.plex.tv/t/null-pointer-in-plex-commercial-skip/820397/1 "2022-11-28T11:57:28Z")

</div>

Server Version#: latest as of today  
Player Version#: doesnt matter

Plex Commercial[31984]: segfault at 0 ip 00007f732643c7df sp 00007ffc69db4b80 error 4 in Plex Commercial Skip  
per[7f7326411000+2f000]  
[498915.965489] Code: f3 0f 10 15 7f 23 fd ff 83 7d c8 00 74 3d 85 db 7e 74 31 d2 31 c0 48 8b b4 d5 10 ff ff ff 48 8d 7e 04 4  
8 89 bc d5 10 ff ff ff 0f 10 06 f3 0f 59 c2 0f 57 c9 f3 0f 2a c8 f3 0f 58 c8 f3 0f 2c

Maybe this:

> <https://github.com/erikkaashoek/Comskip/pull/152#issuecomment-1230881968>
>
> Hello,
> this is the only build compiling on my arm64 device with latest debian d…ocker image. But when running it crashes with a segmentation fault. After some testing I found the place responsible for this crash:
> mpeg2dec.c, Line 571:
> \`for (l=0;l \< is-\>audio\_st-\>codecpar-\>channels;l++ ) volume += \*((fb\[l\])++) \* 64000;\`
> 
> When commenting this line out (or when always evaluating the if statement in Line 570 to false), the program is running fine and even finding commercials without a problem.
> 
> Is this an issue caused by your changes or a different problem? Any ideas what could be the reason for it?

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [November 28, 2022, 1:48pm UTC](https://forums.plex.tv/t/null-pointer-in-plex-commercial-skip/820397/2 "2022-11-28T13:48:02Z")

</div>

> [@Gloppie](#):
>
> Server Version#: latest as of today

There is a later build than the one you are running on EPYC: 1.30.0.6406-F3F2FCC0

> [@Plex Media Server](https://forums.plex.tv/t/plex-media-server/30447/543):
>
> Plex Media Server 1.30.0.6442 is now available to Plex Pass users in the Beta update channel. NEW: (PlexMatch) Add support for pattern matching (#13899) (Scheduled Tasks) Perform periodic metadata refreshes on TV shows too (#13920) (Transcoder) Support zero-copy hardware transcoding on macOS (#13904) FIXES: (Artwork) Restrict client artwork screensaver to items user is allowed to access (#13916) (DVR) Plex Tuner Service might become unresponsive in certain complex scenarios (#12988) (Music…

**1.30.0.6442**

Is it the same with this version?  
Do you have the original recording file ?  
Could you get the debug [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) when the commercial skipper runs  
Also log text files within the media directories it uses

---

<div class="post-metadata">

**Author:** ![Gloppie](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@Gloppie](https://forums.plex.tv/u/Gloppie)\
**Post date:** [December 8, 2022, 5:14pm UTC](https://forums.plex.tv/t/null-pointer-in-plex-commercial-skip/820397/3 "2022-12-08T17:14:11Z")

</div>

I’ve been unable to reproduce this, but I think it’s a direct result of plex not cleaning up the /tmp dir of .jpg’s resulting in a full tmpdir causing the error.

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [December 9, 2022, 10:36am UTC](https://forums.plex.tv/t/null-pointer-in-plex-commercial-skip/820397/4 "2022-12-09T10:36:22Z")

</div>

> [@Gloppie](#):
>
> a direct result of plex not cleaning up the /tmp dir

We do leave the purge of /tmp and %TEMP% on windows to the OS

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [March 9, 2023, 10:37am UTC](https://forums.plex.tv/t/null-pointer-in-plex-commercial-skip/820397/5 "2023-03-09T10:37:04Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
