Skip to content

Instantly share code, notes, and snippets.

---- Minecraft Crash Report ----
// There are four lights!
Time: 08.09.16 18:22
Description: Unexpected error
java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.LinuxMouse.handleButton(LinuxMouse.java:245)
at org.lwjgl.opengl.LinuxMouse.handleButtonPress(LinuxMouse.java:270)
at org.lwjgl.opengl.LinuxMouse.handleButtonEvent(LinuxMouse.java:282)
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
Dreamfall Chapters: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Stacktrace:
Native stacktrace:
/home/sobkas/.steam/SteamApps/common/Dreamfall Chapters/Dreamfall Chapters_Data/Mono/x86_64/libmono.so(+0x91772) [0x7fe86fcbd772]
@sobkas
sobkas / gdb_print
Created April 25, 2016 14:30
Print with gdb
b xwl_relative_pointer_relative_motion
commands
silent
printf "time: %d dxf:%d dyf:%d dx_unaccelf:%d dy_unaccelf:%d\n",utime_hi , wl_fixed_to_double(dxf), wl_fixed_to_double(dyf), wl_fixed_to_double(dx_unaccelf), wl_fixed_to_double(dy_unaccelf)
c
end
b pointer_handle_motion
commands
silent
printf "time: %d sx_w:%d sy_w:%d\n", time, sx_w/256, sy_w/256
@sobkas
sobkas / xwayland
Created April 18, 2016 19:15
Xwayland pointer relative movement log
dx:0 dy:0 dx_unaccel:-1 dy_unaccel:1
dx:0 dy:0 dx_unaccel:-1 dy_unaccel:0
dx:0 dy:0 dx_unaccel:0 dy_unaccel:-1
dx:0 dy:0 dx_unaccel:1 dy_unaccel:0
dx:0 dy:0 dx_unaccel:1 dy_unaccel:0
dx:0 dy:0 dx_unaccel:0 dy_unaccel:1
dx:0 dy:0 dx_unaccel:1 dy_unaccel:0
dx:0 dy:0 dx_unaccel:1 dy_unaccel:0
dx:0 dy:0 dx_unaccel:1 dy_unaccel:0
dx:0 dy:0 dx_unaccel:0 dy_unaccel:1
@sobkas
sobkas / diff
Created May 25, 2015 15:55
My patch
diff -ru -p1 plexhometheater-1.4.1~/xbmc/peripherals/devices/PeripheralCecAdapter.cpp plexhometheater-1.4.1/xbmc/peripherals/devices/PeripheralCecAdapter.cpp
--- plexhometheater-1.4.1~/xbmc/peripherals/devices/PeripheralCecAdapter.cpp 2015-05-25 09:50:17.751485348 +0200
+++ plexhometheater-1.4.1/xbmc/peripherals/devices/PeripheralCecAdapter.cpp 2015-05-25 09:57:14.878075432 +0200
@@ -1381,3 +1381,7 @@ void CPeripheralCecAdapter::SetConfigura
// double tap prevention timeout in ms
- m_configuration.iDoubleTapTimeoutMs = GetSettingInt("double_tap_timeout_ms");
+ #if defined(CEC_DOUBLE_TAP_TIMEOUT_MS_OLD)
+ m_configuration.iDoubleTapTimeout50Ms = GetSettingInt("double_tap_timeout_ms") / 50;
+ #else
+ m_configuration.iDoubleTapTimeoutMs = GetSettingInt("double_tap_timeout_ms");
@sobkas
sobkas / gist:f0c0bcbe30881472155d
Created April 3, 2015 13:00
Config file for nyko controller
[xboxdrv]
# Using the 'by-id' name is recomment, as it is static, while an
# /dev/input/eventX name can change depending on what other USB
# devices you use.
# Set a proper evdev for your controller
#evdev = /dev/input/by-id/usb-Logitech_Logitech_Dual_Action-event-joystick
mimic-xpad = true
detach-kernel-driver = true
# This displays events received from the controller, if you are
@sobkas
sobkas / hang
Created January 22, 2015 14:36
Gpu Hang
[ 994.664922] radeon 0000:01:00.0: ring 0 stalled for more than 10234msec
[ 994.664943] radeon 0000:01:00.0: GPU lockup (current fence id 0x000000000000e1c0 last fence id 0x000000000000e21c on ring 0)
[ 994.665051] radeon 0000:01:00.0: failed to get a new IB (-35)
[ 994.665130] [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to get ib !
[ 995.112941] radeon 0000:01:00.0: Saved 2935 dwords of commands on ring 0.
[ 995.112962] radeon 0000:01:00.0: GPU softreset: 0x00000009
[ 995.112966] radeon 0000:01:00.0: GRBM_STATUS = 0xF0001828
[ 995.112969] radeon 0000:01:00.0: GRBM_STATUS_SE0 = 0x80000003
[ 995.112972] radeon 0000:01:00.0: GRBM_STATUS_SE1 = 0x00000007
[ 995.112975] radeon 0000:01:00.0: SRBM_STATUS = 0x200000C0
@sobkas
sobkas / gpu_hng
Created January 22, 2015 13:55
Gpu hang
[ 2628.077247] radeon 0000:01:00.0: ring 0 stalled for more than 10140msec
[ 2628.077267] radeon 0000:01:00.0: GPU lockup (current fence id 0x00000000000d02c0 last fence id 0x00000000000d031c on ring 0)
[ 2628.077312] radeon 0000:01:00.0: failed to get a new IB (-35)
[ 2628.077371] [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to get ib !
[ 2628.522710] radeon 0000:01:00.0: Saved 2935 dwords of commands on ring 0.
[ 2628.522735] radeon 0000:01:00.0: GPU softreset: 0x00000009
[ 2628.522738] radeon 0000:01:00.0: GRBM_STATUS = 0xF0001828
[ 2628.522741] radeon 0000:01:00.0: GRBM_STATUS_SE0 = 0x80000003
[ 2628.522744] radeon 0000:01:00.0: GRBM_STATUS_SE1 = 0x00000007
[ 2628.522747] radeon 0000:01:00.0: SRBM_STATUS = 0x200000C0
@sobkas
sobkas / d3d
Created January 19, 2015 12:01
Patch
diff --git a/src/gallium/state_trackers/nine/vertexdeclaration9.c b/src/gallium/state_trackers/nine/vertexdeclaration9.c
index dd0887e..8986d30 100644
--- a/src/gallium/state_trackers/nine/vertexdeclaration9.c
+++ b/src/gallium/state_trackers/nine/vertexdeclaration9.c
@@ -190,7 +190,7 @@ NineVertexDeclaration9_ctor( struct NineVertexDeclaration9 *This,
}
caps = NineDevice9_GetCaps(This->base.device);
- user_assert(0 < This->nelems && This->nelems <= caps->MaxStreams, D3DERR_INVALIDCALL);
+ user_assert(0 <= This->nelems && This->nelems <= caps->MaxStreams, D3DERR_INVALIDCALL);