-
Notifications
You must be signed in to change notification settings - Fork 125
Cache error, late initialization error #69
Conversation
|
@deakjahn Do you think how important the SDK changes is? |
espresso3389
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure whether example should have targetSdkVersion 31 or not but the changes are reasonable.
|
Yep, I mentioned that in the review comment above. I don't think it's important to change the SDK but simply, it didn't compile here without the change. I don't know why (it complained about some incompatibilities that some dependent packages are already on a newer SDK) ... I should have left it out from the commit, actually. :-) |
|
OK, anyway, I merged the PR. I'll release a new version soon. |
|
Thanks. I started to create my own layouts and I can see some zooming issues now but I don't yet know if it's my error. Basically, when I change to a new PDF, I call |
|
1.0.20 is released! |
|
Yep, I got the Kotlin errors back. I'll copy some of them to see what might be different at your end: This is why I needed to change Kotlin version. Maybe because my own app is in a different one? |
|
Forget it. My bad, my Kotlin version in my own app was old. Sorry. |
|
Yes, it is. On Android. I can't get any display on iOS (Simulator). I've just updated to Monterey and Xcode 13 because of another package and compilation problems. Do you happen to have any feedback if this causes issues? I get completely blank pages but correct layout and page decoration shadow boxes, so the PDF is read, just some display problem. Now I have the error message as well: "Attempted to composite external textures using the software back end." Am I to suspect that I can't really test this on simulator, just on a real device (that I don't have)? |
pdf_render uses Flutter's Texture that is realized by Metal API on iOS. So the cause is not Xcode 13. We should check other things. Anyway, please open another issue to discuss such issues. |
|
@espresso3389 Fair enough, but I won't. I realized the reason: I run my Xcode on a macOS in a VM. So, sadly, it won't work. Not worth to start an issue for it. :-) |

The two items we discussed in #68.
Thinking about it, even if using the key works as you suggested, I'd still modify that cache allocation. A simple check and avoids a strange error that's not obvious at first sight.