Ubuntu 16.04 LTS freeze problem:Freeze while after playing audio or video problem: qjackctl, pulseaudio

OS update wasn’t effective.

Killing qjackctl was effective to solve GUI freeze.

To start from the result upgrade to the latest one solved this.
It involved package manager repository error maybe…

Came back after a while

pulseaudio dependency programs upgrade and low latency kernel upgrade

pulseaudio dependency programs upgrade and low latency kernel upgrade to 4.15.0-47-lowlatency solved the problem finally. to 4.4.0-145-lowlatency is better. 4.15 version has error, jack sound clipping error.

 

I tried

sudo apt-get remove --purge qjackctl
sudo apt-get update
sudo apt-get install qjackctl

This made elapse time to freeze longer perhaps but not solved.
My case version not upgraded upper than 0.4.5.

 

masa@em-p:~$ qjackctl -v
Qt: 4.8.7
QjackCtl: 0.4.5

Latest is 0.5.5

I tried to install latest one but not upgraded.

tried download the source and ./configure, make install, but still 0.4.5.

After reboot, upgraded to 0.5.5.

This removed the problem so far…

Case closed!!!

Killing process launching console by

ctrl + alt + F2

and

ps x | grep qjackctl

kill PID(qjackctl)

and back to the GUI by

ctrl + alt + F7

was very plentiful study source for me…

I will write a post about this …

#apt-get #repository #Xdesktop #process

ref
https://github.com/rncbc/qjackctl/issues/13

==================================================================================

error has came back….

When Tried to driver update, apt-get error found.

tried kill pulseaudio

masa@em-p:~$ pulseaudio --kill
masa@em-p:~$ ps x |grep pulse
4512 ? S<l 0:00 /usr/bin/pulseaudio --start --log-target=syslog
4517 pts/17 S+ 0:00 grep --color=auto pulse

Before kill pulseaudio, check the grep result

masa@em-p:~$ pulseaudio --start
masa@em-p:s x |grep pulse
4535 ? S<l 0:00 pulseaudio --start
4541 pts/17 S+ 0:00 grep --color=auto pulse

Checked pulseaudio version

masa@em-p:~$ pulseaudio --version
pulseaudio 8.0

https://www.freedesktop.org/wiki/Software/PulseAudio/

Tried to upgrade pulseaudio. Xenial’s latest is 8.0 but dependency library were upgraded. Also low-latency kernel latest one added.

masa@em-p:~$ sudo apt-get upgrade pulseaudio
[sudo] password for masa: 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
pulseaudio is already the newest version (1:8.0-0ubuntu3.10+kxstudio1).
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic
linux-image-4.15.0-43-generic linux-modules-4.15.0-43-generic
linux-modules-extra-4.15.0-43-generic
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
linux-generic-hwe-16.04 linux-headers-generic
linux-headers-generic-hwe-16.04 linux-headers-lowlatency
linux-image-generic-hwe-16.04 linux-image-lowlatency linux-lowlatency
The following packages will be upgraded:
apache2-bin busybox-initramfs busybox-static google-chrome-stable
grub-common grub-efi-amd64-bin grub-pc grub-pc-bin grub2-common
kodi-inputstream-adaptive libpam-systemd libpolkit-agent-1-0
libpolkit-backend-1-0 libpolkit-gobject-1-0 libsmbclient libsystemd0
libsystemd0:i386 libudev1 libudev1:i386 libwbclient0 linux-libc-dev
linux-libc-dev:i386 policykit-1 python-samba rsyslog samba samba-common
samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules
systemd systemd-sysv udev
34 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 77.0 MB/80.0 MB of archives.
After this operation, 66.6 kB of additional disk space will be used.
Do you want to continue? [Y/n]

 

Setting up google-chrome-stable (73.0.3683.103-1) ...
Setting up grub-common (2.02~beta2-36ubuntu3.21) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up grub-efi-amd64-bin (2.02~beta2-36ubuntu3.21) ...
Setting up grub2-common (2.02~beta2-36ubuntu3.21) ...
Setting up grub-pc-bin (2.02~beta2-36ubuntu3.21) ...
Setting up grub-pc (2.02~beta2-36ubuntu3.21) ...
cp: cannot remove '/var/lib/ucf/hashfile.7': Read-only file system
rm: cannot remove '/tmp/grub.UniXufaHIw': Read-only file system
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Read-only file system
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libwbclient0:amd64 (2:4.3.11+dfsg-0ubuntu0.16.04.19) ...
dpkg: unrecoverable fatal error, aborting:
unable to flush updated status of 'libc-bin': Read-only file system
touch: cannot touch '/var/lib/update-notifier/dpkg-run-stamp': Read-only file system
E: Sub-process /usr/bin/dpkg returned an error code (2)
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - pkgDPkgPM::Go (30: Read-only file system)
masa@em-p:~$ pulseaudio --version
pulseaudio 8.0
masa@em-p:~$ sudo apt-get upgrade pulseaudio
W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
masa@em-p:~$

next time upgrade seemed successful.

New kernel added.

check the kernel version.

masa@em-p:~$ uname -r
4.4.0-143-lowlatency

check available kernel versions

sudo apt-cache search linux-image

download latest one from this deb file.

https://packages.ubuntu.com/ja/xenial/amd64/linux-lowlatency-hwe-16.04/download

reboot and select the new one

masa@em-p:~$ uname -r
4.15.0-47-lowlatency

This solved the problem!!!

Next grub configuration to set to default the new kernel.

 

==========================================================

P.S

And another problem. dbus-send error problem. Is this have any relation to freeze error?

masa@em-p:~$ dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop
Failed to open connection to "system" message bus: Failed to connect to socket /opt/anaconda2/var/run/dbus/system_bus_socket: No such file or directory

under /opt/anaconda2/var directory only has cache directory, no run directory in my environment.

 

Advertisements

Samba: gvfsd-smb-browse crashed with SIGABRT in _talloc_get_type_a …

Google result not friendly

https://www.google.com/search?client=ubuntu&channel=fs&q=gvfsd-smb-browse+crashed+with+SIGABRT+in+_talloc_get_type&ie=utf-8&oe=utf-8

But after a while, this error not generated.

And this time I could connect to Vaio Windows 7 and copy files through the network on File Browser.

At first I couldn’t establish connection after entered password for workgroup.

 

 

GitのGUIツールを探して:gitkとgit-gui

SourceTreeはLinuxで使えないみたいなので、他のGUIツールを探していた。

結局オフィシャルのguikgit-guiを使ってみることに。

参考サイト(日本語)
https://riptutorial.com/ja/git/example/18336/gitk%E3%81%A8git-gui

 

英語の本のリソース 日本語版も有る
https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Graphical-Interfaces

ちょっといじったけど、よくわからんかった。

ブランチの履歴が視覚化されて見やすかった。

Android Studio:Wifi sample build error

Error message tried to build wifi sample code from Android Studio “File > import samples” maybe lol.
https://developer.android.com/studio/write/sample-code

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

 

Starting from the result, download NDK and copy file to SDK directory solved this.
But the latest NDK hasn’t “mips64el-linux-android” any longer.

android-ndk-r16b-linux-x86_64.zip

is maybe the last one which has “mips64el-linux-android”

Copied to the file to “Sdk > ndk-bundle > toolchains” solved this…

 

Download
https://developer.android.com/ndk/downloads/?hl=zh-en
Reference
https://github.com/google/filament/issues/15

Eclipse error:Editor does not contain a main type or cannot be resolved to a type

eclipse error.jpeg

 

To begin from the cause and solve method…

serObj=load("jaydle.ser");

This statement causes all errors which eclipse said “cannot be resolved to a type” or something like that error.

It highlighted as red circle X, and the others are red light objects.
It said all of my original objects in the class are “cannot be resolved to a type” or something wrong.

From terminal (command line), I tried to compile and error occurred, it pointed

masa@em-p:~/Public/git/jaydle-project/jaydle-project$ javac src/jaydle/JaydlePrototype.java 
src/jaydle/JaydlePrototype.java:61: error: <identifier> expected
serObj=load("jaydle.ser");

So commented out the line,

all of errors disappeared and Mose came. lol.

 

I tried configure “Java build path” but it wasn’t effective.

Eclipse configuration is hard. And error detective system this case reverse effected….

See you!

Installing Qtractor: Made a lots errors

qtractor installing a lots errros.

My case it needed

sai means “sudo apt-get install”

But official site introduced way to dependency programs install at once…

 

ERROR MESSAGE1
*checking for Qt library version >= 5.1… no; Qt 5.1 or greater is required

-> sudo apt-get install qt5-default

 

ERROR MESSAGE2
*configure: error: *** SNDFILE library not found.

-> sai -libsndfile-dev

 

ERROR MESSAGE3
checking for qmake-qt5… no
configure: error: qmake-qt5 not found in current PATH. Maybe QT development environment isn’t available. (qt5-devel)

->sudo apt-get install qt5-qmake

Next I tried below commands but don’t know was necessary.

{-> sai qtchooser

->export QT_SELECT=5}

Next

-> sudo apt-get install qt5-default

 

next

ERROR MESSAGE4
checking for sndfile… no
configure: error: *** SNDFILE library not found.

-> sai -libsndfile-dev

 

next

ERROR MESSAGE5
Project ERROR: Unknown module(s) in QT: x11extras

 

->apt-cache search libqt5x11extras

->sai libqt5x11extras5-dev

solved
And then, did
“sudo make” and “sudo make install”
ERROR MESSAGE5
lupdate: could not exec ‘/usr/lib/x86_64-linux-gnu/qt5/bin/lupdate’: No such file or directory

->sudo apt-get install qttools5-dev-tools

FINISHED😃

 

qtractor

 

Writing “sleep or suspend script” for JACK and qjackctl

JACK is weak for suspend because it needs to be stopped and restarted when come back from suspend. So I’m trying to write suspend script which stop JACK before go to suspend mode and start after come back from sleep.

First stop and start qjackctl command is below.

dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop

 

dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.start

 

Now I have very simple script that very useful when come back from suspend mode because it stop and restart qjackctl automatically. That is

#!/bin/bash
dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop && dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.start

Actually this is enough useful. Lol. But I will try to make better one.

It use

sudo pm-suspend

command. The problem is needs sudoers configuration to use pm-suspend command.
Without this “sudo pm-suspend” in bash shell script won’t do anything.

sudo -S pm-suspend

will work, it receives password from a terminal and will suspend.
And this is almost perfect except for security problem

password='Hacker\'s password'
echo $password | sudo -S pm-suspend

It won’t require to input password interactively.

#!/bin/bash
#Suspend script for JACK(qjackctl)
#First stop JACK and go to suspend
dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop
password='********'
echo $password | sudo -S pm-suspend

Then, this should be assigned with hot key on GUI manager on Ubuntu.

And I guess restart script is harder because I should research mechanism and the script path which automatically done when return from suspend mode.

My plan was logging about sudoers configuration but now I think i can go with this.

I will write again soon. Bye.😀

 

 

 

Run Gauche Interpreter on Eclipse with SchemeScript Plugin

First you supposed to have Gauche interpreter on your system.

Here
http://practical-scheme.net/gauche/download.html

And install Eclipse plugin from

Help > Install New Software

Work with:
http://schemeway.github.io/SchemeScript/update-site

GaucheEclipse

And configure from

Window > Preferences > Scheme > Interpreter > External Interpreter

Command line:

gosh -i
Window > Perspective > Open Perspective > Scheme

and launch Scheme perspective.

Menu > Scheme > Select Interpreter > External Interpreter

And start interpreter.

Good luck😂

Gauche Eclipse

 

 

Git push error:Gitでプッシュできなかった件

masa@lve-imac2:~/Desktop/git/masa-examples$ git push https://github.com/iamaturtle113/masa-examples.git master
Username for 'https://github.com': iamaturtle113
Password for 'https://iamaturtle113@github.com': 
To https://github.com/iamaturtle113/masa-examples.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/iamaturtle113/masa-examples.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

ローカルで新しいディレクトリを作って、その中にファイル入れたら、プッシュエラーでた。

一度pullする。

git pull https://github.com/iamaturtle113/masa-examples.git master

ずらずらファイルできた。

masa@lve-imac2:~/Desktop/git/masa-examples$ git pull https://github.com/iamaturtle113/masa-examples.git master
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
From https://github.com/iamaturtle113/masa-examples
* branch master -> FETCH_HEAD
Adding practice/testImport.java
Adding practice/testImport.class
Adding practice/candelTestdir/IOMethods.java
Adding practice/candelTestdir/IOMethods.class
Adding practice/candelTestdir/.IOMethods.java.swp
Auto-merging practice/Thread1.java
CONFLICT (content): Merge conflict in practice/Thread1.java
Adding practice/Thread1.class
Adding practice/Thread1$ImpleRunnable2.class
Adding practice/Thread1$ImpleRunnable.class
Adding practice/RegexPractice01.java
Adding practice/RegexPractice01.class
Adding practice/IOMethods.class
Adding practice/.testImport.java.swp
CONFLICT (directory/file): There is a directory with name practice in HEAD. Adding practice as practice~b343e0c4b8b3b437105f2e8e535e69781941291c
Automatic merge failed; fix conflicts and then commit the result.
masa@lve-imac2:~/Desktop/git/masa-examples$ git push https://github.com/iamaturtle113/masa-examples.git master

 

でpushしたけど、また同じエラー。

To https://github.com/iamaturtle113/masa-examples.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/iamaturtle113/masa-examples.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

とりあえず、URLをオリジンに追加。

git remote add origin https://github.com/iamaturtle113/masa-examples.git

 

次にマージ

masa@lve-imac2:~/Desktop/git/masa-examples$ git fetch && git merge origin/master
From https://github.com/iamaturtle113/masa-examples
* [new branch] master -> origin/master
error: 'practice' appears as both a file and as a directory
error: practice: cannot drop to stage #0
error: merge is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.

普通ならコレで解決するらしいが、今回はだめだ。

masa@lve-imac2:~/Desktop/git/masa-examples$ git merge origin/master
error: 'practice' appears as both a file and as a directory
error: practice: cannot drop to stage #0
error: merge is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.

どうしよう。

masa@lve-imac2:~/Desktop/git/masa-examples$ git status
On branch master
You have unmerged paths.
(fix conflicts and run "git commit")

Unmerged paths:
(use "git add <file>..." to mark resolution)

added by them: practice
both modified: practice/Thread1.java

Untracked files:
(use "git add <file>..." to include in what will be committed)

practice~b343e0c4b8b3b437105f2e8e535e69781941291c

no changes added to commit (use "git add" and/or "git commit -a")

素直に

git add .
git status で確認すると、エラー消えた。
git merge origin/master -> commitしてからマージしてくれと

masa@lve-imac2:~/Desktop/git/masa-examples$ git merge origin/master
fatal: You have not concluded your merge (MERGE_HEAD exists).
Please, commit your changes before you merge.
masa@lve-imac2:~/Desktop/git/masa-examples$ git merge origin/master
Already up-to-date.

masa@lve-imac2:~/Desktop/git/masa-examples$ git push https://github.com/iamaturtle113/masa-examples.git masterUsername for 'https://github.com': iamaturtle113
Password for 'https://iamaturtle113@github.com': 
Counting objects: 21, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (20/20), done.
Writing objects: 100% (21/21), 7.34 KiB | 0 bytes/s, done.
Total 21 (delta 6), reused 0 (delta 0)
remote: Resolving deltas: 100% (6/6), done.
To https://github.com/iamaturtle113/masa-examples.git
b343e0c..b442916 master -> master

解決です。。

 

参考
https://qiita.com/takanatsu/items/fc89de9bd11148da1438