Last working version: r8820.
From version r8821 onwards, when starting avidemux this crash occurs:
r8821:
*********** BACKTRACK **************
avidemux3_qt4: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
r8823:
*********** BACKTRACK **************
avidemux3_qt4: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
r8824:
*********** BACKTRACK **************
avidemux3_qt4: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
_____________________________________________
Avidemux v2.6.4 (r8821) (r8823) (r8824)
_____________________________________________
Compiler: GCC 4.6.3
cmake: 2.8.11
Build Target: Linux (x86-64)
User Interface: Qt (4.8.1)
_____________________________________________
Kernel: Linux 3.5.0-36-generic (x86_64)
Distribution: Linux Ubuntu 12.04.2 LTS (Precise Pangolin)
Desktop: Unity 2D 5.20.0
Display Server: X Server 1.13.0
Display Driver: VMware, Inc.
Intel Core i7-3770K @ 3.50GHz (4 Cores/8 Threads) with 16 GB ram
Graphics: NVIDIA GeForce GT 520/PCIe/SSE2 1024MB (810/535MHz)
OpenGL render: NVIDIA Corporation
Version: 4.2.0 NVIDIA 304.88
_____________________________________________
I guess I have nothing to add here:
bernd_b@localhost /w_LD2/ProjectX $ avidemux3_qt4
Directory /home/bernd_b/.avidemux6/ exists.Good.
Using /home/bernd_b/.avidemux6/ as base directory for prefs, jobs, etc.
*************************
Avidemux v (r8827)
*************************
http://www.avidemux.org
Code : Mean, JSC, Grant Pedersen
GFX : Nestor Di, nestordi@augcyl.org
Design : Jakub Misak
FreeBSD : Anish Mistry, amistry@am-productions.biz
Audio : Mihail Zenkov
Mac OS X : Kuisathaverat, Harry van der Wolf
Win32 : Grant Pedersen
Compiler: GCC 4.7.3
Build Target: Linux (x86-64)
User Interface: Qt (4.8.4)
Large file available: 1 offset
Time: Fri Jul 26 23:48:11 2013
0: avidemux3_qt4
Initialising prefs
[load] Loading prefs from /home/bernd_b/.avidemux6/config2
[load] Preferences found and loaded
[cpuCaps]Checking CPU capabilities
[cpuCaps]End of CPU capabilities check (cpuMask :ffffffff, cpuCaps :fe)
[UI_Init] Starting QT4 GUI...
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
[Locale] Locale: en_US
[loadTranslation] [Locale] Loading language file /usr/share/avidemux6/i18n/qt_en_US [loadTranslation] FAILED
[loadTranslation] [Locale] Loading language file /usr/share/avidemux6/i18n/avidemux_en_US [loadTranslation] succeeded
[loadTranslator] Updating translations...
[loadTranslator] [Locale] Test: &Edit -> &Edit
Initializing Dithering tables
[COREUI] Compiled with 01.00.00
[COREUI] Linked with 01.00.00
[CoreUI] Compiled with patch version 0, using 0
[UI Toolkit] Running version 01:03
[Script] Scanning directory /usr/lib64/ADM_plugins6/scriptEngines/
[Script] QtScript INFO - Initialised
[Script] SpiderMonkey INFO - Registered Debug functions
[Script] SpiderMonkey INFO - Registered Test functions
[Script] SpiderMonkey INFO - Registered DialogFactory classes
[Script] SpiderMonkey INFO - Spidermonkey initialised
[Script] Tinypy INFO - Registering group addons
[Script] Tinypy INFO - Registering: help
[Script] Tinypy INFO - Registering: get_folder_content
[Script] Tinypy INFO - Registering: get_file_size
[Script] Tinypy INFO - Registering: basename
[Script] Tinypy INFO - Registering: dirname
[Script] Tinypy INFO - Registering class: Avidemux
[Script] Tinypy INFO - Registering class: Editor
[Script] Tinypy INFO - Registering class: Gui
[Script] Tinypy INFO - Registering class: DFToggle
[Script] Tinypy INFO - Registering class: DFInteger
[Script] Tinypy INFO - Registering class: DFMenu
[Script] Tinypy INFO - Registering class: DFTimeStamp
[Script] Tinypy INFO - Registering class: DialogFactory
[Script] Tinypy INFO - Registering group test
[Script] Tinypy INFO - Registering: testAssert
[Script] Tinypy INFO - Registering: testCrash
[Script] Tinypy INFO - Python initialised
Directory /home/bernd_b/.avidemux6/custom/ exists.Good.
The screen seems to be 1680 x 1050 px
[initGUI] OpenGL enabled at built time, checking if we should run it..
[initGUI] OpenGL activated, initializing...
[UI_Qt4InitGl] Creating openGl dummy widget
[UI_Qt4InitGl] Dummy Widget created
[initializeGL] Initializing dummy openGl widget
[UI_Qt4InitGl] Probing openGl extension
[UI_Qt4InitGl] Extension glActiveTexture found
[UI_Qt4InitGl] Extension glBindBufferARB found
[UI_Qt4InitGl] Extension glGenBuffers found
[UI_Qt4InitGl] Extension glDeleteBuffers found
[UI_Qt4InitGl] Extension glMapBufferARB found
[UI_Qt4InitGl] Extension glUnmapBufferARB found
[UI_Qt4InitGl] Extension glBufferDataARB found
[UI_Qt4InitGl] Probing done
[UI_Qt4InitGl] openGL ARB activated
[GL Render] OpenGL Vendor: VMware, Inc.
[GL Render] OpenGL Renderer: Gallium 0.4 on llvmpipe (LLVM 3.2, 128 bits)
[GL Render] OpenGL Version: 2.1 Mesa 9.1.4
[GL Render] OpenGL Extensions: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_multitexture GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_fog_distance GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_NV_primitive_restart GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_pixel_buffer_object GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_MESA_texture_array GL_ARB_copy_buffer GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_separate_shader_objects GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_draw_buffers_blend GL_ARB_ES2_compatibility GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sampler_objects GL_ARB_shader_texture_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_internalformat_query GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_transform_feedback GL_ARB_invalidate_subdata
Probing for VDPAU...
[init] [VDPAU] API : 0x1, info : NVIDIA VDPAU Driver Shared Library 319.32 Wed Jun 19 14:58:31 PDT 2013
[init] Vdpau supports VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL : 1
[init] Vdpau supports VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL : 1
[init] Vdpau supports VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L5 : 0
[init] Vdpau supports VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L3 : 0
[init] Vdpau supports VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1 : 1
[init] Vdpau supports VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION : 1
[init] Vdpau supports VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE : 1
[init] VDPAU renderer init ok.
VDPAU available
Probing for LIBVA...
[init] [LIBVA] Initializing LibVA library ...
libva info: VA-API version 0.33.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_33
libva info: va_openDriver() returns 0
[init] VA 0.33, Vendor = Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
[setupConfig] Max config = 12
[setupConfig] Found 9 config
[setupConfig] H264 high profile found
[setupConfig] YUV420 supported
[setupConfig] Config created
[allocateImage] No transfer supported
[checkSupportedFunctionsAndImageFormat] --Trying direct operations --
[displayXError] LibVA Error : <vaDeriveImage (ADM_coreLibVA::display, dest->surface,&vaImage):operation failed>
[admImageToSurface] Va Derive failed
[tryDirect] Direct upload failed
[checkSupportedFunctionsAndImageFormat] -- Trying indirect (YV12) --
[tryIndirect] Trying indirect transfer (0)...
[tryIndirectUpload] - indirect upload...
[tryIndirectDownload] - indirect download...
[tryIndirect] Works
[checkSupportedFunctionsAndImageFormat] -- Trying indirect (NV12) --
[tryIndirect] Trying indirect transfer (1)...
[tryIndirectUpload] - indirect upload...
*********** BACKTRACK **************
avidemux3_qt4: malloc.c:2369: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted
I switched back to working 8820.
Maybe better (?)
Avidemux v (r8827) same here ubuntu 12.04 lts 64-bit
*********** BACKTRACK **************
avidemux3_qt4: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
could you run it under gdb and do a "bt"
Like this?
gdb avidemux3_qt4 2>&1 | tee ~/gdb-avidemux3_qt4.txt
handle SIG33 pass nostop noprint
set pagination 0
run
Terminal output avidemux:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5712f3b in ADMImage::convertToNV12(unsigned char*, unsigned char*, int, int) () from /usr/lib/libADM_coreImage6.so
bt:
#0 0x00007ffff5712f3b in ADMImage::convertToNV12(unsigned char*, unsigned char*, int, int) () from /usr/lib/libADM_coreImage6.so
#1 0x00007ffff676d983 in admLibVA::uploadToImage(ADMImage*, _VAImage*) () from /usr/lib/libADM_coreLibVA6.so
#2 0x00007ffff676dd03 in tryIndirect(bool, ADM_vaSurface&, ADMImage&, ADMImage&) [clone .constprop.13] () from /usr/lib/libADM_coreLibVA6.so
#3 0x00007ffff676e67a in checkSupportedFunctionsAndImageFormat() () from /usr/lib/libADM_coreLibVA6.so
#4 0x00007ffff676e9ad in admLibVA::init(GUI_WindowInfo*) () from /usr/lib/libADM_coreLibVA6.so
#5 0x0000000000460bea in libvaProbe() ()
#6 0x000000000043e9ac in startAvidemux(int, char**) ()
#7 0x00007ffff1e6376d in __libc_start_main (main=0x435520 <main>, argc=1, ubp_av=0x7fffffffe158, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe148) at libc-start.c:226
#8 0x0000000000437121 in _start ()
perfect, thanks
You're welcome, big thank you to yourself.
Disabled the whole NV12 part should work now
(Be warned, i'm optimizing the proglogic part, it might be slower for a while or even buggy)
fixed in r8831