--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/edd7858e-5df1-410c-9e7f-5a1fea5471f0n%40googlegroups.com.
Hi LAG,
From which test version to which have you updated? I'm asking, because the issue you're describing is hardly related to this topic/PR.
I guess it is related to this:
https://groups.google.com/g/openpnp/c/nF6X3Hj-c9I/m/fdzmz20fAAAJ
If so, we should discuss it further, there.
_Mark
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/0WTDo56vwow/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/7089857a-c5df-4ffe-bc7f-71510a60978fn%40googlegroups.com.
Hi LAG,
the new version is clear, the question is what version did you have before?
> the platform is not compatible when opening the url.
Please post the log.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/7c881b61-d02c-447b-9f75-27418ee3ae04n%40googlegroups.com.
Unfortunately, I have no idea about COM because I refuse to even touch it with a ten-foot pole, bad bad tech.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/ac319ab2-7da4-445a-b8af-e7dce99c7093n%40googlegroups.com.
I believe the problem is actually with the openpnp-capture. It
somehow leaves the COM context in an illegal state.
https://groups.google.com/g/openpnp/c/nF6X3Hj-c9I/m/fdzmz20fAAAJ
Something seems off with the Windows side of openpnp-capture. There have been various changes in the way COM objects are released. Incredibly, COM uses reference counting, even across processes (hence the "I won't even touch it with a ten-foot pole"). I tried to fix one obvious bug, but it still seems broken.
I believe it should be rolled back to the old version (just the Windows part, not the Mac/Apple Silicon/ARM/Raspi additions).
@vonnieda, what do you think?_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b991a719-ea99-49af-aed8-0630c3269cd6n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/6a44ddf0-cb4f-70b3-f769-e460ecb3b2c4%40makr.zone.
New test version is deployed.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/8a6a4ca0-236e-43b5-b329-830dba8bb032n%40googlegroups.com.
> It's been some years, but I have worked with COM.
Cool 😎 💯
I guess you've seen the problems described above. It is about the Windows stuff, which happens in win/.
https://github.com/openpnp/openpnp-capture/tree/master/win
Note that the library dependency was not updated in OpenPnP for
a long time (until March 20, 2023). The last adopted version was
0.0.22 from Sep. 2020:
https://github.com/openpnp/openpnp-capture/tree/v0.0.22
I guess all the Windows specific changes since then are "suspicious". 😅
Plus there was a semantic merge conflict, that I tried to fix (with my limited knowledge about COM), but I might still have overlooked further issues:
https://github.com/openpnp/openpnp-capture/pull/65
Or maybe it is something completely different.
Apparently it is difficult to debug and test inside OpenPnP. The
only thing I was able to do myself was using the
win/test/openpnp-capture-test.exe
Jason gave some advice but I did not follow up on it:
https://github.com/openpnp/openpnp-capture/pull/65#issuecomment-1509000858
Thanks! 💯
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/cb3a8439-9463-41f9-9e2d-39df24026fc7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/72023982-d5d7-4108-890c-1a8f12416bacn%40googlegroups.com.
Like I described here, and in the following post...
https://groups.google.com/g/openpnp/c/SFUnSoJpUig/m/uzOLsa2vAAAJ
... I guess I found the real culprit.
https://bugs.openjdk.org/browse/JDK-8270269So it isn't the openpnp-capture .dll that is causing this, really. But in order to accomodate the stupid COM constraint, and the JVM bug, we likely need to use:
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)
And I now realize that LAG has suspected this two weeks ago!
https://groups.google.com/g/openpnp/c/0WTDo56vwow/m/2vurCpoKCAAJ
I hope @Jim Young or @LAG could give it a go and make a PR? 😁😎
https://github.com/openpnp/openpnp-capture
I frankly haven't got the time...
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/0bc35be1-a086-441a-b7dc-794f3d574b8e%40app.fastmail.com.
Hi everybody,
The test version of OpenPnP now
again contains the newest openpnp-capture-java
library, as it turned out not to be the culprit.
Apple silicon and Raspi 4 users should be happy again.
Windows users please use the workaround as described here:
https://github.com/openpnp/openpnp/pull/1560
Allow some minutes to deploy.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/a2d71fbf-e2f1-adf0-5bc8-f9bb675a3616%40makr.zone.
I've quickly made a PR fixing the
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/77da217a-fed3-5867-30f2-37afbc9a4a84%40makr.zone.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/ccd0386e-2343-5412-b9c3-14b8e5673de3%40makr.zone.
Hi everybody,
this fix is now in the new test version. Allow some minutes to
deploy.
OpenPnpCaptureCamera should now again work together with the installer-packaged Java 17's Desktop functionality on Windows.
Opening the Scripts directory or browsing URLs should work.
Details:
https://github.com/openpnp/openpnp/pull/1562
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/94c58f1a-5ace-43b6-a4b7-d49344b14382%40app.fastmail.com.