photools.com Community

IMatch Discussion Boards => IMatch Scripting and Apps => Topic started by: kkae on July 09, 2017, 12:33:17 PM

Title: Problem with Appmanager after update to 2017.7.2
Post by: kkae on July 09, 2017, 12:33:17 PM
After the update to the version 2017.7.2 in the Appmanager-panel is shown

Failed to load URL http://127.0.0.1:50519//imatch/apps/appmanager/index.html?cb=11801194
Error: ERR_CONTENT_LENGTH_MISMATCH (-354)

After switch back to 2017.6.10 all apps are shown in the panel.
Attached the logfile.
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mario on July 09, 2017, 02:11:22 PM
I know. Apparently a re-appearing bug in CivetWeb. Press <F5> a number of times. I've already reported that to the CivetWeb developers.  Only happens if the cache in the browser cache is disabled or an app panel is reloaded (which always skips the cache). CivetWeb is the web server I use in IMatch.
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: thrinn on July 09, 2017, 02:50:25 PM
I am also getting this error (fails loading jQuery, fails loading bootstrap). Is there any workaround? Refreshing using F5 is quite cumbersome while debugging with breakpoints.

What seems to work is to enable the browser cache (in Chrome, which I use for debugging). But this may lead to other problems, for example not recognizing changes to the source code. Which is also suboptimal because I try do do some app development with a substantical amount of trial & error.
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mario on July 09, 2017, 04:42:57 PM
No work-around. Slipped in with the latest update of Civetweb. I cannot roll-back to the previous version because of changes in IMatch.
We'll see when I get word from the CivetWeb Developers. Pressing <F5> is easy and works.
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mees Dekker on July 09, 2017, 05:40:50 PM
However: at my place the appmanager is totally blank. Does not show any messages. Pressing F5 does not work.

It was really an major improvement to my workflow to be able to invoke GeoSetter from within IMatch. Alas: this improvement went down the drain with 2017.7.2. I will have to revert to my old workflow.  :(
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mario on July 09, 2017, 05:53:53 PM
Right-click into the App Manager and then press <F5> several times. This should do the trick.

As a work around, just make a Favorite for the app and launch it with a key press or mouse click.
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mario on July 09, 2017, 06:57:51 PM
I have found the reason for the problem in the CivetWeb source code. I just don't know what to make of it.
By all means I will need to prepare and ship yet another IMatch update to fix this, which totally ruins my schedule. I really need to somehow free a couple of weeks of my time to make some progress with the 64-bit version and the next generation of IMWS:.. :(
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mario on July 09, 2017, 07:42:13 PM
You can download IMatch 2017.7.4 which has just been released. The problem should be gone with that version.
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: thrinn on July 09, 2017, 08:41:21 PM
Hi Mario,
this is really awesome. Now you are solving bugs even for other software!

With 2017.2.4, it works again as expected, even with caching disabled.
Thank you!
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mario on July 09, 2017, 08:42:28 PM
Yes. Yawn. Sigh.... ;)

Civetweb is an open source software, created by volunteers. It's just good behavior to not only find bugs but also try to fix them. And to tell the developers what you've found out so they can fix the problem at the source.

I ran into this error during the IMatch 2017 Beta and there was quite a lot of back and forth. In the end, another developer with the same troubles provided the helpful information that helped solving this problem.

I've updated Civetweb several times since (to make IMWS as safe and solid as possible) but the last release (big one) seems to have re-introduced the problem. But I needed the update to compile IMatch 64 bit cleanly...
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mees Dekker on July 15, 2017, 06:25:45 PM
Could it be that this problem is re-introduced in2017.7.6? My app manager window is empty (white) after starting IMatch.

I notice that I have to use F5 several times (after right-clicking in the app manager window) to make  the apps visible.
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mario on July 15, 2017, 06:42:24 PM
No, this was fixed for good.
Have you tried to reboot and then run a repair on IMatch via the Windows control panel?
Title: Re: Problem with Appmanager after update to 2017.7.2
Post by: Mees Dekker on July 15, 2017, 10:52:39 PM
Fixed indeed. Thanks for the swift reply and helpful tip.