Skip to content

Instantly share code, notes, and snippets.

@johnmurrayvi
johnmurrayvi / bug22958-attach17786
Created July 25, 2014 18:53
poti bug 22958, attachment 17786 - encoding in unsynchronizedlyricsframe.cpp
Index: taglib/taglib/mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp
===================================================================
--- taglib/taglib/mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp (revision 11368)
+++ taglib/taglib/mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp (working copy)
@@ -23,16 +23,17 @@
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
@johnmurrayvi
johnmurrayvi / gist:3b6a83d55f35f2f8b4dd
Last active August 29, 2015 14:01
metadata_artwork debugging output
nsresult sbMetadataHandlerTaglib::ReadImageITunes(TagLib::MP4::Tag *aTag,
nsACString &aMimeType,
PRUint32 *aDataLen,
PRUint8 **aData)
{
NS_ENSURE_ARG_POINTER(aTag);
NS_ENSURE_ARG_POINTER(aData);
NS_ENSURE_ARG_POINTER(aDataLen);
nsCOMPtr<nsIThread> mainThread;
nsresult rv = NS_OK;
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 75 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
0:00:50.801413313 18036 0x7fb584149b50 DEBUG GST_PLUGIN_LOADING gstpluginloader.c:324:plugin_loader_load_and_sync:<registry0> Synchronously loading plugin file /mnt/git/nightingale/sb-trunk-oldxul/compiled/dist/gst-plugins/gstmozilla_d.so
0:00:50.801430251 18036 0x7fb584149b50 DEBUG GST_POLL gstpoll.c:874:gst_poll_fd_ctl_write: 0x7fb57c454230: fd (fd:37, idx:1), active : 1
0:00:50.801440075 18036 0x7fb584149b50 LOG GST_POLL gstpoll.c:888:gst_poll_fd_ctl_write: pfd->events now 60 (POLLOUT:4)
0:00:50.833350322 18036 0x7fb584149b50 DEBUG GST_POLL gstpoll.c:874:gst_poll_fd_ctl_write: 0x7fb57c454230: fd (fd:37, idx:1), active : 1
0:00:50.833367230 18036 0x7fb584149b50 LOG GST_POLL gstpoll.c:888:gst_poll_fd_ctl_write: pfd->events now 60 (POLLOUT:4)
0:00:50.833377414 18036 0x7fb584149b50 DEBUG GST_POLL gstpoll.c:1229:gst_poll_wait: timeout :0:00:01.000000000
0:00:50.833390438 18036 0x7fb584149b50 LOG GST_PLUGIN_LOADING gstpluginloade
@johnmurrayvi
johnmurrayvi / gist:7518743
Created November 17, 2013 21:52
TinyOS Paths
### TinyOS ###
export TOSROOT="/opt/tinyos/tinyos-main"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar:$TOSROOT/support/sdk/java
export MAKERULES="$TOSROOT/support/make/Makerules"
export PYTHONPATH=$PYTHONPATH:$TOSROOT/support/sdk/python
#export MOTECOM="serial@/dev/ttyUSB0:telosb"
Changes:
getSkinDescription: function getSkinDescription(internalName) {
+ dump("sbFeathersManager::getSkinDescription(internalName = "+internalName+")\n");
return this._skins[internalName];
},
...
getLayoutDescription: function getLayoutDescription(url) {
@johnmurrayvi
johnmurrayvi / gcc-4.8-pm-fix
Last active December 19, 2015 01:59
patch to fix ng build with gcc 4.8
--- /usr/lib/gcc/x86_64-linux-gnu/4.8/include/mm_malloc.h
+++ /usr/lib/gcc/x86_64-linux-gnu/4.8/include/mm_malloc.h
@@ -32,6 +32,7 @@
extern int posix_memalign (void **, size_t, size_t);
#else
-extern "C" int posix_memalign (void **, size_t, size_t) throw ();
+extern "C" int posix_memalign (void **, size_t, size_t);
#endif
static __inline void *
@johnmurrayvi
johnmurrayvi / playcount-fail
Created June 24, 2013 00:13
play count increment debugging
***** First track *****
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): sbPlaybackHistoryService[0xb3e0e400] - OnMediacoreEvent
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): +++++ sbIMediacoreEvent: eventType = 16384 [STREAM_BEFORE_START]
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): sbPlaybackHistoryService[0xb3e0e400] - OnMediacoreEvent
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): +++++ sbIMediacoreEvent: eventType = 4096 [METADATA_CHANGE]
***** About to start first track *****
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): sbPlaybackHistoryService[0xb3e0e400] - OnMediacoreEvent
-679024832[7f1fd6060370]: virtual nsresult sbPlaybackHistoryService::OnMediacoreEvent(sbIMediacoreEvent*): +++++ sbIMediacoreEvent: e
@johnmurrayvi
johnmurrayvi / ng-backtrace
Created June 16, 2013 20:56
full backtrace of current issues
(gdb) backtrace full
#0 0x00007ffff4e34a5b in nsCOMPtr<nsIObserver>::nsCOMPtr (this=0x7fffffffc838, aRawPtr=0x7fffe0fdb2d0) at ../../../dist/include/nsCOMPtr.h:600
No locals.
#1 0x00007ffff4fb6fdc in PrefCallback::PrefCallback (this=0x7fffffffc810, aDomain=0x7ffff6ba53e0 <sFileOriginPolicyPrefName> "security.fileuri.strict_origin_policy", aObserver=0x7fffe0fdb2d0, aBranch=0x7fffe9648d80)
at /mnt/git/nightingale/deps/xulrunner/mozilla/modules/libpref/src/nsPrefBranch.h:89
No locals.
#2 0x00007ffff4fba089 in nsPrefBranch::RemoveObserver (this=0x7fffe9648d80, aDomain=0x7ffff6ba53e0 <sFileOriginPolicyPrefName> "security.fileuri.strict_origin_policy", aObserver=0x7fffe0fdb2d0)
at /mnt/git/nightingale/deps/xulrunner/mozilla/modules/libpref/src/nsPrefBranch.cpp:634
rv = 0
key = {
@johnmurrayvi
johnmurrayvi / ng-nspr-log
Created June 16, 2013 06:09
export NSPR_LOG_MODULES=all:3 ; ./nightingale
jmurray@jjmvi-AMD-ubuntu:~/git/nightingale/nightingale/compiled/dist$ export NSPR_LOG_MODULES=all:3 ; ./nightingale
(process:9783): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
nsStringStats
=> mAllocCount: 6
=> mReallocCount: 2
=> mFreeCount: 6
=> mShareCount: 1
=> mAdoptCount: 0
=> mAdoptFreeCount: 0