CefSharp.WinForms.Example.vshost.exe has exited -1073741819 (0xc0000005) 'Access violation'。 - access-violation

程序“[523076] CefSharp.WinForms.Example.vshost.exe: 程序跟踪”已退出,返回值为 0 (0x0)。
程序“[523076] CefSharp.WinForms.Example.vshost.exe”已退出,返回值为 -1073741819 (0xc0000005) 'Access violation'。
when i run github cef's CefSharp.WinForms.Example Demo, i click item menu "Load Example Extension",the official extension demo "set_page_color" is running ok,but when i add my custom extension,click the item menu "Load Example Extension",then the Program go wrong,it seizing for several seconds,then broke down and exit for the above message.my custom extension works fine in Google Chrome browser,so what went wrong with this ?

Related

"Choose File" in "seleniumlibrary" in robotframework

I'm trying to browse multiple files (one after the other ) using the keyword "Choose File" for the attached screen.
The circled in red are the web elements through which files are to be browsed ( top right ).
The page code is highlighted in red.
The xpath circled in black ( bottom left ) , which when searched, highlights both the web elements one after another which browse the file.
Below are my steps:
Scroll Element Into View xpath=//span[contains(#class,'filebrowse .click')]
Wait Until Element is visible xpath=//span[contains(#class,'filebrowse .click')]
Set Focus To Element xpath=//span[contains(#class,'filebrowse .click')]
Choose File xpath=//span[contains(#class,'filebrowse .click')] ${file_path}
I got the error below for the step above - "Choose File" :
WebDriverException: Message: unknown error: cannot focus element
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.45.615291
(ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 10.0.10586 x86_64)
I used the below code and worked fine.
Libraries Used :
Library pyautogui
Library ImageHorizonLibrary
Code sample :
Scroll Element Into View xpath=//div[1]/div[5]/a/span
Wait Until Element is visible xpath=//div[1]/div[5]/a/span
Set Focus To Element xpath=//div[1]/div[5]/a/span
Click Element xpath=//div[1]/div[5]/a/span
Sleep 5s
pyautogui.Typewrite file_name.jpg
pyautogui.Key Down 'enter'
ImageHorizonLibrary.Press Combination Key.enter
Sleep 15s
For this I had to keep the file "file_name.jpg" in a default browse folder.
Identified the default folder through a sample code run.

BMC Synthetic Transaction Monitoring 10.5 - How to disable Accurancy check

I need to disable the Accurancy check only on every execution plan configured.
The others check (Performance, Availability Errors, Execution Errors) must be active.
Could anyone help me?
Regards,
Ema
Below my solution
Guide: https://community.microfocus.com/borland/tm_art/w/knowledge_base/22848/classifying-tm-art-workbench-script-runtime-error-as-availability-or-accuracy-error-in-tm-art-central
Steps:
open file .ltz with Silk Performer
Settings -> Active Profile -> Replay -> Simulation -> Errors tab
Click the Add... button.
Select a module and a severity and the list of predefined error codes will appear in the table.
For example, select "BMC TM ART - HTTP" as module and "error" as Severity. In the list of error codes, you will find the code "500" and its error description "internal server error". Below is a screenshot of some error codes for the WinSock module.
Select the new severity
Save and reload file .ltz

How to take screenshot in selenium ide

Using Selenium IDE Firefox plugin, I want to take automated screenshots. The test script contains these steps
Command Target Value
open /?gfe_rd=cr&ei=GNCWU-6BCujV8geh_4C4Bg&gws_rd=ssl
click id=gbqfq
type id=gbqfq software testing
click id=gbqfb
captureEntirePageScreenshotAndWait F:\Screenshots\
The log shown this error:-
[error] Unexpected Exception: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFileOutputStream.init]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://selenium-ide/content/selenium-core/scripts/selenium-api.js :: <TOP_LEVEL> :: line 2986" data: no]. toString -> function toString() { [native code] }, message -> Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFileOutputStream.init], result -> 2152857621, name -> NS_ERROR_FILE_ACCESS_DENIED, filename -> chrome://selenium-ide/content/selenium-core/scripts/selenium-api.js, lineNumber -> 2986, columnNumber -> 0, inner -> null, data -> null, location -> JS frame :: chrome://selenium-ide/content/selenium-core/scripts/selenium-api.js :: <TOP_LEVEL> :: line 2986
please resolve this error
There is a Screenshot on Failure plugin. It grabs a screenshot of the HTML at the point of failure as per it's name. Here is the link:
https://addons.mozilla.org/en-US/firefox/addon/screenshot-on-fail-selenium/
This plugin integrates directly with Selenium so you can turn it on or off through the UI itself. To install it, open the link with a FIREFOX browser and click the "ADD TO FIREFOX" link. (For those not familiar with the Selenium IDE, it only plugs into Firefox.)
Once installed properly you will see a Screenshot on Fail icon next to the "FAST - SLOW" slider. Toggling this button on turns on the feature, toggling it off means that snapshots won't be taken. By default it is off when the IDE is launched. The tiny down-arrow next to it allows you to view the screen shot / failure report(s).

exception when finishing a custom "new file wizard" in a RCP project

I am working with a custom "new file wizard". when i press the finish button i am expecting the eclipse to add a new file and show it correctly, but instead an exception occurs and i can't open the created file. But if i use this wizard for a second time, the exception doesn't occur and the file opens correctly. why?
the exception occurs when this line getContainer().run(true, false, op) executes.
and it is a part of the exception:
!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-07-28 16:15:01.239
!MESSAGE Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle '33'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalArgumentException: can't find IDfind.ext
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:837)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:318)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:889)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:623)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
.
.
.
So the problem is that one of plugins that you have in your app requires a marker named find.ext. The error log shows IDfind.ext because the error message is concatenated without a space.
The happens if you have a custom application. Solution is quite easy:
Locate your WindowActionBarAdvisor that extends ActionBarAdvisor and defines your application initial menus and toolbars like File, Help, etc. etc.
Add this line:
menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
f.e. to the method
createEditMenu.
or to any other menu entry.

Access is denied in BackgroundTaskBuilder.Register

var builder=new BackgroundTaskBuilder();
builder.Name=name;
builder.TaskEntryPoint=taskEntryPoint;
builder.SetTrigger(trigger);
if(condition!=null)
builder.AddCondition(condition);
builder.Register(); // in this step I get exception System.UnauthorizedAccessException. Additional information: Access is denied.
This exception is throwed in Windows 8 release preview.
In consumer preview I did not get this exception.
I use SystemTrigger (SystemtriggerType.UserPresent) and SystemCondition(SystemConditionType.InternetAvailable)
In Package.appxmanifest file I set System event checkbox to true and input Entry point value.
Also in Package.appxmanifest code I removed 'Executable' attribute.
Maybe someone know how I can fix it?
Thank you in advance!
Some SystemTriggers,however do need the app to be on the lock screen:
SessionConnected ,UserPresent,UserAway and ControlChannelReset If you use these triggers without beging on the lock screen ,the BackgroundTaskBuilder.Register() call will fail with "acess denied"