ubuntu18.04 error found when loading /etc/profile - ubuntu-18.04

My system opreater is ubuntu18.04,and when i use two screens,and log in my account,it not showing my desktop,instead of the errorenter image description here
But when i shut down the second screen,it will be working with no problem.

Related

Android Manifest merger error in Codename One

In a bare bones project, I added these build hints:
android.gradleDep=compile 'com.erikagtierrez.multiple_media_picker:multiple-media-picker:1.0.5'
android.min_sdk_version=23
I would like to import the following Android library to make a CN1Lib (that requires at least Android SDK 23):
https://github.com/erikagtierrez/multiple-media-picker
To be short: I spent one day trying to import that, I also experimented with Android Studio and with suggestions found on Stack Overflow (trying to make a custom .aar), without success.
Could you help me to import that library? There is manifest merger error.
In fact, the issue reported by the build server is:
* What went wrong:
Execution failed for task ':processReleaseManifest'.
> Manifest merger failed : Attribute application#label value=(BareBones) from AndroidManifest.xml:15:17-42
is also present at [com.erikagtierrez.multiple_media_picker:multiple-media-picker:1.0.5] AndroidManifest.xml:23:9-41 value=(#string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:15:3-43:103 to override.
I also tried to add the build hint:
android.xapplication_attr=tools:replace="android:label"
as suggested by the previous error, without success.
In the last case, I get:
Merging result: ERROR
/tmp/build1659178556337293135xxx/Test/src/main/AndroidManifest.xml:15:3-43:103 Error:
tools:replace specified at line:15 for attribute android:label, but no new value specified
/tmp/build1659178556337293135xxx/Test/src/main/AndroidManifest.xml Error:
Validation failed, exiting
-- Merging decision tree log ---
The last full log is here: https://gist.github.com/jsfan3/dd6c23f86a2ac949f996910c8cece62b
Thank you
This is happening because our code things you injected android:label on your own and doesn't inject it to avoid collision...
Change the code to this:
android.xapplication_attr=tools:replace="android:label" android:label="App Name"

sublimeLinter "Error trying to parse file: Expected value in Packages/User/Default (OSX).sublime-keymap:2:1"

Error: "Error trying to parse file: Expected value in Packages/User/Default (OSX).sublime-keymap:2:1"
Hello, I have googled this and only found old documentation posts and answers for this problem that was on ST2 but not 3 and was posted in 2013.
I also have tried visiting the troubling shooting in the official site for sublimeLinter and the error does not seem to be listed. I guess I am one of the few who are running into this.
I am fairly new to using a text editor like ST3, so some of the terminology I am not too familiar with.
Is it possible anyone may help me with this?
So far I have attempted:
Preference>Package Control> User Settings/ Which is empty and attempted typing in some of the old answer problems.
I also attempted in pasting in:
[
{ "keys": ["ctrl+t","u"], "command": "upper_case" },
{ "keys": ["ctrl+t","l"], "command": "lower_case" }
]
that was from an answer in a older post that I found. However, the problem still persist and I ran into a brick wall when attempting to find more answers. Any help would be appreciated.
Thank you for reading.
This is an old question but I came across the same error message having tried to use the sublime linter package(s) and then deciding to uninstall. After I did this I got a similar error message to the one you describe.
I opened Preferences->Key Bindings and found the following line in the Default (OSX).sublime-keymap-User file:
/User/Default ().sublime-keymap
I commented this line out so that I now have an empty file and the error on startup has disappeared.

An unexpected severe error has occurred in Jdeveloper

My Jdeveloper is continuously prompting me with this error popup window.
The error details is as follows:-
The details of the error message is as follows:-
Exception while updating action Block Selection
java.lang.NoClassDefFoundError: oracle/javatools/editor/EditorSelectionColumns
o.i.ceditor.CodeEditorController.update(CodeEditorController.java:462)
o.i.controller.IdeAction.updateAction(IdeAction.java:787)
o.i.controller.IdeAction.updateAction(IdeAction.java:749)
o.i.view.View.updateAction(View.java:390)
o.i.view.View.updateToolbarActions(View.java:384)
o.i.view.View.updateVisibleActions(View.java:214)
com.oracle.jdeveloper.nbwindowsystem.NbMainWindow$UpdateVisibleActions.fireUpdate(NbMainWindow.java:1794)
com.oracle.jdeveloper.nbwindowsystem.NbMainWindow$UpdateVisibleActions.actionPerformed(NbMainWindow.java:1779)
jx.s.Timer.fireActionPerformed(Timer.java:313)
jx.s.Timer$DoPostEvent.run(Timer.java:245)
j.a.event.InvocationEvent.dispatch(InvocationEvent.java:311)
j.a.EventQueue.dispatchEventImpl(EventQueue.java:756)
j.a.EventQueue.access$500(EventQueue.java:97)
j.a.EventQueue$3.run(EventQueue.java:709)
j.a.EventQueue$3.run(EventQueue.java:703)
j.security.AccessController.doPrivileged(Native Method)
j.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
j.a.EventQueue.dispatchEvent(EventQueue.java:726)
o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
j.a.EventDispatchThread.run(EventDispatchThread.java:82)
I cant figure it out what is the problem. It worked few times by cancelling the pop up. But I think it's better to find a solution for it.
This is a fairly regular screen in jDeveloper, I get it at least twice a day. I click save and exit (which does nothing) and continue working.

Getting StringIndexOutOfBoundsException when attempting to create a new Form in Codenameone

I am using Netbeans and updated to use the latest codenameone plugin. I am trying to follow the walkthrough tutorial at http://www.codenameone.com/blog/gui-builder-walkthru.html, but I keep on getting a StringIndexOutOfBoundsException when attempting to generate a new Form using the NewGuiBuilderWizardIterator. The following is the stacktrace that I'm seeing. Any and all help would be greatly appreciated!
SEVERE [com.codename1.actions.OpenGuiBuilderAction]: Relative path com\mycompany\myapp\MyApp.java
SEVERE [com.codename1.actions.OpenGuiBuilderAction]: Gui file C:\Users\joshua\Documents\NetBeansProjects\TestGui1\res\guibuilder\com\mycompany\myapp\MyApp.gui
SEVERE [com.codename1.actions.OpenGuiBuilderAction]: Props C:\Users\joshua\Documents\NetBeansProjects\TestGui1\codenameone_settings.properties
SEVERE [com.codename1.actions.OpenGuiBuilderAction]: The GUI file doesn't exist!
WARNING [org.openide.filesystems.Ordering]: Found same position 100 for both Loaders/application/res/Actions/org-openide-actions-OpenAction.shadow and Loaders/application/res/Actions/sep-1.instance
WARNING [org.netbeans.modules.java.JavaTemplateAttributesProvider]: No classpath was found for folder: C:\Users\joshua\Documents\NetBeansProjects\TestGui1#b78894d2:1aed2d64
WARNING [org.openide.WizardDescriptor]
java.lang.StringIndexOutOfBoundsException: String index out of range: -4
at java.lang.String.substring(String.java:1919)
at com.codename1.NewGuiBuilderWizardIterator.instantiate(NewGuiBuilderWizardIterator.java:95)
at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1046)
at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)
at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439)
at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:160)
at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1629)
at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1570)
at org.openide.WizardDescriptor.access$2300(WizardDescriptor.java:92)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2257)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
You need to select a package when you do this and not the top level project since the code won't recognize that situation and won't know where to place the GUI file.
Notice that since an XML GUI file is created in the background, refactoring after the fact won't work well so this isn't something we should generally fix.

Access violation issue in Silverlight Application

We are having Silverlight application which shows live data from the service onto the client.
Over a period of time we see that application gets hung and on refresh the IE crashes with with the error message saying internet has stopped working.\
On taking the dump and analyzing it using debugdiag we found that the callstack of it shows,
0x00000000
npctrl!ComAutomationCheckCrossApartmentAccess+d079
mshtml!ReleaseInterface+a
mshtml!CAttrArray::FreeSpecial2+e4
mshtml!CMarkup::BreakAASpecial+f
mshtml!CMarkup::BreakCircularMemoryReferences+eb
mshtml!CMarkup::UnloadContents+36f
mshtml!CMarkup::TearDownMarkupHelper+53
mshtml!CMarkup::TearDownMarkup+54
mshtml!COmWindowProxy::SwitchMarkup+5c5
mshtml!CMarkup::SetInteractiveInternal+134
mshtml!CMarkup::RequestReadystateInteractive+6c
mshtml!CMarkup::BlockScriptExecutionHelper+162
mshtml!CHtmPost::Exec+418
mshtml!CHtmPost::Run+15
mshtml!PostManExecute+1fd
mshtml!PostManResume+f8
mshtml!CHtmPost::OnDwnChanCallback+10
mshtml!CDwnChan::OnMethodCall+19
mshtml!GlobalWndOnMethodCall+104
mshtml!GlobalWndProc+183
user32!InternalCallWinProc+28
user32!UserCallWinProcCheckWow+150
user32!DispatchMessageWorker+306
user32!DispatchMessageW+f
ieframe!CTabWindow::_TabWindowThreadProc+54c
ieframe!LCIETab_ThreadProc+2c1
iertutil!CIsoScope::RegisterThread+ab
kernel32!BaseThreadStart+37
We are not able to analyze this any further as it does not give a meaningful analysis.
What is npctrl.dll and why it? Why is it giving ComAutomationCheckCrossApartmentAccess error?

Resources