iOS 8 whatsapp bug found

Discussion in 'iOS 8' started by ANDYMILLMAN, Jun 7, 2014.

  1. ANDYMILLMAN macrumors member

    Joined:
    Jul 6, 2008
    #1
    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
     
  2. jaggunothing macrumors regular

    jaggunothing

    Joined:
    Jul 30, 2008
    Location:
    Bangalore, India
    #2
    :rolleyes: stupid bug! and yes it does happen!! Now resolution please.
     
  3. Sharkey311 Suspended

    Joined:
    Jan 11, 2013
    #3
    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.
     
  4. Armen macrumors 604

    Armen

    Joined:
    Apr 30, 2013
    Location:
    127.0.0.1
    #4
    Expect a resolution in October.
     
  5. michaelra macrumors newbie

    Joined:
    Aug 11, 2010
    #5
    Oh wow, good find! I hope someone has told the Whatsapp team about that so they can fix it later?
     
  6. afsnyder macrumors 65816

    Joined:
    Jan 7, 2014
    #6
    My chats wouldn't load at all in whatsapp, it would just crash.
     
  7. michaelra macrumors newbie

    Joined:
    Aug 11, 2010
    #7
    I think "tt" as well, because everytime I said "Battlefield", the app crashed lol
     
  8. zireal macrumors newbie

    Joined:
    Jun 13, 2014
    #8
    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 ;-)
     
  9. jlsm511 macrumors 6502

    jlsm511

    Joined:
    Feb 26, 2008
    Location:
    KMIA
    #9
    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.
     
  10. MalcolmJID macrumors 6502a

    Joined:
    Nov 1, 2005
    Location:
    England
    #10
    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.
     
  11. jabingla2810 macrumors 68020

    Joined:
    Oct 15, 2008
    #11
    You don't need to tell the developers about this, they will know about it already.

    That's what this BETA is for.
     
  12. sualpine macrumors 6502

    sualpine

    Joined:
    May 13, 2013
    #12
    File a Radar.
     
  13. AlliFlowers Contributor

    AlliFlowers

    Joined:
    Jan 1, 2011
    Location:
    L.A. (Lower Alabama)
    #13
    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.
     
  14. HowEver macrumors 6502a

    HowEver

    Joined:
    May 10, 2005
    Location:
    Toronto
    #14
    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.
     
  15. zigmob macrumors newbie

    Joined:
    Jun 20, 2014
    #15
    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
     
  16. shandyman Suspended

    Joined:
    Apr 24, 2010
    Location:
    Dublin, Ireland
    #16

    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...
     
  17. jonnywheel2 macrumors newbie

    Joined:
    Jun 23, 2014
    #17
    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
     
  18. OneZweiThree macrumors regular

    Joined:
    Feb 17, 2013
    Location:
    Bavaria
    #18
    Do you have step by step instructions, on how to get it to work?
     
  19. Reason077 macrumors 68000

    Reason077

    Joined:
    Aug 14, 2007
    #19
    Considering Whatsapp updates their app about once per year, I wouldn't be holding my breath for a fix :(
     
  20. shandyman Suspended

    Joined:
    Apr 24, 2010
    Location:
    Dublin, Ireland
    #20
    It might end up working again in final. There have been apps that don't work in beta, but do in final without an update to the app.
     
  21. dof250 macrumors regular

    Joined:
    Jun 3, 2014
    #21
    Whatsapps latest beta works fine with iOS8 for me, now they need to release it...
     
  22. OneZweiThree macrumors regular

    Joined:
    Feb 17, 2013
    Location:
    Bavaria
    #22
  23. Daku93 macrumors regular

    Joined:
    Oct 29, 2010
    #23
    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.
     
  24. OneZweiThree macrumors regular

    Joined:
    Feb 17, 2013
    Location:
    Bavaria
    #24
    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 ;)
     
  25. jonnywheel2 macrumors newbie

    Joined:
    Jun 23, 2014
    #25
    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;
    
     

Share This Page