X11 Xlib, Drawing in a window has no effect in archlinux

I'm trying to draw some lines and rectangles in a window but the window background color remains white. There are no issues in ubuntu 10.04 LTS with xlib 1.4.? but in archlinux and fedora.
In Fedora I did a strace and ltrace and for some reason the lines and rectangles were drawn then. Executing the same "ltrace ./test" hadn't the same effect in archlinux, the window remained unchanged.
ltrace in fedora
strace in fedora
I have no more ideas how to proceed to fix this issue. Did something change in xlib what I'm not aware of?
Here's the source and here's the issue.
Last edited by slopjong (2012-10-21 10:33:21)

The link also failed for me, but I believe I found what you were talking about.  It also fails for me, but I found if I put a  "sleep(1)" after the call to your own create_gc function it worked.
I thought to try this as I found it odd to be passing a whole GC as a return value of a function.  I'm surprised this would lead to a delay, but it seems to be the case.  Passing a pointer to an allocated block for the GC would be better - or just declare it globally.
Edit: nevermind the second part, that didn't hold up to testing.  The first part is, however, repeatable.
Edit2: An XFlush at the end of the create_gc function solves this for me.
Last edited by Trilby (2012-10-21 17:29:38)

Similar Messages

  • I get an error message when trying to install windows 7 on my macbook pro. The message says "windows has encountered a problem communicating with a device connected to your computer. I don't have anything connected to my computer. How do I fix this?

    I'm trying to install windows 7 on my macbook pro. I went through the process of bootcamp telling it to install windows 7. Once the windows boot manager started an error message came up. The error message says " windows has encountered a problem communicating with a device connected to your computer. I don't have a usb connected to my computer. I  am using windows 7 professional install disc. I  can't figure out what i am doing wrong. The same message keeps coming up over and over. Am I doing something wrong or is it something else?

    Well, shucks, i just spent almost 30 minutes trying to find your model user guide to explain it better, I guess they never got around to making it.....
    I would just borrow another Windows disk and try installing it again and if it does it again then you might take it to an Apple Store and see if one of the "Genius' " can figure it out.
    Make sure your internet is enabled and click on your blank desktop and at the top of your screen is a Help menu option, enter PRAM and it should give you a list of things relating to Pram. It may take a few seconds to list anything as it has to connect to Apples severs first. It should list the things you may have to fill back in when your done.
    "P-ram" stores some common information that is used in the background, your date, time, startup disk, etc, that you don't have to re-fill when you restart, it's a little different for each computer.

  • Just purchased and installed photoshop and everytime i try to open it it says "windows has encountered a problem and must close the program" anyone else have this problem?

    I have just purchased the photography package on my windows 8 computer and everytime I open photoshop an error message pops up saying that windows has encountered a problem and needs to close the program. I am really frustrated that this is happening after I purchased this plan and would like to be able to use the product I have purchased

    +1 to Chris' assessment.
    Keep in mind that it's your responsibility to provide a problem-free working environment on your computer for Photoshop, and system software (such as display drivers) can have problems.
    Look in your Windows Event Logs (specifically, your Application Log) for the info requested above on the specific crashes.
    -Noel

  • A window has frozen on my macbook and i cant shut down my mac.

    a window has frozen on my macbook and i cant shut down my mac on system prefrences.
    is there nother way i can shut down  my mac to get rid of this window

    How to Quit an Unresponsive Application using Force Quit - http://support.apple.com/kb/ht3411.

  • I have installed the latest version of iTunes for Windows 8 but when I try to open it, it says Windows has an error and I simply can't open it any longer.  Any help is appreciated!

    I have installed the latest version of iTunes for Windows 8 but when I try to open it, it says Windows has an error and I simply can't open it any longer.  Any help is appreciated!

    Hey socestlavie,
    Thanks for the question. I understand you are experiencing issues with iTunes for Windows. The following resource may help to resolve your issue:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Thanks,
    Matt M.

  • Blue screen error "windows has recovered from a unexpected shutdown"

    Hi guys
    I am using laptop & everyday it will unexpectedly shutdown and shows Blue screen error "windows has recovered from a unexpected shutdown"...Pls help me to resolve this issue.
    Problem signature:
      Problem Event Name: BlueScreen
      OS Version: 6.1.7600.2.0.0.256.48
      Locale ID: 1033
    Additional information about the problem:
      BCCode: d1
      BCP1: 00000030
      BCP2: 00000002
      BCP3: 00000000
      BCP4: 8F2DA8A5
      OS Version: 6_1_7600
      Service Pack: 0_0
      Product: 256_1
    Files that help describe the problem:
      C:\Windows\Minidump\062614-23836-01.dmp
      C:\Users\Venkateshwara swamy\AppData\Local\Temp\WER-74552-0.sysdata.xml
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt

    It could be some driver compatibility issues.
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff560244(v=vs.85).aspx
     http://blogs.technet.com/b/askcore/archive/2008/11/01/how-to-debug-kernel-mode-blue-screen-crashes-for-beginners.aspx
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • HT1339 ipod not recognized by my computer, it says "Windows has stopped this device because it has reported problems. (Code 43)" please help

    please help...
    my computer is not recognizing my ipod classic gen 5. it shows the sad face then i did the basic troubleshooting until logo comes out...
    still my computer is not recognizing my ipod.. it still says "Windows has stopped this device because it has reported problems. (Code 43)"

    See here: iPod displays a sad iPod icon
    Note that it's often a good sign of a hardware issue with the iPod's hard drive meaning the iPod will need to be serviced or replaced.
    B-rock

  • I bought a new laptop with Windows 7. My computer name in Windows has changed, and now, my Ipad can't find Itunes

    I bought a new laptop with Windows 7. My computer name in Windows has changed, and now, my Ipad can't find Itunes, and Itunes can't find my Ipad. [email protected]

    Ok, if reinstalling iTunes as suggested above does not resolve the issue of iTunes recognising the iPad then try this -
    Firstly, make sure that your device is not hidden (left hand pane). If it just reads device then toggle between SHOW and HIDE.
    Secondly, try all the other ports on your computer, even a number of times.
    Thirdly, make sure your lead /connections are no faulty.
    Fourthly, if you have another computer try plugging your device into it without taking any action, give it a moment, remove it and try it back in your other computer again.
    Failing all that, see here - http://support.apple.com/kb/TS1538
    And failing all that put the device into Recovery mode. See here and note the paragraph 'If you restore from a different computer.... ' down near the bottom of the page -
    http://www.apple.com/support/ipad/assistant/itunes/
    As for making your new laptop your 'home computer' follow these instructions -
    1. Without connecting your iPad to your computer -
    A) Install iTunes / make sure the latest version of iTunes is installed.
    B) Go to the Store tab and click on "Authorise This Computer".
    C) Go to Edit, click on Preferences [iTunes and Preferences on Macs] and click on Devices. Put a check mark in the box next to "Prevent  iPods/iPhones/iPads from syncing automatically". Click OK and close iTunes.
    2.  Connect your iPad to your computer -
    A) Start iTunes (it will not start automatically because of the action at 1(C) above).
    B) Right click on your iPad under Devices in the left column. Select "Transfer purchases".
    C) When the transfer has completed, right click on your iPad again and select "Backup".
    D) When the backup has completed, left click on your iPad, click on the Apps tab, and put a check mark in the box next to "Sync Apps", and then click on "Apply" (bottom right).
    E) Unless you want to always do a manual sync (as I do), go back to Edit, Preferences [iTunes and Preferences on Macs] and uncheck the box next to "Prevent your iPod.....".
    F) Finally, on your iPad, check that everything is syncing properly. If not, go back to iTunes and check all settings.
    NB You should not lose any apps. However, any 'purchased' missing apps can be downloaded again FOC. As with updates, this must be done with the Apple ID under which they were originally 'purchased'.
    Also see here as to moving your music to your new computer -
    http://support.apple.com/kb/HT4527

  • Any Time I Open iTunes My Computer Comes Up With A Message Saying "Data Execution Prevention - Mircosoft Windows To Help Protect Your Computer, Windows Has Closed This Program" We Have Trend Micro Internet Security Titanium.

    Any Time I Open iTunes My Computer Comes Up With A Message Saying "Data Execution Prevention - Mircosoft Windows To Help Protect Your Computer, Windows Has Closed This Program" We Have Trend Micro Internet Security Titanium But It Appears To Be Windows Stopping iTunes.

    Right click My Computer > Properties > Advanced > Performance: Settings > Data Execution Prevention > Add iTunes to be let through

  • Itunes error. the data execution prevention pops up and says "to protect your computer, windows has closed this program. Data execution prevention helps protect against damage from viruses and other threat.

    I have a windows Xp computer. and i needed to download the newest itunes to support my ipod touch. but now my computer doesn't let me open itunes. The the data execution prevention pops up and says "to protect your computer, windows has closed this program. Data execution prevention (DEP) helps protect against damage from viruses and other threat." I tried excluding itunes from DEP on settings but it still doesn't work. I don't know what to do. please help me!!!
    thanks 

    try to select the computer cd/dvd autorun off.
    I had the same problem, then Kaspersky software found a conflict suggesting me this solution.
    Itunes now works...even if it always asks to set the cd/dvd autorun on when lunched.

  • 64 bit Win 7, Itunes 10.5. Can open Itunes and play music, try to open store and it says "Windowa has stopped working" and closes both Windows and Itunes?? Worked beofre I updated to Itunes 10.5 Tried so many things!! HELP!

    Have Windows 7, 64 bit. Updated ITunes to 10.5 and now I cant open store? I can play music but when trying to open store, or anything else, I get :
    "windows has stopped working and is shutting down" and then Windows and ITunes close?? I have tried so many things?? Help!!

    Yeah, I wrote this wrong. Its ITunes has stopped working and Windows is trying to solve problem, then shuts down.
    I have un-installed , re-installed. Tried earlier version and that wont work any more. Changes firewall, pop-ups whatever...........nothing works. And Apple has been no help. Run test and it says all test are good even to Apple store??

  • Why can't OSX track multiple copied clipboard items? Windows has been doing this for years. It's pretty much infuriating.

    For the umpteenth time, I've cut some huge chunk of text out of a dialogue box only to lose it following a momentary lapse in concentration. With all the 'it just works' propaganda I've heard and repeated over the years, I'm dumbfounded that Apple engineers have not caught up yet. Windows has had this built in functionality forever. And please don't tell me 'there's a third party app'. This is basic. C'mon Apple, earn my business.

    The 'clipboard manager' would need be aware of which program was currently active and either hide or gray out clippings which could not be pasted into the selected document/field/project/track.
    It's not up to the OS, or the clipboard manager to know what data types can be pasted into any given destination - the application does that.
    In actual fact, the current clipboard implementation already supports storing multiple data sets - for example, if you copy text from a word processor, the chances are it's copied in multiple formats - there may be a rich-text version that includes font and style data, as well as a plain-text version with just the raw text. It's up to the receiving application as to which data is retrieved when you paste.
    (yes, I realize this is a slightly different issue from multiple clipboards, but it does pertain to storing multiple objects on the clipboard).
    I use a few built in multi-key shortcuts on a regular basis, the first one that comes to mind being ⌘⇧Z (redo).
    Ahh, but that's not the same thing - or at least not what we're talking about here. That's just a modifier (shift) applied to the ⌘Z.
    In this case what State and I are referring to is one technique implemented by at least one third-party app. Let's say your clipboard manager supports 10 clipboards - called Clipboard 0 through 9. To copy something to a specific clipboard You press the ⌘ key and C (to copy), and while still holding the ⌘ key you press the number of the clipboard you want to copy to - so to copy to clipboard 5 you ⌘-C-5.
    Similarly to retrieve something from a specific clipboard, you press ⌘ plus V, then the number of the clipboard you want.
    The problem with this approach (and I've used such a beast in the past) is that it really gets in the way of your workflow, because the copy (or paste) isn't effected until you let go of the command key. So now you can't use ⌘-C followed by ⌘-Tab to switch applications - you have to ⌘-C, let go of both keys and then ⌘-Tab. Sounds minor, I know, but try it sometimes - you'll be astounded how often you hold that command key between multiple commands. Implementing a system-wide 'feature' that requires you to release the command key to effect the command is a real distraction.
    Just watch yourself use command keys in daily life - see how you learn and expect an immediate response when you press the relevant letter/number key. Imagine what it's like if that action waited until you let go of the command key.
    Ultimately I think multiple clipboards is something that a subset of users could benefit from on a regular basis (I use one myself), but is a user-specific/custom requirement and therefore a task best served by third-party apps.

  • Capitvate 8 for 64bit windows downloaded, but "install now" button in akamai downloader has no effect. How to install?

    Capitvate 8 for 64bit windows downloaded, but "install now" button in akamai downloader has no effect. How to install?

    check your computer or, if you don't know how to search for files, redownlload:
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3 | 2.7(win),2.7(mac)
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
    window using the Lightroom 3 link to see those 'Important Instructions'.

  • Itunes keeps closing as soon as i open it and states 'windows has detected a problem' HELP!!!!

    Help!! Itunes keeps closing straight away and message states 'windows has detected a problem' HELP ASAP PLEASE!!!!

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
    tt2

  • Spotlight Find Window has incorrect arrangement

    Lately, whenever I use Spotlight and then choose "Show All", the resulting window is displayed (in list view) with a very wide sidebar, and very narrow columns which must be expanded to read the fields. Normal new Finder windows open correctly, in column view, with the sidebar and columns all readable without adjustment. Under View Options, with the Search window as the foremost window, the checkbox "Always Open in List View" is not checked, however the window always opens in List View.
    This problem with the Spotlight Find window has only occurred recently and no attempt to fix it has been successful. How and where do I specify the format of the Spotlight window so that I may specify it as it used to be?

    If the problem doesn't exist in other accounts, then there's further corruption within the original one. While logged into the newly created admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which is stored in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. If the problem's solved, open the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one that don't exist in it. Log out and back in to ensure there's no conflict and things still work correctly. Resolving conflicts or identifying corrupt plist files is a laborious process. Good luck.

Maybe you are looking for

  • How to add to a DNG file, the XMP metadata that transforms it into Cinema DNG ?

    Hello, I would like to know how to convert a series of DNG files into Cinema Dng ? What I read is that Cinema DNG has more XMP metadata than DNG. Is there a tool to add this kind of metadata ?

  • Vector Average function in T-SQL

    Hi - We need to calculate the Vector Average of the Wind direction based on Wind speed in SQL Server. Normal Average function is not suitable for us.  Has anyone earlier worked similar requirement.  Please let me know how you have solved it. thanks

  • How to Run Batch files from inside Reports.

    Hi All, I have 2 questions. 1) How to change the direction of the reports with Arabic orientation i.e Right to left Change without changing the registry. 2) How to execute a batch file from report or before execution of the report i.e before opening

  • E-Mail Merge to Second Form?

    Hello, I'm sending my contacts a short survey that I've broken into two separate landing pages (in order to make it more accessible). When they land on the first page via the email the field merge works perfectly fine, however when they submit the th

  • Delay not processing in new db

    Hi, Running 10.204 We have several application queues (i.e. built by developers without involving the dba) that were working fine. We created a new database and imported the schemas containing the ques. Two of the three queues are working fine. But o