[Ring] Gnome-ring Crash Dump

2017-08-03 Thread Nathan Royce
gnome-ring[1134]: Loading vcf from: QDir(
"/home/user/.local/share/gnome-ring/profiles" , nameFilters = { "*" },
 QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters(
Dirs|Files|Drives|AllEntries ) )
kernel: gnome-ring[1134]: segfault at 0 ip 0029551580b8 sp
7ffc7d998df0 error 4 in gnome-ring[29550b4000+1ef000]
(gnome-ring) crashed and dumped core
*
systemd-coredump[1171]: Process 1134 (gnome-ring) of user 1000 dumped core.

  Stack trace of thread 1134:
  #0  0x0029551580b8
restore_selected_account (gnome-ring)
  #1  0x002955159577
ring_client_startup (gnome-ring)
  #2  0x7fe464023ead
g_closure_invoke (libgobject-2.0.so.0)
  #3  0x7fe46403657e
n/a (libgobject-2.0.so.0)
  #4  0x7fe46403ec85
g_signal_emit_valist (libgobject-2.0.so.0)
  #5  0x7fe46403f69f
g_signal_emit (libgobject-2.0.so.0)
  #6  0x7fe464306b32
g_application_register (libgio-2.0.so.0)
  #7  0x7fe46430730f
n/a (libgio-2.0.so.0)
  #8  0x7fe464307696
g_application_run (libgio-2.0.so.0)
  #9  0x00295515685a
main (gnome-ring)
  #10 0x7fe459d6e4ca
__libc_start_main (libc.so.6)
  #11 0x00295515662a
_start (gnome-ring)

  Stack trace of thread 1136:
  #0  0x7fe459e31e9d
poll (libc.so.6)
  #1  0x7fe463d4bc09
n/a (libglib-2.0.so.0)
  #2  0x7fe463d4bd1c
g_main_context_iteration (libglib-2.0.so.0)
  #3  0x7fe463d4bd61
n/a (libglib-2.0.so.0)
  #4  0x7fe463d72ae5
n/a (libglib-2.0.so.0)
  #5  0x7fe4598ac049
start_thread (libpthread.so.0)
  #6  0x7fe459e3bf0f
__clone (libc.so.6)

  Stack trace of thread 1135:
  #0  0x7fe4598b21ad
pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
  #1  0x7fe45a6d2ccc
__gthread_cond_wait (libstdc++.so.6)
  #2  0x7fe45b9aac79
_ZN7bmalloc9AsyncTaskINS_4HeapEMS1_FvvEE13threadR
  #3  0x7fe45b9aadca
_ZN7bmalloc9AsyncTaskINS_4HeapEMS1_FvvEE16threadE
  #4  0x7fe45a6d900f
execute_native_thread_routine (libstdc++.so.6)
  #5  0x7fe4598ac049
start_thread (libpthread.so.0)
  #6  0x7fe459e3bf0f
__clone (libc.so.6)

  Stack trace of thread 1138:
  #0  0x7fe459e31e9d
poll (libc.so.6)
  #1  0x7fe463d4bc09
n/a (libglib-2.0.so.0)
  #2  0x7fe463d4bd1c
g_main_context_iteration (libglib-2.0.so.0)
  #3  0x7fe4638f6061
_ZN20QEventDispatcherGlib13processEventsE6QFlagsI
  #4  0x7fe463899ffb
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFl
  #5  0x7fe4636b340e
_ZN7QThread4execEv (libQt5Core.so.5)
  #6  0x7fe459ad7396
n/a (libQt5DBus.so.5)
  #7  0x7fe4636b815b
n/a (libQt5Core.so.5)
  #8  0x7fe4598ac049
start_thread (libpthread.so.0)
  #9  0x7fe459e3bf0f
__clone (libc.so.6)

  Stack trace of thread 1167:
  #0  0x7fe459e31e9d
poll (libc.so.6)
  #1  0x7fe463d4bc09
n/a (libglib-2.0.so.0)
  #2  0x7fe463d4bd1c
g_main_context_iteration (libglib-2.0.so.0)
  #3  0x7fe44051c55d
n/a (libdconfsettings.so)
  #4  0x7fe463d72ae5
n/a (libglib-2.0.so.0)
  #5  

[Ring] Multitude Of Problems From Unsent Messages, To UI Functions Not Working

2017-08-03 Thread Nathan Royce
Ran a recent test with a "stranger(?)" and noticed some issues:

Setup:
Me: 1) Android (bootstrapped to bootstrap.ring.cx), 2) Linux PC
(bootstrapped to local server, gnome client). Both linked together.
Stranger: Linux

1) Some messages don't get sent (or get lost?).
Stranger started with trying to send a message, and I showed as being online.
One has to request first? I think that's what android said.

I started with "test" from my android, and "test1" from my pc.
Stranger saw "test1", but not "test".
Later testing showed that a message from my pc was not sending while
android did (vice-versa in the first test).
Of course, the unsent message also doesn't get synced to the linked device.

2) Conversations can't be deleted on the PC.
3) Contact doesn't get listed under Contact icon on PC.
4) Add/Remove to contact context menu item does nothing except change
the item state.
5) There should be a Contacts view in android like there is on the PC.
Even though you can add a contact in the android native contacts, it
would be better to have a list of filtered ring users showing in ring.

Are these issues that the developers had not already encountered in
their own tests?
I can't imagine how these issues could have existed and the
application been considered stable or the version bumped up to 1.0.

If a dev would like to test it with me, we can meet up on IRC.



Re: [Ring] updating Ring, can't log in

2017-08-03 Thread Daniel Pocock
On 02/08/17 18:11, Anthony LĂ©onard wrote:
> Hi,
>
>> I installed the Ring package on Debian quite some time ago in 2016.
>>
>> This week I took the latest package from unstable, compiled it on a
>> system running stretch and installed it.  Version
>> 20170720.2.5bf0a65~dfsg1-1
>>
>> When I start it, I see a window that says "Account migration
>> required"
> That's because Ring has changed a lot between 2016 and today,
> especially in October/November of last year. It needs to decipher your
> private key archive to make updates to it.
>
>> I don't remember setting any password but it won't let me proceed
>> without typing a password.
> Something is weird as in the old version, a password wasn't mandatory
> so it should have asked you to create one but not entering a
> preexisting. There's probably a true problem here that we should
> investigate.
>
>> Also, I don't have any friends added to that Ring account, it was
>> just a
>> test - I would like to remove that account on the Debian system and
>> make
>> it use the RingID currently working on my Android device.
> To delete your account and any other Ring configuration, you can delete
> those folders (with Ring not being running):
>   - ~/.config/ring
>   - ~/.local/share/ring
>   - ~/.local/share/gnome-ring (may not exist)
>   - ~/.cache/ring
>   - ~/.cache/gnome-ring (may not exist)
>
> On the next start, it will behave like a new fresh install.

I've tried that, but it is still showing "Account migration required". 
This time the "RingID:" field is blank though


Here is the command I used:

rm -rf ~/.config/ring ~/.local/share/ring \
  ~/.local/share/gnome-ring ~/.cache/ring \
  ~/.cache/gnome-ring

Then I tried:


dconf reset -f /cx/ring/


and now it starts.



>> On the Android device, I have Ring from F-Droid, version 20170215
> This version should be ok. You can download a more recent one on Google
> Play if necessary. The F-Droid version is not as much up-to-date due to
> problems on F-Droid side (but I'm not the most knowledgeable about
> what's happening exactly with them).

I don't have Google Play or a Google account on my phone

In the app, I press "Link another device to this account" and it asks
for a password.  I don't remember ever creating a password.  I tried a
couple of passwords and each time it says "Please wait... Publishing new
account information" and after a few seconds "Couldn't unlock your
account using the provided password."

Regards,

Daniel




Re: [Ring] Use PKG_CONFIG_LIBDIR For Cross Compiling For Android

2017-08-03 Thread Daniel Pocock
On 03/08/17 11:19, Nathan Royce wrote:
> I had issues with some of the daemon contrib packages failing to build
> when "configure" found libraries on the build system and failed when
> it couldn't find headers. Specifically gnutls and samplerate.
>
> When I set "export
> PKG_CONFIG_LIBDIR=//ring-daemon/contrib/arm-linux-androide
> abi/lib/pkgconfig", then ran ./compile.sh, compilation succeeded.
>

Could this help solve the issues with the F-Droid builds?





[Ring] Android Crash After Creation Or Device Link

2017-08-03 Thread Nathan Royce
Android build commit: 2b9ae33b51328f0638061b0a8fb848c22e1176b8
Daemon build/fixed commit: 52d944196e2c809db5eded2ae3ad0396a2b08c2d

This is issue has now been fixed. Account creation and linking device
both work without crashing.
Feel free to push the app to the Google Play Store.

As a side note, if you merge a fix, mention it in the ML thread so the
OP knows the fix can be tested.
I only knew about the fix by chance, looking at the git log.