Bug #2489

Assertion `er->er_zombie == 0' failed. when using bindVideoMetadata

Added by Fredrik Lundmark about 8 years ago. Updated about 8 years ago.

Status:FixedStart date:01/15/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Ecmascript & Duktape
Target version:4.10
Found in version:4.9.46.g5134a.dirty Platform:Linux

Description

Using ecmascript with apiversion: 2 the code below works in ST. It does however generate a crash when exiting ST followed by SQLITE recovering frames message on the next startup
The crash does not appear when using Javascript.

Code:
page.appendItem(PREFIX + ":video:" + "", "video").bindVideoMetadata({
imdb: "0369610"
});

Tried 4.9.78.g65a6c as well.

[email protected] ~/tmp/DreamFilm $ showtime d -p ecma
SYSTEM [INFO ]: Showtime 4.9.46.g5134a.dirty starting. 8 CPU cores. Systemtype:Linux/x86_64 OS:Linux Mint 17.1 Rebecca
core [DEBUG]: Loading resources from /usr/share/showtime
blobcache [DEBUG]: Cache magic 0x62630207 154 items
blobcache [INFO ]: Initialized: 154 items consuming 19,42 MB (out of maximum 221,66 MB) on disk in /home/hp/.cache/showtime/bc2
DB [DEBUG]: Opened database /home/hp/.hts/showtime/kvstore/kvstore.db pages: free=0 total=7
DB [DEBUG]: kvstore: At current version 2
SQLITE [ERROR]: recovered 3 frames from WAL file /home/hp/.hts/showtime/metadb/meta.db-wal (code: 0x11b)
DB [DEBUG]: Opened database /home/hp/.hts/showtime/metadb/meta.db pages: free=0 total=66
DB [DEBUG]: metadb: At current version 17
libav [INFO ]: Lavf55.12.0, Lavc55.34.1, Lavu53.3.0
Freetype [DEBUG]: Loaded font family='liberation sans' fullname='liberation sans regular' style='Regular' from /usr/share/showtime/resources/fonts/liberation/LiberationSans-Regular.ttf domain:0
playqueue [DEBUG]: Shuffle set to off
playqueue [DEBUG]: Repeat set to off
playqueue [DEBUG]: Nothing on queue, waiting
PA [DEBUG]: Headerversion: 1.1.0, library: 4.0.0
test [DEBUG]: DEBUG: service.dfdebugMessageLevel set to: 0
plugins [INFO ]: Loaded dev plugin file:///home/hp/tmp/DreamFilm/ecma
i18n [INFO ]: Unloading language definition
i18n [DEBUG]: Default charset is auto
spotify [DEBUG]: Loaded from /usr/lib/showtime/libspotify.so.12
Spotify [INFO ]: Using library version 12.1.51.g86c92b43 Release Linux-x86_64
plugins [DEBUG]: Loading repo from http://showtime.lonelycoder.com/plugins/plugins-v1.json
SYSTEM [DEBUG]: Hashed device ID: 4e8ae329d76766f682e8ed9a5b58ece0
TCP [INFO ]: http-server: Listening on port 42000
UDP [INFO ]: bittorrent udp tracker: Listening on port 36733
SSDP [DEBUG]: Running
navigator [INFO ]: Opening page:home
GLW [DEBUG]: GLX_SGI_swap_control extension is present
VDPAU [DEBUG]: VDPAU decoder supported profiles
VDPAU [DEBUG]: Profile Level MB/frame Width Height
VDPAU [DEBUG]: MPEG1 0 8192 2048 2048
VDPAU [DEBUG]: MPEG2 Main 3 8192 2048 2048
VDPAU [DEBUG]: MPEG2 Simple 3 8192 2048 2048
VDPAU [DEBUG]: H264 Baseline Not supported
VDPAU [DEBUG]: H264 High 41 8192 2048 2048
VDPAU [DEBUG]: H264 Main 41 8192 2048 2048
VDPAU [DEBUG]: VC-1 Advanced 4 8190 2048 2048
VDPAU [DEBUG]: VC-1 Main 2 8190 2048 2048
VDPAU [DEBUG]: VC-1 Simple 1 8190 2048 2048
VDPAU [DEBUG]: MPEG4 Part2 ASP 5 8192 2048 2048
VDPAU [DEBUG]: MPEG4 Part2 SP 3 8192 2048 2048
VDPAU [DEBUG]: MPEG4 Part2 SP 3 8192 2048 2048
VDPAU [DEBUG]: DIVX4 HD 1080P 0 8192 2048 2048
VDPAU [DEBUG]: DIVX4 Home Theater 0 8192 2048 2048
VDPAU [DEBUG]: DIVX4 Mobile 0 8192 2048 2048
VDPAU [DEBUG]: DIVX4 QMobile 0 8192 2048 2048
VDPAU [DEBUG]: DIVX5 Home Theater 0 8192 2048 2048
VDPAU [DEBUG]: DIVX5 Mobile 0 8192 2048 2048
VDPAU [DEBUG]: DIVX5 QMobile 0 8192 2048 2048
GLW [DEBUG]: Window manager (Mutter (Muffin)) detected, can fullscreen
GLW [DEBUG]: 32 texture image units available
GLW [INFO ]: OpenGL Renderer: 'GeForce GTX 560M/PCIe/SSE2' by 'NVIDIA Corporation'
GLW [DEBUG]: UI size scale changed to 13
navigator [INFO ]: Opening test:start
DB [DEBUG]: Opened database /home/hp/.hts/showtime/metadb/meta.db pages: free=0 total=66
navigator [INFO ]: Opening settings:
navigator [INFO ]: Opening settings:general
Freetype [DEBUG]: Loaded font family='liberation sans' fullname='liberation sans regular' style='Regular' from /usr/share/showtime/resources/fonts/liberation/LiberationSans-Regular.ttf domain:0
navigator [INFO ]: Opening test:start
core [DEBUG]: Shutdown requested, returncode = 0
core [DEBUG]: Caches flushed
core [DEBUG]: arch stop=0
showtime: /project/repo/checkout/src/ecmascript/ecmascript.c:532: es_context_end: Assertion `er
>er_zombie == 0' failed.
CRASH [EMERG]: Signal: 6 in thread showtime - PRG: Showtime (4.9.46.g5134a.dirty) EXE: /usr/bin/showtime, CWD: /home/hp/tmp/DreamFilm
CRASH [EMERG]: Fault address ??:0 0x3e800000c49 (N/A)
CRASH [EMERG]: Loaded libraries: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/nvidia-331-updates/libGL.so.1 /usr/lib/x86_64-linux-gnu/libpulse.so.0 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 /lib/x86_64-linux-gnu/libglib-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 /lib/x86_64-linux-gnu/librt.so.1 /usr/lib/x86_64-linux-gnu/libwebkitgtk-1.0.so.0 /usr/lib/x86_64-linux-gnu/libXss.so.1 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 /usr/lib/x86_64-linux-gnu/libXv.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libvdpau.so.1 /lib/x86_64-linux-gnu/libpthread.so.
CRASH [EMERG]: Register dump [23]: fefefefefefefeff fefeff9cfefeff09 0000000000000008 0000000000000202 0000000000c3a541 0000000000c3a6e7 0000000000000000 0000000000000000 0000000000000c49 0000000000000c49 00007fee8bfea3d0 00007fee9251d000 0000000000000006 0000000000000000 ffffffffffffffff 00007ffffc490c28 00007fee8be9fcc9 0000000000000202 0000000000000033 0000000000000000 0000000000000000 0000000000000000 0000000000000000
CRASH [EMERG]: STACKTRACE (13 frames)
CRASH [EMERG]: /project/repo/checkout/src/arch/linux/linux_trap.c:273 0x4117f1
CRASH [EMERG]: /project/repo/checkout/src/arch/linux/linux_trap.c:268 0x56ac3d
CRASH [EMERG]: ??:0 0x7fee8c962340
CRASH [EMERG]: gsignal+0x39 (/lib/x86_64-linux-gnu/libc.so.6)
CRASH [EMERG]: abort+0x148 (/lib/x86_64-linux-gnu/libc.so.6)
CRASH [EMERG]: ??:0 0x7fee8be98b86
CRASH [EMERG]: ??:0 0x7fee8be98c32
CRASH [EMERG]: /project/repo/checkout/src/ecmascript/ecmascript.c:532 (discriminator 1) 0x593dff
CRASH [EMERG]: /project/repo/checkout/src/ecmascript/ecmascript.c:811 0x593e7e
CRASH [EMERG]: /project/repo/checkout/src/showtime.c:181 0x61b9d4
CRASH [EMERG]: /project/repo/checkout/src/arch/linux/linux_main.c:187 0x4495d6
CRASH [EMERG]: __libc_start_main+0xf5 (/lib/x86_64-linux-gnu/libc.so.6)
CRASH [EMERG]: ??:0 0x449ea5

Associated revisions

Revision 415ecadb
Added by Andreas Smas about 8 years ago

ecmascript: Fix crash on plugin unload if item.bindVideoMetadata() was used.

Also add new item.unbindVideoMetadata() which undoes what bindVideoMetadata() does

Fixes #2489

History

#1 Updated by Andreas Smas about 8 years ago

  • Status changed from New to Accepted
  • Target version set to 4.10

Ok, I can reproduce.

#2 Updated by Andreas Smas about 8 years ago

  • Status changed from Accepted to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF