baker icon indicating copy to clipboard operation
baker copied to clipboard

Crash on orientation change (three-card)

Open rocketjoe opened this issue 15 years ago • 39 comments

On iPad1 baker crashes all the time on an orientation change when using three-card render mode. Just try 'real' pages with images and such... (like laker example pages).

Seems like re-rendering all three webkit cards is too much...

rocketjoe avatar Nov 08 '11 09:11 rocketjoe

Uhm we developed it bot on iPad 1 and 2, that's weird. We'll check. :)

With "real pages" you mean that it doesn't crash with the demo book, right? :)

folletto avatar Nov 08 '11 10:11 folletto

Just try something like laker example pages... with huge images and such. I don't remember exactly, but I think the problem does not occure on the 'text-only'-example pages of the baker package.

rocketjoe avatar Nov 08 '11 17:11 rocketjoe

i have the same problem but more without three cards...if you use baker whit a lot a .jpg in a same html and when you use div hidden for landscape or portrait....crash.....

mutador avatar Nov 09 '11 10:11 mutador

Could you give us more details, like what's in the debug log when it crashes, or how to reproduce it?

I tried laker with three-cards on and it doesn't seem to crash here on my iPad 1, is there anything different than the demo Laker package?

folletto avatar Nov 09 '11 23:11 folletto

I will send you a demo book soon.

rocketjoe avatar Nov 11 '11 08:11 rocketjoe

i have one http://itunes.apple.com/us/app/ohmygod00/id472971950?l=es&ls=1&mt=8 whit the same problem

and now all change , i try to upload an new , and apple says me baker must be a diferent folder than documents, but i am waiting for review , when i finished it i´ll put a post about this new especification.

they use folder library/cache

the problem is in the memory of the ipad, if the book is too big it will crash

mutador avatar Nov 11 '11 08:11 mutador

Thanks @mutador, but we need the source, not a released book to be able to debug it. WebKit is a hell to debug, unfortunately, and that's basically why we are in this situation. :)

folletto avatar Nov 11 '11 15:11 folletto

i know, i only say thanks for your work. i can send my folder book because they have a lot of images whit copyright, but you only make a book whit a lot of big images and html, video and js and see the problem

mutador avatar Nov 11 '11 17:11 mutador

I am also experiencing this issue. I will see if I can put something together to send.

lostinjapan avatar Nov 14 '11 04:11 lostinjapan

Thanks. :)

folletto avatar Nov 14 '11 17:11 folletto

Just chiming in to say I have the same issue, I removed all JS includes but it still happens, as @mutador said this happens on pages with big images, two or three orientation changes and the app crashes.

I can't provide my book but if by next week you don't have one to try I'll try to create one with random images from the net and send it to you guys so you can debug. Thanks.

ErneX avatar Nov 18 '11 19:11 ErneX

I get the same issue. Using three-cards, only 1 image. Change orientation a couple of times on the page with the image and the app crashes.

Dreeke avatar Dec 05 '11 15:12 Dreeke

I'm aware this is an old discussion, but I'm revisiting all the issues and I see that this one was still open.

So, was anyone able to track down the issue?

folletto avatar Feb 14 '12 00:02 folletto

This is not only an old discussion but also an old bug and still existing bug. Just use jQuery and some on-document ready stuff, combined with larger images and baker crashes instantly on orientation change. The html page you use for testing are no real-life pages.

rocketjoe avatar Feb 15 '12 17:02 rocketjoe

baker for big magazines only is right in threecards mode, in screenshot crash.... but i think this is a problemen for all the people whit html5 similar frameworks....for this a lot of people make the magazines only in one orientation....

but i agree whit you " The html page baker book use for testing are no real-life pages."....pleased use this kind of book for testing

http://itunes.apple.com/us/app/ohmygod-es-02/id499892763?l=es&ls=1&mt=8

mutador avatar Feb 15 '12 22:02 mutador

We don't test with the book in GitHub, we aren't so naive, come on! I'm a bit offended that you think so! ;) :D

We have a set of different books, magazines and test pages, mostly sent by users. So, please, if you can send us a demo magazine that doesn't work and triggers this bug, that would be great. Unfortunately our time is limited, and as such we really need the support of our users to try solve bugs. :)

folletto avatar Feb 15 '12 23:02 folletto

https://github.com/Simbul/baker/issues/301

i dont send nothing about this post, you can get it all the books you want...

don´nt offended....we love your work , for me is very very apreciated

mutador avatar Feb 16 '12 10:02 mutador

I'm sorry I won't crack existing books to do tests, you understand. If you can send us a demo book fine, otherwise we'll need to spend some time ourselves to build one that triggers the problem. :)

folletto avatar Feb 16 '12 14:02 folletto

but is my book.... if you want i send you by wetransfer

mutador avatar Feb 16 '12 16:02 mutador

LOL yes I know. Do I need a whole book? Couldn't you just send me one page that crashes? Or all the pages crash? :)

folletto avatar Feb 16 '12 16:02 folletto