# Tag Info

87

Yes, there was a recently pushed incorrect paclet update that will cause this startup hang. All platforms can be affected, not just Windows. For a workaround, start a standalone kernel (WolframKernel.exe on Windows, WolframKernel in a terminal on Linux; on Mac you will need the full path to the kernel binary, typically a location like /Applications/...

24

Typically, Mathematica contacts the license server every 2 minutes. If you have a license which supports a very large number of processes, that interval can grow (to help MathLM to scale better). It will never be more than 30 minutes. If three consecutive license checks fail, then Mathematica will instead revalidate the entire license file on what would ...

18

Here are two possible approaches. Using initialization code Firstly, one notes that the process priority is set (in AddOns/Applications/SubKernels/LocalKernels.m) using SetSystemOptions["ProcessPriority" -> -1]; where the numeric value corresponds to a priority as follows: -2: low -1: below normal 0: normal 1: above normal 2: high Process ...

16

I'm adding an alternate solution for Mac, as the suggested answer did not work for me. It might be due to me force quitting it prior to looking for a solution. This method is a bit of a scorched earth process though. In Finder go to ~/Library/Mathematica. Once there delete the Paclets folder. Next start up Mathematica again. Create a blank worksheet. ...

15

Here are three progressively more intrusive steps to troubleshoot Mathematica. Hold down Shift-Control (Shift-Command on Mac) while starting Mathematica, as described here. If this didn't fix the problem, move to the next step. Evaluate SystemOpen[$UserBaseDirectory]. This will reveal the directory where Mathematica keeps all its settings, packages, ... 15 There is a setting in Mathematica that controls whether it can access the internet. Go to Preferences -> Internet Connectivity and uncheck "Allow the Wolfram System to access the Internet". Disabling this will disable some features that depend on internet access, such as Wolfram|Alpha queries. This setting can also be controlled by the$AllowInternet ...

15

This can be relatively easily done using extremely useful $FrontEnd option "ClearEvaluationQueueOnKernelQuit" introduced by Chris Degnen. Usage Print @$SessionID quitAndEvaluate[ Print @ $SessionID ] 25183094379509806957 25183094575602627552 quitAndEvaluate[] will restart kernel without aby additional tasks. It may be useful if you want ... 13 You can use the global AutoOpenNotebooks setting to give a list of notebooks that must be opened on startup. The default path where it looks for these notebooks is$UserBasedirectory/SystemFiles/FrontEnd/TextResources. Now every time you open Mathematica, that notebook will be opened (in my case, tile.nb).

13

One approach would be to run the evaluation in a second kernel which is controlled from a main kernel through MathLink/WSTP. Then your main kernel can detect if the MathLink connection dies. You can implement this manually (a lot of work), or you can try to do it using the parallel computing tools, where much of the groundwork is already laid down. In ...

12

You can download the Remote Development Kit here (scroll down a bit). It's a CDF file that shows this when opened: Click "INSTALL" to finish the installation. Now go to Palettes -> Remote Development Control Panel. Click Configure Pi Connection and enter the IP address of your Pi, as well as the default username. Click New Pi Notebook, enter an ...

11

Assuming FrontEnd survives, prepare 3 cells: (*init cell, won't be needed later*) state = CurrentValue[EvaluationNotebook[], {"TaggingRules", "state"}] = 0; SetOptions[ #, {CellTags -> {"Procedure"}, ShowCellTags -> True} ]& /@ {NextCell[], NextCell @ NextCell[]}; CurrentValue[$FrontEndSession, "ClearEvaluationQueueOnKernelQuit"] = False; ... 10 I assume this is caused by the dynamic content becoming active and trying to run its internal code involving standardBasis which is at that moment undefined (and you can't do a Parton an undefined variable). You may add SaveDefinitions->True to your manipulate to store definitions it depends on. SaveDefinitions has the disadvantage that it may cause ... 10 To make my comment into an answer, The basic problem, which is not so easy to fix, is that the kernel initialization code has protection against aborts. Since Throw/Catch are implemented internally using this (C code level) abort machinery, they are not functional during initialization, so running any code using them is problematic. The ... 9 You appear to have access to 7 Mathematica licenses each of which allow running 4 sub Math kernels. This should allow you to address 4 + 28 = 32 kernels Also of interest, each Mathematica network license comes with a home use license. You could allocate the home use licenses to additional machines (I think even virtual machines) and get another 4 ... 8 One way to deal with problems like this is to use DynamicModule inside the Manipulate: Manipulate[ DynamicModule[{e1, e2, standardBasis, y, p} , e1 := {1, 0} ; e2 := {0, 1} ; standardBasis := {e1, e2} ; y := 3 ; Dynamic[ p := {x, y} ; arrowsReference = Table[Arrow[{p, p + Part[standardBasis, j]}], {j, 2}] ] ] , {{x, 1}, ... 8 webMathematica is probably the most secure solution. Unless someone hacks your sever there is no way to get to the source of your program. Using webMathematica you could easily use standard Web services. Check out the documentation So e.g., you can create a macro in Excel and then it looks like In this way you use standard web technology and keep all ... 8 Not a full answer, but a little too long for a comment. You may need to pay a close attention to licensing. If the results of your computation are used on a single machine (e.g. somehow saved to a database or used further in the computation), you may only need a professional single-machine license. If they are going to be used by other employees / machines ... 8 In order for a package in Autoload to load, it must have the file Kernel/init.m. Thus, Autoload/MyPack.m will not load. Autoload/MyPack/MyPack.m will also not load. Instead, we need to have the following structure: A package file at Autoload/MyPack/Mypack.m and an initialization file for the package at Autoload/MyPack/Kernel/init.m, containing the ... 7 Some services provided by Mathematica require Mathematica to access our servers through the internet. The privacy policy on this topic can be found here: http://www.wolfram.com/legal/privacy/wolfram-mathematica.html 6 Version: Mathematica Version 9.0.1.0, Microsoft Windows 64-bit OS: Windows 7 My mathematica crashed the same way. But only when it was not connected to the internet. I changed my default printer , and it fixed the problem. Follow these steps: Start menu>>Devices and printers There will be one/many printers listed there. The one with a green check mark on ... 6 The list of recently opened notebooks (as shown in File > Open Recent) is saved in the NotebooksMenu option for$FrontEnd, arranged by ascending absolute time (i.e., most recent is last). So the most recent notebook can be opened with: Last[NotebooksMenu /. Options@$FrontEnd] /. HoldPattern[_ -> {file_, ___}] :> NotebookOpen@file Some ... 6 Of course this is just an academic technical exercise and cannot be really used due to legal restrictions of the CDF license. On Linux and Windows with JLink this seems to work easily: [rolfm@localhost cdffun]$ cat CDFFun.java /******************************************************** * CDFFun.java * *******************************************...

6

The kernel crash is a bug which arises from deep recursion in string pattern matching. It has been fixed in version 10.1.0 and later, by updating to a more modern version of the PCRE library and switching to a non-recursive approach in certain cases. I am not aware of a workaround applicable to older versions, but it doesn't crash with 10.1 and 10.2: ...

5

This works on Windows to start the subkernels with low priority, though I think Oleksandr's approach is better. Needs["SubKernelsLocalKernels"] Block[{$mathkernel=$mathkernel<>" -threadpriority=-2"},LaunchKernels[]]

5

After a bit of consideration I recommend that you use ParallelSubmit and related functionality, e.g. WaitAll. Please consider this example: job = Array[ParallelSubmit[Pause[1]; If[Random[] > 0.7, Quit[]]; Print[#]] &, 10] This creates a series EvaluationObject tasks to perform. Within each is a 30% chance of failure simulated by If[Random[] >...

5

I just had the same problem - I copy and pasted the line from your link but it produced the error. The reason is that you need to exchange the quotation marks to the usual vertical ones. Hopefully this will solve the problem and Thank you for directing me to the solution! To remove this issue, open as root the file: "/usr/local/Wolfram/Mathematica/7....

5

These are the same steps as in (92931) with a little bit of added detail for Windows. Make sure any running (or hanging) copies of Mathematica are closed Navigate to the installation directory, this is typically some location like C:\Program Files\Wolfram Research\Mathematica\10.0.2 Double-click WolframKernel.exe to start a standalone kernel At the In[1]:=...

5

This error message has occurred before with a corrupted init.m file. Check your init.m files if you have edited them. Otherwise, the article @JHM linked to you should fix the problem.

4

This is not really a Mathematica, but an operation system issue. There are several ways on windows to avoid the cmd window showing up: 1) batch file: @echo off start /B MathKernel -noprompt -script file.m 2) WSScript file: Set WshShell = CreateObject("WScript.Shell") cmds=WshShell.RUN("MathKernel -noprompt -script file.mt", 0, True) Set WshShell = ...

4

It is possible to connect to the RPi through a PC running v9 using the remote kernel options From "Kernel Configuration Options..." Add a new kernel Choose the Advanced options and ensure that Arguments to MLOpen has the following -LinkMode Listen -LinkProtocol TCPIP -LinkOptions MLDontInteract and the Shell command to launch kernel is "java" -...

Only top voted, non community-wiki answers of a minimum length are eligible