Search found 211 matches

by Svyatoslav
Mon Nov 15, 2021 11:41 am
Forum: Bookmap API
Topic: Reading settings throws exception on newest version on Windows
Replies: 5
Views: 137

Re: Reading settings throws exception on newest version on Windows

As I mentioned, this limitation comes from Java, not us. We just don't provide corresponding "--add-opens " flag, so JRE 17 blocks access. So gson library, that we use for serialization, just can't perform it. You have few options: - using your own serializer and passing a string to bookmap. That wa...
by Svyatoslav
Fri Nov 12, 2021 2:09 pm
Forum: Bookmap API
Topic: Reading settings throws exception on newest version on Windows
Replies: 5
Views: 137

Re: Reading settings throws exception on newest version on Windows

Sorry, you are right, java update was the reason: Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte java.time.LocalTime.hour accessible: module java.base does not "opens java.time" to unnamed module @4ae82894 To serialize/deserialize LocalTime, GSON ha...
by Svyatoslav
Fri Nov 12, 2021 12:21 pm
Forum: Bookmap API
Topic: Reading settings throws exception on newest version on Windows
Replies: 5
Views: 137

Re: Reading settings throws exception on newest version on Windows

Hi. We did bump up java version, but I don't think that would affect it. I also don't think we changed anything relevant, really. My guess is that you actually do have incompatible settings somehow. If you could share your config file with me directly via any channel - please do, I'll take a look at...
by Svyatoslav
Fri Nov 12, 2021 9:04 am
Forum: Bookmap API
Topic: Can I control the z-order of added shapes
Replies: 1
Views: 49

Re: Can I control the z-order of added shapes

Hi. Right now you can't really control that, as far as I remember. Adding such functionality is a valid feature request.
by Svyatoslav
Wed Nov 10, 2021 11:05 am
Forum: Bookmap API
Topic: Unable to remove shape exception with screen painter
Replies: 19
Views: 328

Re: Unable to remove shape exception with screen painter

As a matter of fact, I tried the only removal I have to put into a try/catch, but could not catch the exception and I also could not find my code in the stack traces.  Yeah, right. That's one of the issues I'm working on. What happens is that bookmap will schedule the request and crash later, basic...
by Svyatoslav
Tue Nov 09, 2021 2:11 pm
Forum: Bookmap API
Topic: Unable to remove shape exception with screen painter
Replies: 19
Views: 328

Re: Unable to remove shape exception with screen painter

In the version that I tested you create new canvas and then try to dispose the *old* icon as if it's part of the new canvas. But it's not. Please, consider logging all icon removals and additions, as I said. Just do it together with object ID's of the canvases to which you direct those requests. You...
by Svyatoslav
Tue Nov 09, 2021 11:52 am
Forum: Bookmap API
Topic: Unable to remove shape exception with screen painter
Replies: 19
Views: 328

Re: Unable to remove shape exception with screen painter

Take a look at Layer1ApiCanvasColorsDemo. Your ScreenSpacePainter should have #dispose() called once user leaves the tab. That's when you are expected to dispose any canvases that you've created. In current version it looks like dispose might not be called - we'll take a look into that and will try ...
by Svyatoslav
Tue Nov 09, 2021 10:46 am
Forum: Bookmap API
Topic: Unable to remove shape exception with screen painter
Replies: 19
Views: 328

Re: Unable to remove shape exception with screen painter

I'm not 100% sure, but I think I know what's going on here: when tab is switched back, addon creates a new canvas. Then it tries to delete an old shape from the new canvas. But the old shape does not belong to the new canvas - it belongs to the old one. So the crash happens. You can only delete a sh...
by Svyatoslav
Tue Nov 09, 2021 10:32 am
Forum: Bookmap API
Topic: Unable to remove shape exception with screen painter
Replies: 19
Views: 328

Re: Unable to remove shape exception with screen painter

Hi, Working on that right now. Yes, I could reproduce it and I still suspect that addon might be doing something wrong, but my plan is to do it two stage: I want to add some basic protection from invalid input (so bookmap no longer crashes deep inside the core code but instead clearly complains wher...
by Svyatoslav
Fri Nov 05, 2021 11:07 am
Forum: Bookmap API
Topic: Unable to remove shape exception with screen painter
Replies: 19
Views: 328

Re: Unable to remove shape exception with screen painter

Hi, Could you please send me an example indicator that produces this error, so we can reproduce/debug? (directly over email is fine). Also, does that happen on 7.3?