I am using Windows Subsystem for Linux (WSL), and I have just installed xcrysden on it with no apparent problem, however when I try to run it, I repeatedly get the Following error:  X Error of failed request: BadWindow (invalid Window parameter)   Major opcode of failed request: 3   ResourceID in failed request: 0xffffffff   Serial number of failed request: 761   Now running graphical interfaces in WSL is a bit annoying. To do it, I use the  X server for Windows. I set the DISPLAY variable via export DISPLAY=localhost:0.0, and that does the trick for me. I can run for example gnuplot with no problem this way.  Why does xcrysden fail to launch in this situation?  Here is the full STDERR Stream that I get:  Running on platform : unix Operating system : Linux Package ImageMagick's convert: /usr/bin/convert Package ImageMagick's import: /usr/bin/import Package Ppmtompeg: /usr/bin/ppmtompeg Package Babel: /usr/bin/babel Executing: /usr/lib/xcrysden/ftnunit X Error of failed request: BadWindow (invalid Window parameter)     Major opcode of failed request: 3     ResourceID in failed request: 0xffffffff     Serial number of failed request: 759 X Error of failed request: BadWindow (invalid Window parameter)     Major opcode of failed request: 3     ResourceID in failed request: 0xffffffff     Serial number of failed request: 761 Error in startup script: Togl: couldn't get visual     while executing "togl .mesa -width 400 -height 400 -ident .mesa -rgba true -redsize 1 -greensize 1 -blu..."     (procedure "PlaceGlobWin" line 105)     invoked from within "PlaceGlobWin 0 [expr round(650 * $fac1)] [expr round(650 * $fac1)]"     (procedure "ViewMol" line 25)     invoked from within "ViewMol ."     invoked from within "if [file exists $filedir] {                 # pop-up Viewer                 ViewMol .                 openExtStruct 3 crystal external  [list sh $system(TOPDIR)/scripts/pwi2xsf.sh]  pwi2xsf..."     (procedure "parseComLinArg" line 89)     invoked from within "parseComLinArg [lrange $argv 2 end]" invoked from within "if { [llength $argv] &gt; 2 } {     parseComLinArg [lrange $argv 2 end] } else {     ViewMol . }"     (file "/usr/share/xcrysden/Tcl/xcInit.tcl" line 609) X Error of failed request: BadWindow (invalid Window parameter)     Major opcode of failed request: 12     ResourceID in failed request: 0xffffffff     Serial number of failed request: 764
2315
I searched around, and currently there are two methods suggested; installing an enhancement for Windows Subsystem for Linux and installing an XServer.  I want to know which method is the most hassle-free (easy to install AND to use), and which one is less memory-heavy.  I just want Synaptic and CMake. Why couldn't that be a builtin feature?
39555
I have two two graphic card on board, one is the integrating in Intel cpu, one is the nvidia card.  I want use the integrating one to render desktop, the NV card to calculate with cuda. I switch to use the integrating one in "NVIDIA X Server settings", after I installed the "nvidia-modprobe" it's worked as i want.  but where is a issue with glx, when i run glxinfo.  name of display: :0 X Error of failed request:  BadValue (integer parameter out of range for operation) Major opcode of failed request:  154 (GLX) Minor opcode of failed request:  24 (X_GLXCreateNewContext) Value in failed request:  0x0 Serial number of failed request:  37 Current serial number in output stream:  38   In the xorg log it libglx.so in   [     3.597] (II) "glx" will be loaded by default. [     3.597] (II) LoadModule: "glx" [     3.599] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [     3.612] (II) Module glx: vendor="X.Org Foundation"   Is there a way i can get the glx runing correctly?
19353
Old title - "change resolution to 1280x1024 using xrandr gives: X Error of failed request: BadValue (integer parameter out of range for operation)"  I have installed a fresh Ubuntu 17.10 and have a monitor with 5:4 resolution. settings has no resolution higher than 1024x768. But I need the resolution 1280x1024 (5:4).  I use the default motherboard graphics card:  # lspci|grep VGA 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)   Also xrandr gives the following:  $ xrandr Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192 XWAYLAND0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm    1024x768      59.92*+   I tried to add the 1280x1024 resolution using xrandr. so first created the resolution information using gtf:  $ gtf 1280 1024 60    # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz   Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync   Then added to resolutions:  xrandr --newmode "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync   then again did the command: xrandr --addmode XWAYLAND0 1280x1024_60.00  Then nothing changed. When I tried to change it using xrandr --output XWAYLAND0 --mode 1280x1024_60.00 --rate 60 But an error occurred:  $ xrandr --output XWAYLAND0 --mode 1280x1024  --rate 60 X Error of failed request:  BadValue (integer parameter out of range for operation)   Major opcode of failed request:  140 (RANDR)   Minor opcode of failed request:  7 (RRSetScreenSize)   Value in failed request:  0x0   Serial number of failed request:  21   Current serial number in output stream:  22   I don't know what did I do wrong. Or how to change resolution to the correct one: 1280x1024
84886
I searched and read all possible pages here but I could not find the exact problem.  When I open my terminal I am getting:  bash: /usr/bin/lesspipe: /bin/sh: bad interpreter: No such file or directory   then when I use apt-get update I am getting following errors.  Fetched 39,9 MB in 53s (747 kB/s)                                               Reading package lists. . .  Done W: GPG error: http://archive. canonical.com/ubuntu xenial InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?) W: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.  N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.  N: See apt-secure(8) manpage for repository creation and user configuration details.  W: GPG error: http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?) ....... W: The repository 'http://us.archive.ubuntu.com/ubuntu xenial-security InRelease' is not signed.  N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.  N: See apt-secure(8) manpage for repository creation and user configuration details.  E: Problem executing scripts APT::Update::Post-Invoke-Success 'touch /var/lib/apt/periodic/update-success-stamp 2&gt;/dev/null || true' E: Sub-process returned an error code     $ namei -lx /bin/sh f: /bin/sh Drwxr-xr-x root root / drwxr-xr-x root root bin                      sh - No such file or directory   Does any one know why this error occurred and how can I solve it?
24634
After following the instructions in INSTALL.W64 I have two problems:   The code is still written to the "out32" folder. I need to be able to link to both 32-bit and 64-bit versions of the library on my workstation, so I don't want the 64-bit versions to clobber the 32-bit libs. The output is still 32-bit! This means that I get "unresolved external symbol" errors when trying to link to the libraries from an x64 app.
17120
When I try to launch Minecraft 1.7.4 or newer, the game crashes on startup, and the game output screen says this:  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=*, pid=*, tid=* # # JRE version: Java™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot™ Client VM (* mixed mode, sharing windows-* ) # Problematic frame: # C  [ig4dev32.dll+0x3e88] OR # C  [ig4dev64.dll+0x55ec] OR # C  [ig4icd32.dll+0x104a77] OR  # C  [ig4icd64.dll+0x84930a]   This happens with both Java 7 and 8.  What causes this error, and what can I do to fix the issue?
78440
I am using Xilinx' petalinux tools to build and use embedded linux. My host development machine is a VM running Ubuntu 14.04.1 LTS. My board is a Xilinx ZC706 with a Xilinx Z7045 Zynq SoC.  When issuing a certain command (petalinux-boot --JTAG -- Whatever/option/I/use), I get a warning back that says   rlwrap: $TERM is xterm but rlwrap can't find it in the terminfo database.  Expect some problems. Inappropriate IOCTL for device   I have googled and researched enough to know that rlwrap is a readline wrapper which is just wrapping up commands. I understand that $TERM is the environment variable that tells applications what kind of terminal (or more specifically, the terminal interface specifications) with which it must interact, and that terminfo is a database that contains the actual interface specs (/r /n color or not, whatever).  When I run ls /usr/share/terminfo/x there are probably 20 or 30 variants of xterm-XXXXX or xtermX, but there is not a file named xterm. I am currently of the opinion that this is probably the cause for the above warning.  When I get the above warning it is during the process of either downloading a bitstream to the FPGA part of the device or when using the Xilinx' XMD (xilinx microprocessor debugger) to download the linux image to the Processor side. These processes use an embedded JTAG module that is connected to my host via a USB cable.  How do I get/install a plain xterm entry into the terminfo database?
74587
I have already seen the questioned in the stack overflow that might relate to my problem but let me emphasize that none of them could resolve my issue.  issue is: when I wanted to integrate OWASP WebGoat application with oracle XE 11g , I receive the above mentioned error.  connection URL in web.xml is:   jdbc:oracle:thin:@//localhost:1521/XE/${USER}   ================================================================= listener.ora:  SID_LIST_LISTENER =   (SID_LIST =     (SID_DESC =       (SID_NAME = PLSExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )     (SID_DESC =       (SID_NAME = CLRExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )   )  LISTENER =    (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))       (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC)(PORT = 1521))     )   )  DEFAULT_SERVICE_LISTENER = (XE)   ============================================================= tnsnames.ora:  XE =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC)(PORT = 1521))     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = XE)     )   )    EXTPROC_CONNECTION_DATA =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))     )     (CONNECT_DATA =       (SID = PLSExtProc)       (PRESENTATION = RO)     )   )  ORACLR_CONNECTION_DATA =    (DESCRIPTION =      (ADDRESS_LIST =        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))      )      (CONNECT_DATA =        (SID = CLRExtProc)        (PRESENTATION = RO)      )    )    =================================================================== java version:  java version "1.7.0_55" Java(TM) SE Runtime Environment (build 1.7.0_55-b13) Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing)   =================================================================== output of the lsnrctl services:  LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 09-MAY-2014 16:34 :07  Copyright (c) 1991, 2010, Oracle.  All rights reserved.  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) Services Summary... Service "CLRExtProc" has 1 instance(s).   Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0          LOCAL SERVER Service "PLSExtProc" has 1 instance(s).   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0          LOCAL SERVER Service "XEXDB" has 1 instance(s).   Instance "xe", status READY, has 1 handler(s) for this service...     Handler(s):       "D000" established:0 refused:0 current:0 max:1022 state:ready          DISPATCHER &lt;machine: AMIR-PC, pid: 5740&gt;          (ADDRESS=(PROTOCOL=tcp)(HOST=Amir-PC)(PORT=2403)) Service "xe" has 1 instance(s).   Instance "xe", status READY, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0 state:ready          LOCAL SERVER The command completed successfully   ===================================================================== output of the tnsping xe :  TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 09-MAY-2 014 16:35:19  Copyright (c) 1997, 2010, Oracle.  All rights reserved.  Used parameter files: C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora   Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE))) OK (0 msec)   could some one please help me resolve this issue? I have been struggling more than 3 days and not found any useful answer yet.
56493
I was able to run my application on using Legend earlier but now I want to update my Legend when scrolling on the map. So I tried to used this code  . And I got the gist of how he is able to do that but when I am trying the same I keeping getting the error var graphicUrl = wmsSource.getLegendUrl(currentResolution);  I think this is mainly due to the wmsSource not declare. But I tried to initialize  seems wmsSource in TileWMS but does not seems to work. var getExtent = function () {     return map.getView().calculateExtent(); } var getProjectionCode = function () {     return map.getView().getProjection().getCode(); }  var updateLegend = function() {     var currentResolution = map.getView().getResolution();     var graphicUrl = wmsSource.getLegendUrl(currentResolution);        const crs = `&amp;CRS=${getProjectionCode()}`;     const bbox = `&amp;BBOX=${getExtent().join(',')}`;     const height = getHeight(getExtent());     const width = getWidth(getExtent());     const heightAndWidth = `&amp;srcwidth=${height}&amp;srcheight=${width}` ;     const legenOptions = &quot;&amp;legend_options=countMatched:true;fontAntiAliasing:true;hideEmptyRules:true;forceLabels:on&quot; ;        var img = document.getElementById('legend');     img.src = `${graphicUrl}${crs}${bbox}${heightAndWidth}${legenOptions}`; }; //Updated Legend End   //View var myview = new ol.View({     center : [8717490.201868,2788422.791843],     zoom : 4 })  var firstSel = document.getElementById(&quot;City&quot;); var secSel = document.getElementById(&quot;Sector&quot;);  //var LayerArray = [baseLayer, firstLayer]  //Map var map = new ol.Map({       target : 'mymap',       view: myview,       layers: [         new ol.layer.Tile({             source : new ol.source.OSM({                 attributions: 'Surveyor Allpication'             })         }),         new ol.layer.Tile({             source : new ol.source.TileWMS({                url: 'http://localhost:8089/geoserver/India/wms',                params: {'LAYERS': 'India:India', 'TILED': true,'TRANSPARENT':true},                ratio: 1,                serverType: 'geoserver',                transition: 0,             })         })       ] }) updateLegend();   This here is my JS &lt;div class=&quot;innerMap&quot;&gt;     &lt;div class=&quot;map&quot; id=&quot;mymap&quot;&gt;&lt;/div&gt;         Legend:     &lt;div&gt;&lt;img id=&quot;legend&quot;/&gt;&lt;/div&gt;     &lt;!--    &lt;div&gt;&lt;img src=&quot;http://localhost:8089/geoserver/wms?REQUEST=GetLegendGraphic&amp;VERSION=1.0.0&amp;FORMAT=image/png&amp;WIDTH=20&amp;HEIGHT=20&amp;LAYER=India%3AIndia&amp;RULE=Agra&quot; /&gt;%Name&lt;/div&gt; --&gt; &lt;!--    &lt;div&gt;&lt;img src=&quot;http://localhost:8089/geoserver/India/wms?SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetLegendGraphic&amp;FORMAT=image/png&amp;WIDTH=20&amp;HEIGHT=20&amp;LAYER=India%3AIndia&amp;SRS=EPSG%3A4326&amp;STYLES=&amp;SRCWIDTH=742&amp;SRCHEIGHT=768&amp;BBOX=75.4541015625%2C14.21630859375%2C91.7578125%2C31.09130859375&amp;LEGEND_OPTIONS=countMatched:true;fontAntiAliasing:true;hideEmptyRules:true&quot; /&gt; &lt;/div&gt;  --&gt;     &lt;/div&gt;  This is my HTML. How do I make this work?
52967
I followed the guide here:   I unwrapped my UV, created a new image, created an Image Texture node and selected my new image with that, and hit bake. I then receive the error in the title. Here is a screenshot of my view:   I'm definitely doing something wrong, hopefully one of you can point out what that is.
60564
How can I restart X Window Server from the command line?  I'd really like to be able to restart my GUI without having to do a full system reboot.
3002
I'm working in a koding terminal running ubuntu 13.04, and I'm trying to run an application that requires an x-screen (even to run in terminal mode).  I am unable to connect with x11 forwarding, and I'm wondering if there is a workaround that will allow me to run this application (lmms).  $ lmms -v lmms: cannot connect to X server  $ uname -a Linux vm-2.masd.koding.kd.io 3.9.0-0-generic #4userns5 SMP Mon May 13 06:15:34 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 13.04 Release:        13.04 Codename:       raring   Thanks in advance!
79804
I need to run shell script contains Xdotool codes in /home/z/Desktop/tempo/run.sh. I've tried many ways of DISPLAY=:0 but always not works.  I've tried each of below codes, and not works:  * * * * * export DISPLAY=:0 cd /home/z/Desktop/tempo; ./run.sh * * * * * export DISPLAY=:0; cd /home/z/Desktop/tempo; ./run.sh * * * * * export DISPLAY=:0 &amp;&amp; cd /home/z/Desktop/tempo; ./run.sh * * * * * DISPLAY=:0 cd /home/z/Desktop/tempo; ./run.sh * * * * * DISPLAY=:0; cd /home/z/Desktop/tempo; ./run.sh * * * * * DISPLAY=:0 &amp;&amp; cd /home/z/Desktop/tempo; ./run.sh   Running directly also not works:  * * * * * export DISPLAY=:0 xdotool mousemove 20 20 * * * * * export DISPLAY=:0; xdotool mousemove 20 20 * * * * * export DISPLAY=:0 &amp;&amp; xdotool mousemove 20 20 * * * * * DISPLAY=:0 xdotool mousemove 20 20 * * * * * DISPLAY=:0; xdotool mousemove 20 20 * * * * * DISPLAY=:0 &amp;&amp; xdotool mousemove 20 20   I always don't see my mouse moving on each line of codes above.  I've also tested Xdotool codes to make invalid website URI request and see the logs. Sadly the logs still blank.
61515
Is there a "win64" identifier in Qmake project files?  documentation does not mention other than unix / macx / win32.  So far I've tried using:  win32:message("using win32") win64:message("using win64") amd64:message("using amd64")   The result is always "using win32".  Must I use a separate project-file for x32 and x64 projects, so they would compile against correct libraries? Is there any other way to identify between 32-bit and 64-bit environments?
73915
Given the following .vrt file which I manually created:  &lt;OGRVRTDataSource&gt;     &lt;OGRVRTLayer name="DGM5_BE"&gt;         &lt;SrcDataSource&gt;DGM5_BE.txt&lt;/SrcDataSource&gt;         &lt;SrcLayer&gt;DGM5_BE&lt;/SrcLayer&gt;         &lt;LayerSRS&gt;EPSG:25833&lt;/LayerSRS&gt;         &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;         &lt;GeometryField encoding="PointFromColumns" x="x" y="y" z="d"/&gt;     &lt;/OGRVRTLayer&gt; &lt;/OGRVRTDataSource&gt;   and the associated DGM5_BE.txt - here are the first lines:  x;y;d 397200;5837250;59,15 397205;5837250;59,04 397200;5837245;59,03 397205;5837245;58,94 397195;5837240;58,93 397200;5837240;58,9 397205;5837240;58,86 397210;5837240;58,9 397190;5837235;58,98   I run the following command to convert the DGM5:  $ gdal_grid -of GTiff -ot Float32 -l DGM5_BE DGM5_BE.vrt DGM5_BE.tif   This fails with the following error message:     ERROR 1: Failed to open datasource `DGM5_BE.txt'.   No point geometry found on layer DGM5_BE, skipping.
100718
I just got a new computer (W520, Graphics card nVidia GF106 [Quadro 2000]) and installed ubuntu on it using wubi. I have everything working, so I wanted to set it up to be able to use two monitors with an extended screen. I figured I had to edit Xorg.conf, but the file didnt exist. So I tried to create it by booting in recovery mode, and executing   Xorg -configure   but I am getting these errors:  (EE) Failed to load module "vmwgfx" (module does not exist, 0) (EE) vmware: Please ignore the above warnings about not being able to load module/driver vmwgfx (++) Using config file: "/root/xorg.conf.new" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) [drm] No DRICreatedPCIBusID symbol Number of created screens does not match number of detected devices.     Configuration failed.   ddxSigGiveUp: Closing log   Any idea how I can get Xorg -configure to work, so that I can have an xorg.conf file that I can edit to enable twinview?  Why can't I boot with an xorg.conf file generated by nvidia-xconfig? Is there something in the generated xorg.conf file that might need editing?  I have an nVidia Optimus technology which seems like it precludes me from running Unity 3d. Can I have dual monitors while running unity 2d?
11928
When I am online, I get following error and the tool does not start:  [root@dhcppc9 lin64]# ./ise No protocol specified _pn: cannot connect to X server :0.0   But everything is OK when I am not a superuser. Why that?  Edit  [root@dhcppc9 lin64]# export $(dbus-launch) No protocol specified   any suggestion?  Also   [root@dhcppc9 lin64]# xhost [+] No protocol specified xhost:  unable to open display ":0.0"