Unable to update Brainstorm

When I am trying to update Brainstorm, I am getting the following error;

BST> Starting Brainstorm:
BST> =================================
BST> Version: 3.1.120607 (07-Jun-2012)
BST> Checking internet connectivity… ok
BST> Your version of brainstorm is old. Update is required.
Exception in thread “Thread-44” java.lang.OutOfMemoryError: Java heap space
at ice.util.io.LazyCachedInputStream.OEAB(OEAB)
at ice.util.io.LazyCachedInputStream.arraycopy(OEAB)
at ice.util.io.LazyCachedInputStream.read(OEAB)

Plz help me…

Best,

Tapan
at ice.util.io.MarkerInputStream.read(OEAB)
at org.brainstorm.file.BstDownload.downloadThread(BstDownload.java:162)
at org.brainstorm.file.BstDownload$2.run(BstDownload.java:111)

Hello Tapan:

the following thread will help on this one:

http://neuroimage.usc.edu/forums/showthread.php?923-Update-not-installing-correctly&highlight=heap+space

Cheers,

Hi experts,

I would like to update my Brainstorm version 04-Jan-2016.
When I start the software using MATLAB, It says
Checking internet connectivity… failed
I could not succeed in downloading latest Brainstorm update. The error is given below

Could not download new packages
Error: File to download does not exist
Software was not updated

I could not succeed even after resetting database and options to default in option “edit preferences”

Please help

Himanshu

Simply delete your existing brainstorm3 folder and download a new one from the Brainstorm website (from the Download page). In the future, let Brainstorm update itself every month.

Thanks Francois,
It worked!

Himanshu

Several people reported update issues recently, we would like to understand where this is coming from.
Could you please help us debugging this?

Three simple steps to begin with:

  1. Execute the command “ver” in your Matlab command window and copy-paste the entire output here
  2. Execute the command “web(‘www.google.com’)” in Matlab, and make sure it loads correctly the website in the internal Matlab web browser
  3. When you start Brainstorm, can you see the line “BST> Checking internet connectivity… ok” in the command window? Does it say OK or Failed?

Thanks
Francois

[quote="Francois, post:6, topic:718"]
al people reported update issues recently, we would like to understand where this is coming from.
[/quote
Hi Francois here are the answers to your queries

ver

MATLAB Version: 9.0.0.341360 (R2016a)
MATLAB License Number: 1078356
Operating System: Linux 3.10.0-693.1.1.el7.x86_64 #1 SMP Thu Aug 3 08:15:31 EDT 2017 x86_64
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

MATLAB Version 9.0 (R2016a)
Computational Anatomy Toolbox Version 1363 (CAT12.5)
Parallel Computing Toolbox Version 6.8 (R2016a)
RICOH MEG Reader toolbox for MATLAB Version 1.0.3
Signal Processing Toolbox Version 7.2 (R2016a)
Statistical Parametric Mapping Version 7219 (SPM12)
Statistics and Machine Learning Toolbox Version 10.2 (R2016a)
Yokogawa MEG Reader toolbox for MATLAB Version 1.5.2

Ans 2: web(‘www.google.com’) opens the google web page Google

Ans 3 When I start Brainstorm it says BST> Checking internet connectivity... ok

Kindly troubleshoot this bug, as it is not allowing us to update the brainstorm even I tried with the release on 29 Jan 2019. However I could not succeed .

Before you reported that at startup, was showing “Checking internet connectivity… failed” so it is not the same problem as before.

What does happen if you run this manually:

urlUpdate  = 'https://neuroimage.usc.edu/bst/getupdate.php?c=UbsM09';
zipFile = fullfile(installDir, 'brainstorm_update.zip');  % Replace installDir with your home folder
gui_brainstorm('DownloadFile', urlUpdate, zipFile, 'Brainstorm update');

And this:

com.mathworks.mlwidgets.html.HTMLPrefs.setProxySettings;
proxy = com.mathworks.webproxy.WebproxyFactory.findProxyForURL(java.net.URL('https://neuroimage.usc.edu/bst/getupdate.php?c=UbsM09'))

And simply:

bst_update

(Note that you may need to change the quotes back to simple quotes if the forum reformats them…)

urlUpdate = 'https://neuroimage.usc.edu/bst/getupdate.php?c=UbsM09';

zipFile = fullfile(installDir, 'brainstorm_update.zip'); % Replace installDir with your home folder
Undefined function or variable 'installDir'.

gui_brainstorm('DownloadFile', urlUpdate, zipFile, 'Brainstorm update');
Undefined function or variable 'zipFile'.

com.mathworks.mlwidgets.html.HTMLPrefs.setProxySettings;
proxy = com.mathworks.webproxy.WebproxyFactory.findProxyForURL(java.net.URL('https://neuroimage.usc.edu/bst/getupdate.php?c=UbsM09'))

proxy =

 []

bst_update
BST> Update: Unable to download updates.
BST> Error: Could not read distant file.

ans =

 0

Thanks.
When indicating in a comment "Replace installDir with your home folder", I was actually asking you to replace installDir with a string. For instance:

zipFile = fullfile('/home/anshuhim20', 'brainstorm_update.zip');
urlUpdate = ‘https://neuroimage.usc.edu/bst/getupdate.php?c=UbsM09’;
gui_brainstorm(‘DownloadFile’, urlUpdate, zipFile, ‘Brainstorm update’);