Skip to content

Instantly share code, notes, and snippets.

View soulfly's full-sized avatar

Mr. software craftsman soulfly

View GitHub Profile
@soulfly
soulfly / app.component.js
Created April 23, 2018 12:00
NativeScript file upload to QuickBlox example (iOS)
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var quickblox_1 = require("./quickblox");
var core_1 = require("@angular/core");
var fs = require("tns-core-modules/file-system");
var imagepicker = require("nativescript-imagepicker");
var bghttp = require("nativescript-background-http");
var parseUri = require("parseUri");
var AppComponent = (function () {
Title: janus crashed with SIGABRT in g_assertion_message()
Stacktrace:
#0 0x00007fbb3a4cf428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
resultvar = 0
pid = 21468
selftid = 25826
#1 0x00007fbb3a4d102a in __GI_abort () at abort.c:89
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {0, 472446402652, 0, 0, 140439726661376, 543, 140442139566816, 0, 140439726661919, 0, 0, 140439726325792, 140439726661920, 1, 140442142242720, 140442142230903}}, sa_flags = -1408950528, sa_restorer = 0x7fbaac051f00}
Stacktrace:
#0 0x00007f5ec9c7f8b0 in g_hash_table_iter_next () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#1 0x00007f5ec0d49574 in janus_videoroom_notify_participants (participant=participant@entry=0x7f5ea003cff0, msg=msg@entry=0x7f5e5c011f00) at plugins/janus_videoroom.c:1352
iter = {dummy1 = 0x7f5e98017120, dummy2 = 0x8, dummy3 = 0x7f5e90ff849c, dummy4 = -1, dummy5 = 0, dummy6 = 0x7f5e00000005}
value = 0x0
#2 0x00007f5ec0d52fff in janus_videoroom_leave_or_unpublish (participant=participant@entry=0x7f5ea003cff0, is_leaving=is_leaving@entry=1, kicked=kicked@entry=0) at plugins/janus_videoroom.c:1398
event = 0x7f5e5c011f00
__FUNCTION__ = "janus_videoroom_leave_or_unpublish"
#3 0x00007f5ec0d54241 in janus_videoroom_destroy_session (handle=0x7f5e5c010ec0, error=<optimized out>) at plugins/janus_videoroom.c:1450
@soulfly
soulfly / mysql_setup_osx
Created February 21, 2018 11:23
How to setup MySQL 5.5 on OS X
1) Setup Apache
https://ole.michelsen.dk/blog/setup-local-web-server-apache-php-osx-yosemite.html
for USERNAME use your home user
or even better
https://medium.com/@danilosapad/how-to-set-up-virtual-hosts-on-mac-os-x-10-10-yosemite-afac19e982cf
3) Add php.ini inside /etc/php.ini
https://davidwinter.me/enable-php-error-logging/
SegvAnalysis:
Segfault happened at: 0x7fd7e51698b0 <g_hash_table_iter_next+96>: mov (%r9,%rcx,1),%r9d
PC (0x7fd7e51698b0) ok
source "(%r9,%rcx,1)" (0x00000000) not located in a known VMA region (needed readable region)!
destination "%r9d" ok
Stack memory exhausted (SP below stack segment)
SegvReason: reading NULL VMA
Stacktrace:
#0 0x00007fd7e51698b0 in g_hash_table_iter_next () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
Stacktrace:
#0 0x00007fd30d59d7fa in g_hash_table_iter_init () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#1 0x00007fd304668811 in janus_videoroom_notify_participants (participant=participant@entry=0x7fd2e02e2e40, msg=msg@entry=0x7fd2e0288090) at plugins/janus_videoroom.c:1242
iter = {dummy1 = 0x0, dummy2 = 0x0, dummy3 = 0x7fd2e028d300, dummy4 = -536616032, dummy5 = 32722, dummy6 = 0x0}
value = 0x7fd2e028d300
#2 0x00007fd304671ccb in janus_videoroom_leave_or_unpublish (participant=0x7fd2e02e2e40, is_leaving=1, kicked=<optimized out>) at plugins/janus_videoroom.c:1282
event = 0x7fd2e0288090
#3 0x00007fd3046863d3 in janus_videoroom_leave_or_unpublish (kicked=0, is_leaving=1, participant=0x7fd2e02e2e40) at plugins/janus_videoroom.c:1275
No locals.
Stacktrace:
#0 0x00007f9993ef38b0 in g_hash_table_iter_next () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#1 0x00007f9986dd3854 in janus_videoroom_notify_participants (participant=participant@entry=0x7f9964237a10, msg=msg@entry=0x7f99641c1890) at plugins/janus_videoroom.c:1243
iter = {dummy1 = 0x7f9904006d80, dummy2 = 0x0, dummy3 = 0x7f99642c8050, dummy4 = -1, dummy5 = 32665, dummy6 = 0x5}
value = 0x7f99642c8050
#2 0x00007f9986ddcccb in janus_videoroom_leave_or_unpublish (participant=0x7f9964237a10, is_leaving=1, kicked=<optimized out>) at plugins/janus_videoroom.c:1282
event = 0x7f99641c1890
#3 0x00007f9986df13d3 in janus_videoroom_leave_or_unpublish (kicked=0, is_leaving=1, participant=0x7f9964237a10) at plugins/janus_videoroom.c:1275
No locals.
Stacktrace:
#0 0x00007f20e0f86563 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#1 0x00007f20d805adb4 in janus_videoroom_leave_or_unpublish (participant=0x7f20b434a650, is_leaving=1, kicked=<optimized out>) at plugins/janus_videoroom.c:1284
participants_size = <optimized out>
event = 0x7f20b42d5650
#2 0x00007f20d806f3d3 in janus_videoroom_leave_or_unpublish (kicked=0, is_leaving=1, participant=0x7f20b434a650) at plugins/janus_videoroom.c:1275
No locals.
#3 janus_videoroom_handler (data=<optimized out>) at plugins/janus_videoroom.c:4137
participant = 0x7f20b434a650
{
"session_id": 1536487766787643,
"session_last_activity": 2689629995899,
"session_transport": "janus.transport.websockets",
"handle_id": 6538972424635499,
"created": 2689568009822,
"send_thread_created": true,
"current_time": 2689632826418,
switchVideoinput: function(mediaDeviceId, callbacks){
// removes the video track from both MediaStream and PeerConnection sender
videoRoomPlugin.webrtcStuff.myStream.removeTrack(videoRoomPlugin.webrtcStuff.myStream.getVideoTracks()[0]);
videoRoomPlugin.webrtcStuff.pc.removeTrack(videoRoomPlugin.webrtcStuff.pc.getSenders()[1])
// does a new getUserMedia just for video
var constraints = {
audio: false,
video: {deviceId: {exact: mediaDeviceId}}