tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.28k stars 1.68k forks source link

Crashing Ionic when rendering #261

Open rafaeldcastro opened 5 years ago

rafaeldcastro commented 5 years ago

Use case: description, code

I can't show any code, because the problem isn't give me an error, a message or anything.

I have this situation: My app has to do 2 renders with domToImage.

1) First I get an image from Camera/Gallery (base64) 2) Then adding to img.src it renders a simple background. 3) I put this bg under a set of Dom elements and then render it all together

This process was happening fine, no problems, no errors, no bugs. Then out of a sudden it start crashing the app. There's no pattern on action. It crashes under bg render or the set render, or sometimes don't. But it don't miss 2 in a row. If doesn't fail the first routine, the 2nd will. Anywhere.

I'm lost... I was using Xwalk on Ionic and was ok. Then started to crash. Remove the plugin, created another equal project without still crashes. Changed the plugin importation, even reset the smartphone for a certain clean installation...

Any direction?

Library version

2.6.0

Browsers