-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error in findjobj (line 145) #47
Comments
Hey Korey! If you close the window, and re-open it does it always happen? I've been getting a similar error, but its quite sporadic and 90% of the time when I open the functions it works fine, and if not I just re-open and it generally works the next time. The problem is when using the undocumented functions to access java properties of the figure (findjobj). The error is a strange one since it doesn't occur all the time when opening the functions. As far as I've understood it has to do with background java objects not being available when matlab asks for them, resulting in an error. Let me know if its a persistent issue, or only occurs sometimes. Maybe I can finally get to the root of the problem and fix it once a for all. |
Hey Armand, |
Could you check for the existence of the function It seems to be the function you're missing and In my 2015b release
Its definitely a normal function that should also be found in 2016b: Let me know whether this function is in your path or not and we'll go from there. |
Thanks for pointing that out. which -all javachk; returns: I'm stuck here. I'm familiar with removing directories from matlab's path, Any help here would be great! On Tue, Oct 11, 2016 at 5:20 PM Armand Mensen [email protected]
|
Hmm... My 2016b version also returns the ".p" variant... but works just fine, so this is not the root of your issue. Are you familiar with setting breakpoints? Could you try setting a breakpoint at line 145 in Both in the normal command window and while debugging in
If I try the function with some bad input like
Such a strange problem you're facing. |
After setting a breakpoint at line 145 in findjobj, I receive the same
ans = 0×1 empty struct array with fields:
ans = struct with fields:
A caveat is that I do get your GUI window to open, but when I load your %Error in swa_Explorer>menu_LoadData (line 480) %Error while evaluating Menu Callback On Wed, Oct 12, 2016 at 9:15 AM Armand Mensen [email protected]
|
So I'm really confused by this error now. In essence your original error indicates that it cannot find the function If you run to the breakpoint, then manually run the function (which you have done and it gives the correct output), and then just press "continue", does the function still error at that point or somewhere else? There must be something else that I'm missing with your setup but it will be very hard to diagnose without direct access to your machine. It also seems to be a problem within the findjobj function which is not technically part of the swa-toolbox, only a dependency. If this persists I will try to talk to the creator if that function Yair Altman. |
Thanks for your continued help. I re-verified your suggestion of breakpoint
ans = 0×1 empty struct array with fields:
Undefined function 'setVerticalAlignment' for input arguments of type Error in swa_Explorer>DefineInterface (line 314) Error in swa_Explorer (line 3) Just to be sure, I removed all toolboxes from my path that may have As a test of swa_Explorer, I tried loading 'swaFile_5min_example.mat'. This Error in swa_Explorer>menu_LoadData (line 480) Error while evaluating Menu Callback As a test of swa_SleepScoring, I tried loading 'swaData_5min_example.set'. Error in swa_SleepScoring>menu_LoadEEG (line 273) Error while evaluating Menu CallbackBoth GUI errors result from an error due to Menu Callback. Any idea what On Fri, Oct 14, 2016 at 5:19 AM Armand Mensen [email protected]
|
That's actually not the same error :) which is progress of a kind. The first error was undefined function or variable This error however I do know, and it only occurs intermittently based on some java processes running in the background. This is the error that generally disappears after restarting once or twice. So the hope is that the |
Hi,
First of all, this seems like an awesome and timely toolbox. Thank you for creating and sharing it!
In testing out your GUIs (swa_SleepScoring, swa_Explorer), I'm running into this error for both:
% Undefined function or variable 'javachk'.
%
% Error in findjobj (line 145)
% error(javachk('awt'));
%
% Error in swa_SleepScoring>DefineInterface (line 98)
% jStatusBar = findjobj(handles.StatusBar);
%
% Error in swa_SleepScoring (line 8)
% DefineInterface
findjobj is in my file path and here are my creds:
% computer = PCWIN64
% >> ver
% MATLAB Version: 9.1.0.441655 (R2016b)
% Operating System: Microsoft Windows 7 Professional Version 6.1 (Build 7601: Service Pack 1)
% Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Cheers,
Korey
The text was updated successfully, but these errors were encountered: