iOS 8 whatsapp bug found

ANDYMILLMAN

macrumors member
Original poster
Jul 6, 2008
76
0
For those having endless issues with whatsapp crashing. If you send any word that has a double f in it I.e "off" This will cause the app to crash completely. This is likely the reason group chats are crashing too - logs show dispatch queue error being the main culprit
 

jaggunothing

macrumors regular
Jul 30, 2008
111
1
Bangalore, India
For those having endless issues with whatsapp crashing. If you send any word that has a double f in it I.e "off" This will cause the app to crash completely. This is likely the reason group chats are crashing too - logs show dispatch queue error being the main culprit
:rolleyes: stupid bug! and yes it does happen!! Now resolution please.
 

Sharkey311

Suspended
Jan 11, 2013
825
146
Tested it on mine and its the same, though I just sent a sentence to someone and it crashed as well...but they still received the message even though it doesn't show I sent it successfully on my end.
 

michaelra

macrumors newbie
Aug 11, 2010
9
0
For those having endless issues with whatsapp crashing. If you send any word that has a double f in it I.e "off" This will cause the app to crash completely. This is likely the reason group chats are crashing too - logs show dispatch queue error being the main culprit
Oh wow, good find! I hope someone has told the Whatsapp team about that so they can fix it later?
 

afsnyder

macrumors 65816
Jan 7, 2014
1,270
33
For those having endless issues with whatsapp crashing. If you send any word that has a double f in it I.e "off" This will cause the app to crash completely. This is likely the reason group chats are crashing too - logs show dispatch queue error being the main culprit
My chats wouldn't load at all in whatsapp, it would just crash.
 

michaelra

macrumors newbie
Aug 11, 2010
9
0
For those having endless issues with whatsapp crashing. If you send any word that has a double f in it I.e "off" This will cause the app to crash completely. This is likely the reason group chats are crashing too - logs show dispatch queue error being the main culprit
I think "tt" as well, because everytime I said "Battlefield", the app crashed lol
 

zireal

macrumors newbie
Jun 13, 2014
1
0
Hello there,
the cause of the random app-crashes is only related with the content of the message you've received or if you press the send-button. It's not only the "ff" pattern, the "fi" causes also a complete crash of the application. "fi" is used in some programming-languages to finish a "if-else"-statement. I hope on october, it's frustrating - BUT, Telegram works good on iOS8 b1 ;-)
 

jlsm511

macrumors 6502
Feb 26, 2008
333
70
KMIA
Very frustrating, I had to fall back and use BBM until it gets fixed and/or B2 comes out and it doesn't have this issue anymore.
 

MalcolmJID

macrumors 6502a
Nov 1, 2005
711
86
England
Why don't you tell the developers instead of posting on MacRumors? For those saying it's frustrating, why don't you just use iOS 7 until iOS 8 comes out? Surely you know you'll run into issues, so if it's so frustrating why do you bother?

Beggars belief.
 

jabingla2810

macrumors 68020
Oct 15, 2008
2,271
937
You don't need to tell the developers about this, they will know about it already.

That's what this BETA is for.
 

sualpine

macrumors 6502
May 13, 2013
494
474
For those having endless issues with whatsapp crashing. If you send any word that has a double f in it I.e "off" This will cause the app to crash completely. This is likely the reason group chats are crashing too - logs show dispatch queue error being the main culprit
File a Radar.
 

AlliFlowers

Contributor
Jan 1, 2011
4,481
11,028
L.A. (Lower Alabama)
You load a beta knowing that some (many) apps will not work. The beta comes with lots of warnings. Developers find out about the new os the same day as everyone else around the world. Because an app doesn't work in beta 1, doesn't mean it won't work in beta 2. Last year I had issues that didn't crop up until beta 3, but magically went away in beta 4.

Either be patient, or don't use a beta as your daily driver.
 

HowEver

macrumors 6502a
May 10, 2005
782
248
Toronto
For those who keep saying "It's beta, what did you expect?" this is a forum; what did you expect?

People keep posting threads here because people keep posting threads here. It's what Macrumors is for. The title of this thread is "iOS 8 whatsapp bug found." What did you expect?

For those who use the app, it's good to know why it's crashing and kind of have a workaround for the interim.
 

zigmob

macrumors newbie
Jun 20, 2014
2
0
Workaround

It seems whenver a chat has one of the character combinations ff, fl or fi in it (case sensitive, so capitals are not an issue) the app will crash upon opening it.

As a workaround you can download your whatsapp sqlite database from your phone (for example using iexplorer) open it in a db management tool (for example sqlitebrowser) en remove the combinations using sql query, save the database and replace the current one on your phone. Re-open whatsapp and opening the chat should work now.

I ran below sql queries in order to place a space between the harmful combinations.

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'ff', 'f f')
where ZWAMESSAGE.ZTEXT like '%ff%';

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'fi', 'f i')
where ZWAMESSAGE.ZTEXT like '%fi%';

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'fl', 'f l')
where ZWAMESSAGE.ZTEXT like '%fl%';

Unfortunately you have to repeat this everytime someone sends you one of these combinations again.

Regards,
Wouter
 

shandyman

Suspended
Apr 24, 2010
6,458
396
Dublin, Ireland
Why don't you tell the developers instead of posting on MacRumors? For those saying it's frustrating, why don't you just use iOS 7 until iOS 8 comes out? Surely you know you'll run into issues, so if it's so frustrating why do you bother?



Beggars belief.

How do you know that people haven't reported it? I, for one, definitely have. Shouldn't assume should you. Why do you care if people are using it? You don't have to read the threads, let alone whinge about people using it. People like to try things. That's a good thing. It's just as frustrating as stupid posts like yours...
 

jonnywheel2

macrumors newbie
Jun 23, 2014
3
0
It seems whenver a chat has one of the character combinations ff, fl or fi in it (case sensitive, so capitals are not an issue) the app will crash upon opening it.

As a workaround you can download your whatsapp sqlite database from your phone (for example using iexplorer) open it in a db management tool (for example sqlitebrowser) en remove the combinations using sql query, save the database and replace the current one on your phone. Re-open whatsapp and opening the chat should work now.

I ran below sql queries in order to place a space between the harmful combinations.

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'ff', 'f f')
where ZWAMESSAGE.ZTEXT like '%ff%';

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'fi', 'f i')
where ZWAMESSAGE.ZTEXT like '%fi%';

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'fl', 'f l')
where ZWAMESSAGE.ZTEXT like '%fl%';

Unfortunately you have to repeat this everytime someone sends you one of these combinations again.

Regards,
Wouter
Taken your work around a step further so you don't have to manually rerun your fix everytime someone sends you one of these combinations again.

Code:
CREATE TRIGGER insert_Ff AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'ff', 'f f')
  WHERE ZWAMESSAGE.ZTEXT like '%ff%';
END;
 
CREATE TRIGGER insert_Fi AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'fi', 'f i')
  WHERE ZWAMESSAGE.ZTEXT like '%fi%';
END;
 
CREATE TRIGGER insert_Fl AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'fl', 'f l')
  WHERE ZWAMESSAGE.ZTEXT like '%fl%';
END;
wanted a quick fix and it works well for me but if you can improve it fork away https://gist.github.com/jonathan-wheeler/0f8235f5904365e3c75a
 

OneZweiThree

macrumors regular
Feb 17, 2013
195
264
Bavaria
Taken your work around a step further so you don't have to manually rerun your fix everytime someone sends you one of these combinations again.

Code:
CREATE TRIGGER insert_Ff AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'ff', 'f f')
  WHERE ZWAMESSAGE.ZTEXT like '%ff%';
END;
 
CREATE TRIGGER insert_Fi AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'fi', 'f i')
  WHERE ZWAMESSAGE.ZTEXT like '%fi%';
END;
 
CREATE TRIGGER insert_Fl AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'fl', 'f l')
  WHERE ZWAMESSAGE.ZTEXT like '%fl%';
END;
wanted a quick fix and it works well for me but if you can improve it fork away https://gist.github.com/jonathan-wheeler/0f8235f5904365e3c75a
Do you have step by step instructions, on how to get it to work?
 

Reason077

macrumors 68020
Aug 14, 2007
2,248
807
Considering Whatsapp updates their app about once per year, I wouldn't be holding my breath for a fix :(
 

dof250

macrumors regular
Jun 3, 2014
209
123
Whatsapps latest beta works fine with iOS8 for me, now they need to release it...
 

Daku93

macrumors regular
Oct 29, 2010
222
231
Taken your work around a step further so you don't have to manually rerun your fix everytime someone sends you one of these combinations again.

Code:
...
wanted a quick fix and it works well for me but if you can improve it fork away https://gist.github.com/jonathan-wheeler/0f8235f5904365e3c75a
Thank you so much! German is a Language where there are LOTS of ff and fi, so nearly all of my conversations were crashing whatsapp. Now its working perfectly fine again.
 

OneZweiThree

macrumors regular
Feb 17, 2013
195
264
Bavaria
Thank you so much! German is a Language where there are LOTS of ff and fi, so nearly all of my conversations were crashing whatsapp. Now its working perfectly fine again.
How did you get it to work? The code of the guy above, where you have to do it manually every time, works perfectly, but the "better" code doesn't seem to work for me... :confused:

I`m also from germany ;)
 

jonnywheel2

macrumors newbie
Jun 23, 2014
3
0
Do you have step by step instructions, on how to get it to work?
Its actually very simple but if your not comfortable with the steps then I would strongly suggest you don't try it but considering people in this situation are on the beta I assume you at least have a vague understanding of all the processes involved.

1. Turn off icloud documents for whatsapp (Settings> icloud>Documents & Data) and also turn off any funky accessibility settings you might have like zoom or bold as they also cause issues with whatsapp. Turn off wifi and turn on airplane mode(prevents you get new messages during the process) Quit whatsapp and close it fully(double tap home button and swipe it away).

2. Download and install iExplorer (free trial)

3. If you don't have anything that can connect to sqllite databases I'd suggest you go with Navicat for SQLite (free trial). Download and install.

4. Plug in your iphone and open up iExplorer. Click "Apps> WhatsApp> Documents" right click "ChatStorage.sqlite" and export to folder.

5. Go to the location you exported the file to and make a copy of it for a backup. Open the sqlite file in navicat. Click on the connection in the left hand panel and rightclick on the database think its called "main" and select "New Query".

6. A new window should appear, click on the "Query Editor" tab and paste in.
Code:
-- Cleans up existing messages --
update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'ff', 'f f')
where ZWAMESSAGE.ZTEXT like '%ff%';

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'fi', 'f i')
where ZWAMESSAGE.ZTEXT like '%fi%';

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'fl', 'f l')
where ZWAMESSAGE.ZTEXT like '%fl%';

-- Sets up trigger's to re-clean message text when ever new messages are created --
CREATE TRIGGER insert_Ff AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'ff', 'f f')
  WHERE ZWAMESSAGE.ZTEXT like '%ff%';
END;
 
CREATE TRIGGER insert_Fi AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'fi', 'f i')
  WHERE ZWAMESSAGE.ZTEXT like '%fi%';
END;
 
CREATE TRIGGER insert_Fl AFTER INSERT ON ZWAMESSAGE
BEGIN 
  UPDATE ZWAMESSAGE 
  SET ZTEXT = replace( ZTEXT, 'fl', 'f l')
  WHERE ZWAMESSAGE.ZTEXT like '%fl%';
END;
7. Click the Run button and the query will execute. Exit Navicat and copy the sqllitefile back into the Whatsapp directory on your iphone. Whatsapp will still crash when ever you receive a message with these combination but when you reopen it, it should work fine.

Seeing as the issue will probably be fixed by the time iOS8 goes public it is probably best to remove these triggers once its stable. Just repeat the previous steps but run these queries instead.
Code:
DROP TRIGGER insert_Ff;
DROP TRIGGER insert_Fi;
DROP TRIGGER insert_Fl;
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.