-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unlockUIFig functionality discontinued #22
Comments
Hi @thewingit, This issue was already fixed on my own ("development") fork, but hasn't been merged yet. Feel free to try that version out if you like! |
Hi @Dev-iL , Thanks for the quick reply. I'll try the forked one out.
By inspecting the browser's dev tools, it seems that I have problems with some JS that is trying to connect with the local server:
It seems from the error log that the MessageService tries to connect 30 times and then fails completely. Anyway, it might be related to my system. |
@thewingit Unfortunately I haven't seen your edit earlier since I wasn't notified about it (unlike when you post a new reply). What you describe is the same issue that was discussed at length in the last PR. While I have provided detailed steps for, it didn't seem to help Yair. I run into this issue from time to time myself, and the way I solve it is by running the figure code twice - the first time around we get a blank page, but the 2nd time it works. Note that it is important NOT TO CLOSE the browser window in which the non-working 1st tab was created. After the 2nd (working) tab is opened, the 1st can be closed. If this doesn't work for you, feel free to contact me in chat, and I'll try to assist you. |
Hi @Dev-iL , thank you for your response. I tried what you mentioned but it doesn't seem to work, either. I tried also to comment out the certificate line in the internal webwindow source code, but this seems to break MATLAB somehow (the figure is not displayed at all and I got stuck while exiting). BTW i get the same problem you posted in the PR's comments. To me it seems pretty much an authentication problem, as the local server refuses to let the browser connect to the messaging service. |
Unfortunately this functionality is not very stable. Although I got it working on several different systems and different MATLAB releases (some were clean MATLAB installs), other users of the tool seem to have difficulties. I'm not sure what exactly I'm doing differently, but here are the steps I take:
What is your default browser? When you tried it with Firefox, did you import the certificate using the dedicated Firefox dialogs, or did you rely on the OS import? For Firefox, different steps are required (they are mentioned inside the subfunction 1 Although this used to work in older releases, this method is completely invalid as of R2017b. |
Hi @Dev-iL , sorry I'm responding that late. I didn't find the time to work on this further. I tried your steps in Google Chrome, Mozilla Firefox and Microsoft Edge browsers by setting them as default browser and by calling them from MATLAB directly using your example ( Anyways I want to thank you for your support. As soon as I have time to work on this, I will let you know. |
@thewingit I empathize, I was having a frustrating time with this same issue at first. When we 'unlock' the figure for viewing in an external browser we are essentially tell MATLAB that the host is undefined, which should bypass a browser-checking script MATLAB has written into the uifigure. For whatever reason, this check will fail sometimes if the channel being opened to browser has some 'not-ready' status. What I have found works for me on Chrome Version 68.0.3440.106 (Official Build) (64-bit) (Windows 10 64bit) with MATLAB 2018a is if I open chrome before launching MATLAB, |
Hey @Khlick, thanks for the feedback! I will give it a try as soon as possible. |
According to this comment:
... so this might be another thing to try. |
Problem Description
Testing the
unlockUIFig
from the provided example gives me following MATLAB exception:I think the problem was introduced in 6e12b32f98a3426a0c7d3488311a54bee889893d and it occurs if one executes
unlockUIFig
after the certificate has been installed.I fixed the issue by defining
wasImported
outside the if clause, but I can't see the figure anyways on my browser. I tried both Chrome and Firefox. Both give me the warning of invalid certificate and I have to add a security exception, but that's normal I think.Steps to Reproduce the Problem
To reproduce the issue, simply try to run the code from the provided example.
Specifications
mlapptools
version (or commit link/hash): 2dcedfdThe text was updated successfully, but these errors were encountered: