Forum

Notifications
Clear all

Error loading Homer3 GUI  


Lingkai Tang
Posts: 2
Topic starter
(@tlktrans)
New Member
Joined: 3 months ago

Hello,

I have some trouble loading the main GUI of Homer3. I am using Matlab2020b on Ubuntu 20.04. I got the following error message. Can anyone help me fix this?

Many thanks,

Kyle

 

Homer3

January 5, 2021, 19:14:30
Running Homer3 v1.28.10

============
SYSTEM INFO:
============
Platform Arch : GLNXA64
RAM Total : Not available on this platform
RAM Free : Not available on this platform
HD Space Total : 975.4 GB
HD Space Free : 806.1 GB

java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
at java.awt.Desktop.checkActionSupport(Desktop.java:221)
at java.awt.Desktop.browse(Desktop.java:380)
at com.mathworks.mde.webbrowser.WebBrowser.openedInSystemBrowser(WebBrowser.java:815)
at com.mathworks.mde.webbrowser.WebBrowser.access$3600(WebBrowser.java:46)
at com.mathworks.mde.webbrowser.WebBrowser$WebBrowserRequestHandler.transformWebUrl(WebBrowser.java:779)
at com.mathworks.mde.webbrowser.WebBrowser$WebBrowserRequestHandler.transformWebUrl(WebBrowser.java:762)
at com.mathworks.html.UrlTransformer$TransformerVisitor.visitWebUrl(UrlTransformer.java:35)
at com.mathworks.html.WebUrl.accept(WebUrl.java:131)
at com.mathworks.html.UrlTransformer.transformUrl(UrlTransformer.java:15)
at com.mathworks.mde.webbrowser.WebBrowser$WebBrowserRequestHandler.handled(WebBrowser.java:766)
at com.mathworks.html.AggregateLightweightRequestHandler.handled(AggregateLightweightRequestHandler.java:27)
at com.mathworks.toolbox.matlab.matlabwindowjava.handler.RequestHandler.onBeforeBrowse(RequestHandler.java:56)
at org.cef.CefClient.onBeforeBrowse(CefClient.java:740)
Opened application config file /home/kyletang/Downloads/Homer3-master/AppSettings.cfg

MainGUI: January 5, 2021, 19:14:33 - Will load group folder #1 - /home/kyletang/Downloads/Homer3-master/

Unrecognized function or variable 'font_listbox'.

Error in setGuiFonts (line 83)
set(hc(ii), 'fontsize',font_listbox.size);

Error in setGuiFonts (line 132)
setGuiFonts(hc(ii), font_uicontrol.size, font_uicontrol.weight);

Error in MainGUI>MainGUI_Init (line 58)
setGuiFonts(hFig);

Error in MainGUI>MainGUI_OpeningFcn (line 194)
MainGUI_Init(handles, {'zbuffer'});

Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

Error in MainGUI (line 21)
gui_mainfcn(gui_State, varargin{:});

Error in Homer3 (line 41)
MainGUI(groupDirs, inputFileFormat, logger, 'userargs');

4 Replies
Yuanyuan Gao
Posts: 2
(@yuanyuan216)
New Member
Joined: 4 months ago

I have seen a similar error on my Ubuntu system. I think it is due to the lack of fonts in the Ubuntu system. I will try to fix it and post here if I can.

Reply
Yuanyuan Gao
Posts: 2
(@yuanyuan216)
New Member
Joined: 4 months ago

Hi Steve,

 

I think it is because the 'setGuiFonts.m' in the Homer doesn't consider Ubuntu system:

line 55:

if ispc()
font_listbox = initFont(font_uicontrol.size,'normal',[]);
elseif ismac()
font_listbox = initFont(font_uicontrol.size+1,'normal',[]);
end

if we change it to 

if ispc()
font_listbox = initFont(font_uicontrol.size,'normal',[]);
elseif ismac()
font_listbox = initFont(font_uicontrol.size+1,'normal',[]);
elseif isunix()
font_listbox = initFont(font_uicontrol.size+1,'normal',[]);
end

it will work on ubuntu.

Reply
1 Reply
Lingkai Tang
(@tlktrans)
Joined: 3 months ago

New Member
Posts: 2

@yuanyuan216 Thank you so much Yuanyuan. It works.

Reply
Stephen Tucker
Posts: 7
Admin
(@sstucker)
Homer3 Developer
Joined: 6 months ago

Great find Yuanyuan, I will add this logic right now.

Full disclosure, we Homer3 developers do not use Linux right now! Any support we can get from the community to make things work on that platform is greatly appreciated.

 

Reply
Share: