Skip to content

Instantly share code, notes, and snippets.

View fidergo-stephane-gourichon's full-sized avatar

Stéphane Gourichon fidergo-stephane-gourichon

View GitHub Profile
@fidergo-stephane-gourichon
fidergo-stephane-gourichon / crash inside g_list_free_full
Created November 3, 2014 17:47
Darktable crash inside g_list_free_full
Crashes in thread 10
this is darktable 1.5+2189~g2776f9e reporting a segfault:
#0 0x00007f0d8cbbec6d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f0d8c3f7fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f0d8c3f830a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f0d8b99b447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4 0x00007f0d8d3b1a4b in dt_gui_gtk_run (gui=<optimized out>) at (mysrcpath)/darktable/src/gui/gtk.c:1053
#5 0x0000000000400971 in main (argc=<optimized out>, argv=<optimized out>) at (mysrcpath)/darktable/src/main.c:25
#!/bin/bash
# Use at your own risk!
readarray OUTPUTS < <( LC_ALL=C xrandr | sed -n 's/ connected.*$//p' )
MAINSCREEN="${OUTPUTS[0]//[$'\t\r\n ']}"
xrandr --newmode "2560x1440_50.00" 256.09 2560 2728 3008 3456 1440 1441 1444 1482 -HSync +Vsync
xrandr --addmode "${MAINSCREEN}" 2560x1440_50.00
xrandr --output "${MAINSCREEN}" --mode 2560x1440_50.00
@fidergo-stephane-gourichon
fidergo-stephane-gourichon / diff_u.txt
Created March 2, 2017 12:19
Comparing VLC playing via RTSP a H.263-1998 stream on Windows, unicast (success), then multicast (fail), then diff
diff -u vlclog_mpeg4_unicast.txt vlclog_mpeg4_multicast_60100.txt
--- vlclog_mpeg4_unicast.txt 2017-03-02 13:17:50.381036914 +0100
+++ vlclog_mpeg4_multicast_60100.txt 2017-03-02 13:17:50.369036822 +0100
@@ -68,35 +68,36 @@
[hex] lua generic debug: Script C:\Program Files (x86)\VideoLAN\VLC\lua\extensions\VLSub.luac has the following capability flags: 0x5
[hex] core generic debug: using extension module "lua"
[hex] core interface debug: using interface module "qt4"
-[hex] core playlist debug: adding item `rtsp://192.168.0.1/?multicast=0&inst=1' ( rtsp://192.168.0.1/?multicast=0&inst=1 )
-[hex] core playlist debug: processing request item: rtsp://192.168.0.1/?multicast=0&inst=1, node: null, skip: 0
@fidergo-stephane-gourichon
fidergo-stephane-gourichon / helgrind_darktable_invalid_instruction.txt
Created June 2, 2017 09:44
Just launching darktable under helgrind (valgrind thread error detector).
This file has been truncated, but you can view the full file.
$ valgrind --tool=helgrind --error-limit=no darktable
==2411== Helgrind, a thread error detector
==2411== Copyright (C) 2007-2015, and GNU GPL'd, by OpenWorks LLP et al.
==2411== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==2411== Command: darktable
==2411==
==2411== ---Thread-Announcement------------------------------------------
==2411==
==2411== Thread #13 was created
-- Looking for pugixml
CMake Warning at cmake/modules/LibFindMacros.cmake:263 (message):
WARNING: MISSING PACKAGE
We could not find development headers for Pugixml. Do you have the
necessary dev package installed? This package is NOT REQUIRED and you may
ignore this warning but by doing so you may miss some functionality of
darktable.
Relevant CMake configuration variables:
XBuild Engine Version 12.0
Mono, Version 4.2.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 07/06/2017 17:38:49.
__________________________________________________
/mypath/DungeonMaster/DungeonMasterEngine/DungeonMasterEngine.csproj: warning : Could not find project file /usr/lib/mono/xbuild/MonoGame/v3.0/MonoGame.Content.Builder.targets, to import. Ignoring.
/mypath/DungeonMaster/DungeonMaster.sln: warning : Don't know how to handle GlobalSection ExtensibilityGlobals, Ignoring.
Project "/mypath/DungeonMaster/DungeonMaster.sln" (default target(s)):
Target ValidateSolutionConfiguration:
==11362== Memcheck, a memory error detector
==11362== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==11362== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==11362== Command: /.../free_software_involvement/darktable/darktable.OSID_ubuntu-16.04.installtree/bin/darktable .
==11362==
==11362== Use of uninitialised value of size 8
==11362== at 0x95F7A5D: ??? (in /usr/lib/x86_64-linux-gnu/liblcms2.so.2.0.6)
==11362== by 0x95E1BBF: ??? (in /usr/lib/x86_64-linux-gnu/liblcms2.so.2.0.6)
==11362== by 0x51C6C26: dt_view_image_expose._omp_fn.0 (view.c:1000)
==11362== by 0xAE22CBE: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
==27749== Memcheck, a memory error detector
==27749== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==27749== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==27749== Command: /usr/bin/darktable .
==27749==
==27749== Thread 8 worker 3:
==27749== Conditional jump or move depends on uninitialised value(s)
==27749== at 0x4D384813: ??? (in /usr/lib/x86_64-linux-gnu/darktable/plugins/lighttable/libprint_settings.so)
==27749== by 0x78891D3: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2)
==27749== by 0x78A39A5: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2)
*** Error in `/usr/bin/darktable': double free or corruption (!prev): 0x00007fe2d415d040 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fe32df897e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fe32df9237a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fe32df9653c]
/usr/lib/x86_64-linux-gnu/darktable/plugins/libdenoiseprofile.so(process_sse2+0xf8d)[0x7fe2d944fc0d]
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so(+0x124c89)[0x7fe32e61dc89]
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so(+0x122444)[0x7fe32e61b444]
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so(+0x122683)[0x7fe32e61b683]
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so(+0x122683)[0x7fe32e61b683]
@fidergo-stephane-gourichon
fidergo-stephane-gourichon / outlet
Created June 17, 2018 21:19 — forked from awaxa/outlet
apc pdu outlet expect script
#!/usr/bin/expect
set timeout 3
if {[llength $argv] == 0} {
send_user "Usage: outlet [1-8] [on|off|reboot] \n"
exit 1
}
set number [lindex $argv 0]
set onoff [lindex $argv 1]