(gdb) run
Starting program: /root/gtk-rs-fehler-tests/target/window
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb571e230 (LWP 11967)]
(window:11964): GLib-GIO-CRITICAL **: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Weston launcher | |
RequiresMountsFor=/run | |
After=getty@tty1.service | |
[Service] | |
Restart=alway | |
RestartSec=10 | |
User=root | |
EnvironmentFile=-/etc/default/weston |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[15:28:07.418] weston 1.11.93 | |
http://wayland.freedesktop.org | |
Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.11.93 | |
Build: 1.11.93-4-ge30b5fb Revert terminal: Fix crash due to race condition in init (2016-09-09 19:53:38 +0200) | |
[15:28:07.424] Command line: /usr/bin/weston --tty=1 --log=/var/log/weston.log | |
[15:28:07.425] OS: Linux, 4.6.0-rc6-dirty, #7 SMP Thu Aug 25 11:23:45 CEST 2016, armv7l | |
[15:28:07.427] Using config file '/root/.config/weston.ini' | |
[15:28:07.465] Output repaint window is 7 ms maximum. | |
[15:28:07.473] Loading module '/usr/lib/libweston-1/fbdev-backend.so' | |
[15:28:07.491] initializing fbdev backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2886626,742] -> wl_display@1.get_registry(new id wl_registry@[2886626,742] -> wl_display@1.get_registry(new id wl_registry@2) | |
[2886626,934] -> wl_display@1.sync(new id wl_callback@3) | |
2) | |
[2886626,934] -> wl_display@1.sync(new id wl_callback@3) | |
[2886627,523] wl_display@1.delete_id(3) | |
[2886627,523] wl_display@1.delete_id(3) | |
[2886627,659] wl_registry@2.global(1, [2886627,659] wl_registry@2.global(1, "wl_compositor", 4) | |
"wl_compositor", 4) | |
[2886627,776] -> wl_registry@2.bind(1, "wl_compositor"[2886627,776] -> wl_registry@2.bind(1, "wl_compositor", 3, new id [unknown]@4) | |
, 3, new id [unknown]@4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate gtk; | |
extern crate gdk; | |
use gtk::prelude::*; | |
use gdk::enums::key; | |
fn main() { | |
gtk::init().unwrap_or_else(|_| { | |
panic!(format!("{}: Could not initalise Gtk.", | |
env!("CARGO_PKG_NAME"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc -o crc16 crc16.c && ./crc16 2 7 # ./crc16 0x2 0x7 # geht auch .oO | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
// CRC-16 Funktion nach dem Vorbild von https://ctlsys.com/how_to_compute_the_modbus_rtu_message_crc/ | |
unsigned short crc16(unsigned char buf[], int len) { | |
// Start Definition nach Modbus Standard http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf | |
// Seite 39ff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rustc crc16.rs && ./crc16 2 7 # ./crc16 0x2 0x7 # geht auch .oO | |
use std::env; | |
use std::mem; | |
// CRC-16 Funktion nach dem Modbus Standard http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf | |
// Seite 39ff | |
fn crc16(message: Vec<u8>) -> u16 { | |
// Zum Start wird der CRC Buffer mit Einsen gefüllt | |
let mut crc = 0xFFFF; | |
// Dann wird jedes Byte des übergebenen Arrays (Vector in Rust genant) durchlaufen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"0.8469382100523445":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEWHdRA7nc2jKBPILHrCSbRcl5sAx2vYEu\r\nMcDmK9YTBxzt4L6/sI1xjOSwGzOk+QdY0GRsUhjBwAhCoRPKWICyvc3/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWArsU/8AAAACiwn/AAAACZAFQEg7X5sb\r\nzv8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAAfU0BAPZVdeCrvCuh\r\nEkdYAA1OXsryJjM6laCgeY3iqqueLXoKAP9qKfldHebU7+Wi9ugwRYA1Koqk03f4\r\nXYyCNvyRKt+sn87/AAAAVgQAAAAAEggqhkjOPQMBBwIDBCFetdv/ywewfD68cBZ3\r\nR7ajQ2+zh8HTLEjA08r2l0YqOtK+/3p8ezxbnSKcgYbfX2MkSmZNr6m1gQPgGskg\r\nlX4DAQgHwv8AAABtBBgTCAAf/wAAAAWCWArsU/8AAAAJkAVASDtfmxvO/wAAAAKb\r\nDAAAyvgBAI42FIiyA3IFg68T75KYruFCSpB5Ru5Pc8Gs4QCkb/IXAPoDNva+xzYr\r\n41aRXeDXAcmzkMf7rgdwTdsSMUJ2Zogwjg==\r\n=ACO+\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling kalibrator v0.3.3 (file:///mnt/src/xMZ-Mod-Touch-Software/CO-NO2-Kombisensor-Mod-Kalibrator) | |
error[E0308]: mismatched types | |
--> src/gui/gtk3/mod.rs:379:42 | |
| | |
379 | self::gobject_ffi::g_object_set (gtk_ffi::gtk_settings_get_default () as gpointer, | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `gui::gtk3::gobject_ffi::GObject`, found enum `gui::gtk3::libc::c_void` | |
| | |
= note: expected type `*mut gui::gtk3::gobject_ffi::GObject` | |
= note: found type `*mut gui::gtk3::libc::c_void` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==1492== Memcheck, a memory error detector | |
==1492== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. | |
==1492== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info | |
==1492== Command: target/debug/treeview | |
==1492== | |
--1492-- Valgrind options: | |
--1492-- -v | |
--1492-- Contents of /proc/version: | |
--1492-- Linux version 4.6.0-yocto-standard-custom (smueller@nb-smueller) (gcc version 6.3.0 (GCC) ) #1 SMP Thu Feb 2 15:02:39 CET 2017 | |
--1492-- |