Apologies if this was already addressed but I cannot find it.
I am trying to setup CNTK (on Windows 7 and 10) from:
https://learn.microsoft.com/en-us/cognitive-toolkit/Setup-Windows-Binary-Script
and while trying the initial install.bat in Step 2 throws the following error after "Performing download operations". Any thoughts anyone?
FYI This is from the 64-bit, CPU only version
Fatal Error Screenshot (actual error pasted below)
Fatal error during script execution!
System.Management.Automation.RuntimeException: The variable '$SourceFile' cannot be retrieved because it has not been set.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
at System.Management.Automation.CommandProcessorBase.Complete()
Error during install operation
Related
I get a window ID from the command line, and create an SDL window with it:
Window window_id = from_cli(); // e.g. 0x34000c8
w = SDL_CreateWindowFrom((void*) (Window) window_id);
When my program finishes I try to clean up:
SDL_DestroyWindow(w);
And that is when I got an X11 error:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)
Resource id in failed request: 0x34000c8
Serial number of failed request: 255
Current serial number in output stream: 256
Obviously, the caller of my program - which I cannot change - has already destroyed the X window I was using.
How should I handle this situation?
SDL_DestroyWindow() can be omitted if the SDL window was created with SDL_CreateWindowFrom()
go for SDL_SysWMinfo, pick up x11.display, create my own X11 error handler, and filter errors for window_id?
Looking at the SDL2-2.0.9 source code, it seems that SDL already sets an error handler, which calls the previous error handler, which is the default one that terminates the program on error. (src/video/x11/SDL_x11video.c::X11_SafetyNetErrHandler())
Internally SDL will override this error handler temporarily, when doing its own stuff. (src/video/x11/SDL_x11video.c::X11_CheckWindowManager())
Thus, I guess 2) is the correct way to go.
EDIT:
When omitting SDL_DestroyWindow(), SDL_Quit() will fail with the same X error.
I also realized that SDL may not anticipate a failed X call, so ignoring the error may not be a good idea, after all.
EDIT2:
I just realized that SetErrorHandler() does not require a display.
Adding an X error handler that ignores X errors regarding this particular X window seems to work, not sure if it creates new problems unseen.
Is there preferred way to handle this problem?
Version:
SDL2-2.0.9
Problem
I have a org.apache.tinkerpop.gremlin.structure.Vertex that I call v, and a JanusGraph instance I call graph.
I attempt to delete v with:
v.remove();
graph.traversal().tx().commit();
but I get a null pointer exception
Caused by: java.lang.NullPointerException
at org.janusgraph.graphdb.database.EdgeSerializer.parseRelation(EdgeSerializer.java:128)
at org.janusgraph.graphdb.database.EdgeSerializer.readRelation(EdgeSerializer.java:73)
at org.janusgraph.graphdb.transaction.RelationConstructor.readRelation(RelationConstructor.java:75)
at org.janusgraph.graphdb.transaction.RelationConstructor$1$1.next(RelationConstructor.java:60)
at org.janusgraph.graphdb.transaction.RelationConstructor$1$1.next(RelationConstructor.java:48)
at org.janusgraph.graphdb.vertices.AbstractVertex.remove(AbstractVertex.java:101)
at org.janusgraph.graphdb.vertices.StandardVertex.remove(StandardVertex.java:101)
at com.brein.common.graph.TinkerPopGraphDatabase.lambda$deleteVertex$4(TinkerPopGraphDatabase.java:500)
at com.brein.common.graph.TinkerPopGraphDatabase.retry(TinkerPopGraphDatabase.java:616)
... 33 more
The following line in the janusgraph-core library is where null pointer occurs:
if (multiplicity.isConstrained()) {
So it would appear that when the library is reading through all the data for the vertex in order to then delete it, it comes across an edge for which there is no multiplicity?
My question is: what might be the reason I'm unable to delete the vertex here, and what are some ideas for how I might explore this issue?
Notes
I am using Janusgraph version 0.2.0
I am using cassandra as the backend data store for the graph database
My graph contains edge labels of Simple and One-to-one types
I get a nullpointer exception also if I try and read the graphSON representation of the vertex
I'm using FluentAssertions 5.3.0 run under NCrunch 3.14.0.1. When a test fails, I often seen this error as FluentAssertions tries to generate a report message...
System.ArgumentOutOfRangeException: startIndex cannot be larger than
length of string. Parameter name: startIndex at
System.String.Substring(Int32 startIndex, Int32 length) at
FluentAssertions.CallerIdentifier.ExtractVariableNameFrom(StackFrame
frame) at
FluentAssertions.CallerIdentifier.DetermineCallerIdentity() at
FluentAssertions.Execution.AssertionScope.GetIdentifier() at
FluentAssertions.Execution.AssertionScope.FailWith(String message,
Object[] args) at FluentAssertions.Numeric.NumericAssertions`1.Be(T
expected, String because, Object[] becauseArgs) at
TableTests.ConsolidatedMovementsTester.AlternativingMovementStatesAreRecognised()
in ...test.cs
The error is sporadic - often it will disappear if the test is rerun (in which case, a proper error report is shown). I've seen this in the last couple of versions of both FluentAssertions and NCrunch and it appears on multiple machines (all running some flavour of Visual Studio 2017 Professional).
Here's an example of the latest call to bite me...
results.Count(c => c.IsStationary).Should().Be(5);
where results is an ImmutableArray of POCOs
In this case, right-clicking on the failing test and selecting "rerun in new test runner" in the ncrunch window, caused the test to re-run and FA to emit the correct report.
Can anyone suggest a workaround for this?
I installed some days ago Pentaho BA (full install) on a Red Hat system. I installed version 5.0.7.1-x64 because the latest 5.1 version gave me problems just after the installation. The 5.0.7.1 version still have some problems (exceptions in logs) but it was working fine, until today. Today I logged in into the PUC and I found that there are some severe issues in the functionalities of the server: after logging in I get only the upper menu and not the content of the home page. I can access and see the "Browse Files" menu, but when I select a dashboard or a report it doesn't load: it just loads the upper bar like for the home page and the title but the dashboard is completely empty. Not even the "grid" for the various reports.
I copied the content of the log file catalina.out and you can find it here http://pastebin.com/hshXekFM
From line 33 there's the part where the server loads the login pageFrom line 51 it's after the login.
Here you can find the content of the catalina.2014-07-09.log http://pastebin.com/L7ReLdpt
and here the pentaho.log file:
2014-07-09 09:53:53,732 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] 2bc1b7a9-073e-11e4-8cb0-005056a82a08:SOLUTION-ENGINE:/public/bi-developers/Secure/global-department-list.xaction: SolutionEngine.ERROR_0007 - Action sequence execution failed
2014-07-09 10:20:56,969 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] f39bcc4a-0741-11e4-8cb0-005056a82a08:SOLUTION-ENGINE:/public/bi-developers/rules/session-region-list.xaction: SolutionEngine.ERROR_0007 - Esecuzione dell'Action Sequence fallita
2014-07-09 10:20:57,185 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] f3be215b-0741-11e4-8cb0-005056a82a08:SOLUTION-ENGINE:/public/bi-developers/rules/session-region-list.xaction: SolutionEngine.ERROR_0007 - Esecuzione dell'Action Sequence fallita
2014-07-09 10:20:57,224 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] f3c3035c-0741-11e4-8cb0-005056a82a08:SOLUTION-ENGINE:/public/bi-developers/rules/session-region-list.xaction: SolutionEngine.ERROR_0007 - Esecuzione dell'Action Sequence fallita
2014-07-09 10:20:57,322 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] f3d2bacd-0741-11e4-8cb0-005056a82a08:SOLUTION-ENGINE:/public/bi-developers/rules/session-region-list.xaction: SolutionEngine.ERROR_0007 - Esecuzione dell'Action Sequence fallita
2014-07-09 10:22:17,301 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] 23814d9e-0742-11e4-8cb0-005056a82a08:SOLUTION-ENGINE:/public/bi-developers/rules/session-region-list.xaction: SolutionEngine.ERROR_0007 - Action sequence execution failed
2014-07-09 10:22:17,343 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] 238656af-0742-11e4-8cb0-005056a82a08:SOLUTION-ENGINE:/public/bi-developers/rules/session-region-list.xaction: SolutionEngine.ERROR_0007 - Action sequence execution failed
2014-07-09 10:22:17,434 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] 23941250-0742-11e4-8cb0-005056a82a08:SOLUTION-ENGINE:/public/bi-developers/rules/session-region-list.xaction: SolutionEngine.ERROR_0007 - Action sequence execution failed
2014-07-09 10:22:17,492 ERROR [org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0004 - Action "org.pentaho.platform.plugin.action.builtin.ActionSequenceAction" failed to run as a quartz job
java.lang.Exception: java.io.FileNotFoundException
at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:271)
at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:133)
at org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:38)
at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
Caused by: java.io.FileNotFoundException
at org.pentaho.platform.web.http.api.resources.RepositoryFileStreamProvider.getInputStream(RepositoryFileStreamProvider.java:118)
at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$1.call(ActionAdapterQuartzJob.java:176)
at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$1.call(ActionAdapterQuartzJob.java:166)
at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:179)
at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:168)
at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:250)
... 4 more
2014-07-09 10:22:17,502 ERROR [org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0001 - Property "ActionAdapterQuartzJob-ActionClass" or "ActionAdapterQuartzJob-ActionId" must be set in the job data map
2014-07-09 10:22:17,502 ERROR [org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob] ActionAdapterQuartzJob.ERROR_0002 - Failed to create an instance of action "unknown"
org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$LoggingJobExecutionException: ActionAdapterQuartzJob.ERROR_0001 - Property "ActionAdapterQuartzJob-ActionClass" or "ActionAdapterQuartzJob-ActionId" must be set in the job data map
at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.resolveClass(ActionAdapterQuartzJob.java:79)
at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:117)
at org.pentaho.platform.scheduler2.quartz.BlockingQuartzJob.execute(BlockingQuartzJob.java:48)
at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
How can I solve this?
Thank you very much in advance
Just edit the file sessionStartupActions.xml and comment out the lines that are calling those .xaction files.
That happens when it tries to call the actions for the sample data that you probably didn't install.
This is very likely to be Quartz configuration issue.
I would suggest to re-check quartz configuration files - have they been modified by patch or manually since last job/transformation was successfully scheduled?
This may be a start point.
If this is not a solution don't hesistate to fire a bug - at least developers could provide more sophistaicated error message for this case.
For enterprise users pentaho provides official support - so don't waste time for forums and kick they directly.
Otherwise - quartz is widely used so at least there is some configurations where it is really works without this exception - so the question is to find what is the difference between this one and other.
Hope it will help a little bit. :(
I've been using DotNetZip for a month or so now and i like how it has worked but today my program started having a new issue that I'm clueless on.
During the zipping process it throws this error up and windows displays their "program name has stopped working" box.
Unhandled Exception: System.IO.FileNotFoundException: s:\(file path)\filename.pdf
at Ionic.Zip.SharedUtilities.GetFileLength(string fileName)
at ionic.Zip.ZipEntry.MaybeUnsetCompressionMethodForWriting(int32 cycle)
at Ionic.zip.Zipentry.WriteHeader(Stream s, Int32 cycle)
at Ionic.zip.ZipEntry.Write(Stream s)
at Ionic.zip.zipfile.save()
at ZipAJob_Instant.ConsoleMain.Main() in C:\users\(my name)\Documents\visual studio 2012\projects\zipAjob_Instant\zipAJob_Win32.vb:line 71
Line 71 refers to where i call zip.save()
From your comments, I take that what happened is exactly what happened to me a while ago.
I was getting a list of files to zip and stored into memory. The I would go zipping them one by one until this exception was thrown. The cause was someone removed the file after I got the list, but before I got the opportunity to zip it. This occured on a shared folder, btw.