8 Replies
      Latest reply: Mar 28, 2017 2:03 PM by eskimo RSS
      mbargar-cainc Level 1 Level 1 (0 points)

        We have a native app that embeds WKWebView to display content. It is used to display a series of interactive activities which are drawn in a canvas element.

         

        After spending some time in the app, and loading a number of resources, we experience a white screen, indicating that the process has crashed (crashlog here). We’ve made a number of changes to our app to try and help reduce the heap size, to no avail.

         

        The crash is repeatable and always happens at the exact same time within the app. The app performs better in iOS 9 -- this only happens at this time in iOS 10, including the 10.1 beta (14B55c).

         

        Does this crash log look familiar to anyone? Here's the topline:

        Exception Type: EXC_BAD_ACCESS (SIGSEGV)

        Exception Subtype: KERN_INVALID_ADDRESS at 0xfffffff0

        Termination Signal: Segmentation fault: 11

        Termination Reason: Namespace SIGNAL, Code 0xb

        Terminating Process: exc handler [0]

        Triggered by Thread: 0

         

        Thank you!

        • Re: WKWebView white-screen after loading content
          eskimo Apple Staff Apple Staff (6,075 points)

          It’s hard to be 100% sure but I believe this relates to a known bug in WebKit (r. 27858129).  A reproducible case would be really appreciated.  If you can file a bug report with a project that reproduces the issue, that’d be fab.

          Please post your bug number, just for the record.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"

            • Re: WKWebView white-screen after loading content
              hanhaify Level 1 Level 1 (0 points)

              Any updates? we are encountering similar issue, and it's really urgent.

               

              From safari developer tools I can see full dom structure and i was able to invoke native functions (eg. window.bridge.goBack()) through the console, everything seems working well but on the app, it's just blank.

               

              https://s18.postimg.org/w4h2162rt/white_screen.png

              • Re: WKWebView white-screen after loading content
                danoman7 Level 1 Level 1 (0 points)

                We are having a similar issue. Our application worked fine until IOS 10 came along.

                 

                Our experience is the same in that we can't reproduce by specific actions.  The white screen happens randomly, usually within half hour of using the app.  We have done refactoring to do better memory cleanup which has extended the occurance past half hour so it certainly seems like a memory/heap issue.

                 

                Eskimo can you send a link to defect 27858129? The link in the post is just back to this article.

                 

                Thanks,

                Dan

                  • Re: WKWebView white-screen after loading content
                    eskimo Apple Staff Apple Staff (6,075 points)

                    Eskimo can you send a link to defect 27858129?

                    No.  In general you can’t see information about bugs unless you filed them.

                    The link in the post is just back to this article.

                    Yeah, I know, sorry.  DevForums strips non-HTTP[S] links, alas.  I leave them in because it’s quite convenient for me, but I should probably find a way to strip them out.

                    ps I just had a look at the state of 27858129 and there’s nothing new to report on that front.

                    Share and Enjoy

                    Quinn “The Eskimo!”
                    Apple Developer Relations, Developer Technical Support, Core OS/Hardware
                    let myEmail = "eskimo" + "1" + "@apple.com"

                      • Re: WKWebView white-screen after loading content
                        danoman7 Level 1 Level 1 (0 points)

                        Eskimo can you provide any update on the logged defect? We have done a bunch of work to our application but still see the same results.

                          • Re: WKWebView white-screen after loading content
                            eskimo Apple Staff Apple Staff (6,075 points)

                            can you provide any update on the logged defect?

                            Nothing new to report here.

                            It would be great if you filed your own bug about this, preferable with a minimal project that reproduces the problem (even if it only reproduces the problem occasionally).  Either your bug will provide enough insight that it’ll be investigated independently, which would be cool, or it’ll be closed as a dup of 27858129, in which case you’ll be able to see the state of the original.

                            Please post your bug number, just for the record.

                            Share and Enjoy

                            Quinn “The Eskimo!”
                            Apple Developer Relations, Developer Technical Support, Core OS/Hardware
                            let myEmail = "eskimo" + "1" + "@apple.com"