maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] Yappari - A WhatsApp Client for the N900 ONLY (https://talk.maemo.org/showthread.php?t=84605)

murik 2014-07-17 19:57

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by totalizator (Post 1433149)
I can't use Yappari anymore as the process has ~100% cpu usage all the time and it drains battery in about 6 hours. The application itself works. It was happening occasionally earlier and killing / restarting has helped but now it's like this even after a reboot.

try to delete yappari.log file, may be it'll help

Scorpius 2014-07-17 20:45

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by murik (Post 1433174)
try to delete yappari.log file, may be it'll help

Or maybe way too many chats open at the same time. Delete /home/user/.yappari/chats.db

totalizator 2014-07-18 00:31

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by murik (Post 1433174)
try to delete yappari.log file, may be it'll help

I have deleted the logs and so far, so good - cpu usage is back to normal.

@Scorpius: I have just 3 chats opened. Thanks for the reply.

murik 2014-07-18 15:43

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Scorpius, any news about profile photo?

totalizator 2014-07-24 14:01

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by Scorpius (Post 1433186)
Or maybe way too many chats open at the same time. Delete /home/user/.yappari/chats.db

It happened again - even after deleting chats.db. ~100% cpu usage, excessive heat and battery drained in few hours. This seems like a serious bug and I know that I'm not the only one affected as somebody earlier complained about it as well.

Scorpius 2014-07-24 16:37

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by totalizator (Post 1433817)
It happened again - even after deleting chats.db. ~100% cpu usage, excessive heat and battery drained in few hours. This seems like a serious bug and I know that I'm not the only one affected as somebody earlier complained about it as well.

It never happens to me.

Anyway what is Yappari doing when you have 100% CPU? hint: read the log.

sicelo 2014-07-26 22:18

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by Scorpius (Post 1420754)
He sent the emoji 0x9f989a which is not defined in Yappari.

Adding emojis is a tedious work so don't expect new emojis anytime soon.

Hi Scorpius, please explain the method for adding emojis. I am willing to try and redo on my N900.

I am assuming that Yappari sees an incoming 0x9f989a or whatever other character has been sent, then it looks for it in the icons directory to display it. is this sequence correct, or am I missing something?

In addition, you mentioned that the extra emojis were not defined in Yappari -- did this mean that they don't exist in the icons directory, or that they must be explicitly defined somewhere in the code?

EDIT: I see now where they are defined, meaning one would have to rebuild Yappari if /src/yappari-application/Whatsapp/util/utilities.cpp and /src/yappari-application/Gui/selectemojiwidget.cpp are edited.

n900hacker 2014-07-27 16:44

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
What happens if i delete the .log in /home/user/.config/scorpius/ ? Because it's larger than 700 mb and it's eating all my free space

Scorpius 2014-07-27 17:05

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by n900hacker (Post 1434034)
What happens if i delete the .log in /home/user/.config/scorpius/ ? Because it's larger than 700 mb and it's eating all my free space

Nothing, actually you should delete it quite often.

NerdKnight 2014-07-27 23:54

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
I made some patches to Yappari 1.1.46, this is the changelog:
  • Message notifications with group name instead of sender name
  • Anti-battery drain patch
  • Added UTF-8 codes for some emoji with softbank encoding. (before I received a square from contacts that uses windows phone, looks like it uses the new utf8 encodig)
Here you can download a deb package, and here the source code.

I think this can solve some problems posted recently.

Scorpius 2014-07-28 00:52

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by NerdKnight (Post 1434057)
I made some patches to Yappari 1.1.46, this is the changelog:
  • Message notifications with group name instead of sender name
  • Anti-battery drain patch
  • Added UTF-8 codes for some emoji with softbank encoding. (before I received a square from contacts that uses windows phone, looks like it uses the new utf8 encodig)
Here you can download a deb package, and here the source code.

I think this can solve some problems posted recently.

And what about the profile picture patch?!?

And what's that about an "anti-battery draining patch"?

NerdKnight 2014-07-28 02:06

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by Scorpius (Post 1434059)
And what about the profile picture patch?!?

And what's that about an "anti-battery draining patch"?

I made no patch for profile picture.

I had a problem very similar to what described totalizator, I posted about it some time ago. The "anti-battery draining patch" or 100% cpu usage patch solves this problem, at least for me :).

Scorpius 2014-07-28 03:48

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by NerdKnight (Post 1434061)
I made no patch for profile picture.

I had a problem very similar to what described totalizator, I posted about it some time ago. The "anti-battery draining patch" or 100% cpu usage patch solves this problem, at least for me :).

I mean, what exactly did you do in the code?

Yeah I know I can compare the source files with diff or something but I'm lazy :P

NerdKnight 2014-07-28 14:06

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by Scorpius (Post 1434067)
I mean, what exactly did you do in the code?

Yeah I know I can compare the source files with diff or something but I'm lazy :P

mmm, I made this a while ago, I put some network read function in a separated thread (so the gui doesn't freeze when there is some connection problem) and validated the socket connection if is valid before using it.
Here the patch with the battery fix and here the whole patch.

Scorpius 2014-07-29 17:13

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by NerdKnight (Post 1434099)
mmm, I made this a while ago, I put some network read function in a separated thread (so the gui doesn't freeze when there is some connection problem) and validated the socket connection if is valid before using it.
Here the patch with the battery fix and here the whole patch.

I would actually think your patch consumes even more battery:

1.- Instead of waiting for the I/O system to announce to the application there are bytes pending for reading in the network device, you're polling the network device every second with a timer.

2.- You're polling even when you're not connected. That's why you had to verify if socket is valid (and you used NULL in a C++ program like it were a C program). There's no way to call read() with an invalid socket object since the object had to trigger a signal and to do that it *has* to be valid.

So I'm not sure about this patch.

panjgoori 2014-07-29 17:31

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
as some people are reporting about 100% CPU usage i also face this problem but only when Yappari shows connected but not logged in and when it changes its status from Connected to Logged In everything goes back to normal.

Scorpius 2014-07-29 18:08

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by panjgoori (Post 1434227)
as some people are reporting about 100% CPU usage i also face this problem but only when Yappari shows connected but not logged in and when it changes its status from Connected to Logged In everything goes back to normal.

This is actually good information. I haven't ever reproduced the problem, but looks like it only happens when you have a bad connection.

panjgoori 2014-07-29 18:49

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by Scorpius (Post 1434230)
This is actually good information. I haven't ever reproduced the problem, but looks like it only happens when you have a bad connection.

well may be yes. as my cellular internet connection is very slow and also sometimes doesn't even work.

rusuck 2014-07-30 01:38

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
@ scorpius / nerdknight

can you make a fix/patch with the 2 points

- Message notifications with group name instead of sender name
- Added UTF-8 codes for some emoji with softbank encoding.

but wihtout the "Anti-battery drain patch".

Thanks in advance

maldicion02 2014-07-30 19:38

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Hi Scorpius!
There is a way to use Yappari without SIM? The SIM Slot of my N900 has failed and I try to use Yappari only with Wifi.

Grettings!

Scorpius 2014-07-30 19:46

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by maldicion02 (Post 1434333)
Hi Scorpius!
There is a way to use Yappari without SIM? The SIM Slot of my N900 has failed and I try to use Yappari only with Wifi.

Grettings!

Try it, it should work. If it says that the SIM card is not present or has been changed just click on Ignore or something.

maldicion02 2014-07-30 20:27

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by Scorpius (Post 1434334)
Try it, it should work. If it says that the SIM card is not present or has been changed just click on Ignore or something.

Thank you! It work

n900hacker 2014-07-30 22:13

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
I have a suggestion/idea: can you add an 'invisible mode' option? So we can enter yappari, read new incoming messages but the 'last seen at' log won't be sent, so other users will notice that our phone is off when we're chatting

NerdKnight 2014-07-30 22:21

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by Scorpius (Post 1434224)
I would actually think your patch consumes even more battery:

1.- Instead of waiting for the I/O system to announce to the application there are bytes pending for reading in the network device, you're polling the network device every second with a timer.

2.- You're polling even when you're not connected. That's why you had to verify if socket is valid (and you used NULL in a C++ program like it were a C program). There's no way to call read() with an invalid socket object since the object had to trigger a signal and to do that it *has* to be valid.

So I'm not sure about this patch.

1- The timer was introduced to process the connection in a separate thread (so the GUI doesn't freeze in case of a bad connection), it was the simplest solution I found at the time, without major rewriting of the code

2- When there is a connection problem or the socket is disconnected, the variable socket is assigned to NULL, so the timer does nothing until a new connection is open.
I can't remember exactly, but in some cases when there was a bad internet connection, the program stuck in a loop, generating the 100% cpu usage, that's why I cheked the socket. The changes in bintreenodereader.cpp where also important.

I been running yappari for months with this patch and the were no more 100% cpu usage, and the battery life is good for me, I haven't notice more battery usage because of this. Anyway I did this patch for me (I couldn't use yappari in the previous state), hope it helps you to find the problem and implement a better solution. Anyway I can help let me know. :)

NerdKnight 2014-07-30 22:25

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by rusuck (Post 1434259)
@ scorpius / nerdknight

can you make a fix/patch with the 2 points

- Message notifications with group name instead of sender name
- Added UTF-8 codes for some emoji with softbank encoding.

but wihtout the "Anti-battery drain patch".

Thanks in advance

You could try my patch, I've been using it for months and it works well for me, I haven't notice any battery problems because of this, and if you don't like it you could always return to the original version.

rusuck 2014-07-31 08:27

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Ok I will try your version...but if I have a problem i have to delete and reinstall. after that i won't have a profile picture anymore (because of the problems mentioned some pages ago)
Can you, or scorpius fix the profile picture problem?
Thanks

CepiPerez 2014-07-31 17:55

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
You don't need to that. Just rename original binary file and put the patched one in same place.

rusuck 2014-07-31 20:38

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
what is the path of the ".bin?" ?

cr.shaggy 2014-08-01 18:09

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
I have inserted a new sim and have registered a new account. How can I remove old contacts from yappari. All these contacts are still there under 'create chats' option.

sicelo 2014-08-01 19:56

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Quote:

Originally Posted by cr.shaggy (Post 1434551)
I have inserted a new sim and have registered a new account. How can I remove old contacts from yappari. All these contacts are still there under 'create chats' option.

Quickest is delete /home/user/.yappari/roster.db.
Of course if these contacts exist in your phone book, your next sync will 'restore' them..

GripFangWolf 2014-08-03 09:22

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Can Yappari be used on Nokia N9?

sicelo 2014-08-03 10:21

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
No, N9 has its own whatsapp client, Wazzap if i'm not mistaken. Check the Harmattan section

peterleinchen 2014-08-03 13:29

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
I believe WhatsUp from cepiperez is the better choice to go with, as Wazzapp has some quirks due to API changes and non-maintainment.

pistachio 2014-08-06 07:12

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Anyone had issue with receiving .vcf file in yappari.?? Today when a friend sent me a contact from her android, i got notification that i received it, but when i opened it, there was nothing at all.

sLumPia 2014-08-06 08:19

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
AFAIK, it doesn't supported yet
That's why I always asked my friend to type the phone number rather than send the contact details through Whatsapp

Scorpius 2014-08-06 20:02

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Looks like no matter what I try, I always receive a "Feature Not Implemented" response from WhatsApp.

I wonder if there's still a way to set a profile picture in WA1.2 or if I have to go to 1.4.

Last two I tried:
Code:

<iq>
  id=set_photo_3
  to=xxxxxxxxxx@s.whatsapp.net
  type=set
  xmlns=w:profile:picture
<picture>
  type=preview
  Content of type picture length: 5023
<picture>
  Content of type picture length: 63932

And
Code:

<iq>
  id=set_photo_3
  to=xxxxxxxxxx@s.whatsapp.net
  type=set
<picture>
  type=preview
  Content of type picture length: 5023
<picture>
  xmlns=w:profile:picture
  Content of type picture length: 63932

I always get:
Code:

<error>
  code=501
  text=feature-not-implemented

I don't really wanna go to WA1.4 (way too much work).

Any ideas?

EDIT: Also if I don't send the thumbnail:
Code:

<error>
  code=406
  text=not-acceptable


Scorpius 2014-08-09 18:53

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Well nobody has said anything so I guess nobody uses Yappari anymore.

Anyway 1.1.47 is almost done, it includes:

* Profile picture now works (thanks to coderus)
* Group name notifications instead of participant (thanks to NerdKnight)
* Fixed all missing emojis (I haven't finished this yet because there are new ones and that is a LOT of work).

Now about the battery drain:

I've made some modifications based on some of the NerdKnight code but without the polling. Basically the problem occurs only on bad connections and it's worse during login (when Yappari says "Connected" and before it says "Logged in").

Now if the PDU is incomplete (that's when the problem happens), Yappari will try to process GUI events and ask the NIC every second for more data, until it times out. This should avoid GUI freezes and CPU drain on bad connections.

But the real solution is: Use 3G and WiFi only :P

sicelo 2014-08-09 19:02

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
Scorpius .. the new Yappari is based on WA1.2 or 1.4?

davisrases 2014-08-09 19:09

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
I am not sure of moving to 1.4 because I use Yappari only for chats amd don't send emoticons, or vcards, or any other feature. But please, Scorpius, make sure Yappari keeps working.

Scorpius 2014-08-09 19:14

Re: [Announce] Yappari - A WhatsApp Client for the N900 ONLY
 
WA 1.2.

It's too much work to implement WA 1.4 to a dying phone, and I don't think WhatsApp will enforce it.

WhatsApp sold way too many phones with WhatsApp pre-installed that can't be uninstalled using WA1.2.


All times are GMT. The time now is 13:32.

vBulletin® Version 3.8.8