ERROR, called from the thread NON-INTERFACE QThread

I am trying to load an image using QtConcurrent:map at the same time and I received this error.

WARNING: ApplicationPrivate::context: ERROR called NON-INTERFACE QThread thread (0xf9ff68, name = "thread (pooled)" ")
Fatal: ApplicationPrivate::context: method called from the UI thread

I simplified the code as follows:

imagescaler::queuescaling{
..    mimageScaling = new QFutureWatcher(this);
mimageScaling->setFuture(QtConcurrent::mapped(mImageList, scaledImage));
..
}

Image scaledImage(QString file_name) {
   QImage qImage;
   bb::ImageData imageData(bb::PixelFormat::RGBA_Premultiplied, qImage.width(),
  qImage.height());  // causes error
  return imageData;
}

Anyone know what the problem is or how to work around?

Thanks for point out the bb:ImageData.  Never noticed the incompatibility.  Image converts ImageData to initialization, so it does not create an error.  However, if I return an ImageData rather than the Image it does not crash.  I then simply convert ImageData of Image in the UI thread and it works very well.

I'm curious to know why I can return a blank image and I can return an imageData, but I can't go back an Image that's been converted from ImageData.  Do not understand what can or cannot be done outside the UI thread.

Tags: BlackBerry Developers

Similar Questions

  • MenuItems run() method that is called from the thread eventdispatching?

    Hello

    is it? I know that MenuItem itself extends thread, but I wonder why this method is called run() and finally and above all it would'nt be worse if this method would be called from a Thread.

    THX

    In fact the menu items are run on the thread of the event. You can see this by creating a menu item long-term. The menu will not close and will not refresh the screen.

  • Why almost all javafx methods must be called from the thread of the application?

    I have a pretty big 3D scene that is refreshed every few seconds.

    It takes a while to update the scene, and I wanted to do it in a background thread.

    Problem is that almost every approach I take requires the application-fx thread.

    Now, I understand that change the UI itself must be called in the application thread, so I tried a different approach:

    Create a new group, add all the nodes (which takes the greatest amount of time) and update the component root of the view with the new group.

    I assumed that only the last party required the application thread, but alas this was not the case.

    group.getChildren () .add also requires that the thread of the application. Why?

    node.setLayoutX () also requires that the thread of the application. Why?

    It is a new set of nodes that are not visible and groups yet, so why can't do this in a background thread?

    The reasons of principle (I think) that JavaFX is mainly a single toolbox threaded are described in:

    https://weblogs.Java.net/blog/2004/10/19/multithreaded-toolkits-failed-dream

    That said, if you manipulate objects that are not part of an active scene, then it should work.  The dream that failed has what to do with the components who participate actively in the molten, interactive GUI.  If you're interacting with only the components out of the screen, then it (should be) without issue.

    Please, create and post an example minimum, executable that replicates the question.

    (Please ensure that the example is minimal and executable).

    In addition, what is the cause as your application "takes some time to update the scene?  Computers are today quite incredibly fast.  Of course, there are valid reasons for some things take time, I wonder what these are in your case.  What is the time?  If your executable example can include something reasonably representative of what you're done which shows something that will take "some time", would be great.

    What you have described so far, I feel that, even if there is no problems with threads, your proposed approach would not fix your performance problem.

  • (2003 server) error 2019: the server was unable to allocate from the system non-paged pool because the pool was empty

    Hello

    I have a Windows 2003 server and get error (Server 2003) 2019: the server was unable to allocate from the system non-paged pool because the pool was empty.

    If anyone has encountered this error and has an instruction step by step to solve this problem please let me know.

    appreciate the help!

    Sincerely,

    Riaz

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)

    If you give us a link to the new thread we can point to some resources it
  • Strange call from the India, claiming that they had been notified that there was an error in my computer?

    Just got a call from the India, claiming that they had been notified that there was an error in my computer? Is this normal? About an hour earlier, I have defraged my computer?

    Hello

    It's a SCAM

    they want or money on your part for programs without value or make an identity theft on you to get even more money and get your internet banking passwords and credit card information, you get allows you to download the software to 'fix' or 'test' for your computer

    read this:

    http://www.Microsoft.com/security/online-privacy/msName.aspx

    Microsoft has none of the unsolicited telephone calls to help you fix your computer

    In this type of scam cybercriminals are calling you and claim to be of Support technique Microsoft. They offer help with your computer problems. Once scammers have earned your trust, they try to steal and damage your computer with malicious software, including viruses and spyware.

    Although the law enforcement can trace phone numbers, often authors use pay telephones, disposable cell phones or stolen cellular phone numbers. Better avoid fooling themselves rather than try to repair the damage afterwards.

    Treat all unsolicited sceptically telephone calls. Don't provide personal information.

    If you receive an unsolicited call from someone who claims to be from Technical Support Microsoft, hang up. We do not have such calls.

    If you think you might be a victim of fraud, you can report it. For more information, see: what to do if you think you have been scammed.

  • My browser is blocked for security reasons. Code error-QFR5000RT11C. My incoming connections in open State distance. Then I got the call from the United States 1 (866)986-3669, I picked up the phone, but they put the phone down. No matter what? Help, plea

    My browser is blocked for security reasons. Code error-QFR5000RT11C. My incoming connections in open State distance. Then I got the call from the United States 1 (866)986-3669, I picked up the phone, but they put the phone down. No matter what? Help, please.

    It's probably a SCAM.  Do not call these numbers.  Force Quit Safari and reopen it by holding down the SHIFT key.

    Ciao.

  • Hello someone can help me please? I received a call from the CTIC Tech and they gave me Anti Malver software. I would like to ask you about it?

    Hello

    can someone help me please? I received a call from the CTIC Tech and they offered me an Anti Malver software which I paid 179 euros. I would like to ask you about it?

    These phone calls, e-mails or popup messages will ALWAYS be a scam.

    You have been scammed.

    Based on your other posts, you aapear have called these criminals. You allow to access your computer?

    Note: Please stop rather create several threads with the same question, answer in one of the many other threads.

  • I just got a call from the same thing with the eventvwr in the race, I wrote down everything, is it a scam?

    I just got a call from the same thing with the eventvwr in the race, I just wrote it down at the bottom, if it is a scam What are they actually accomplishing?  This gives them access to our computers?  They do not seem to be asking for money or that comes up when they try to "fix"?

    You are not alone! See...

    I received a phone call from someone who claims to have a Virus (August 10, 2009 &ff; 40 pages)
    http://answers.Microsoft.com/thread/4489f388-d6de-416d-9158-0079764bb001

  • Unexpected calls from the Germany

    Yesterday, I started to receive calls from the Germany. People say that they missed call on their phone, that's why they are callimg me back. I checked the call history and I did not call these numbers. Is it possible that there is a double reality of my number online?

    Hello

    Sorry, you encounter this problem,

    Please file here:

    Contact customer service

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • error reported from the transport layer and the error description was impossible to extract

    Hi, can someone please explain how to get rid of the pop-up message when the computer starts up:
    error reported from the transport layer and the error description could not be found! the message has been lost
    Windows XP Virgin internet net gear wireless. I searched on the internet - nothing except suggestions, this is the internet
    connections but is not working okay I tried microsoft fix
    Thank you john

    Hi, I just started to use the hard drive that had the problem, it's still there. The problem is with the raid card. (no problem on other drives) In system config, starting there are two enteries: SATARAIDS and silcfg. I checked the SATARAIDS, rebooted

    missing message. I deleted all the files SATARAIDS and silcfg. my computer, properties, hardware - deleted. deleted the folder in program files. did a scan to remove any files or file fragments on the raid drivers. I did not know I had lefe the cd in the drive for the raid drivers I have in yesterday. I rebooted.
    after reboot, there not says found new hardware "raid card" perhaps because the disc was in the drive and it automatticly installed drivers. FIXED
    NO MORE ANNOYING MESSAGE
  • I just got a call from the service center of the sentence above, Microsoft asked them to call

    original title: Onlinepcmasters

    Hello

    I just got a call from the service center of the sentence above, Microsoft asked them to call.  They said that I got the virus bluebird on my computer and it would break in 2 days!  I guess it's a total scam

    See this post sticky at the top of the forum:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/i-received-a-phone-callemail-from-someone-saying/98a199f4-82cd-4433-b333-045451b89e2d

  • BlackBerry smartphones can not make calls from the home page or the phone book.

    I've had my curve for several months now and the other day, that my most young got a hold of it... I don't know how they do it, but my children can do things with my phone and computers that I did not know they could do... In any case I tried to access my voicemail by organizing the 1 on the homepage and it took me to instead call log, so I tried to make a call from the phone book by selecting the name pressing on do it call button and no as soon as I actually had to go into the call log and manually type the number.

    My question is... What did do?  It is very aggravating and I would ask him, but he is two... I know he did not drop it or I would take it to a service provider.  All of the suggestions.

    Thank you

    If you go in your call log icon or by phone, click your menu button and go to Options. Then, go to the General Options. See if your the home screen dial is set to Yes.

    Also try to reset your device by removing the battery for 1 minute and replacig it to leave the unit restarts. Try it later

  • Phone calls from the India saying my computer sends messages it has smart software.

    I get phone calls from the India saying that my computer sends messages it has smart software.  Is it a scam?

    Or-
    Next time have an air horn next to your phone and just before giving them a breath
    say "the smart software makes a sound of '...
    Or perhaps softer and say "because I had so many calls that I have."
    asked the FBI/CIA (MI6, or similar) in cooperation with the Government of your
    beautiful country to tap my phone... ».

    .

  • Cannot print and get an error message from the printer saying to close the scanner cover

    Original title: I can't seem to print on my Epson Workforce 845.

    I can't print from my computer running Windows 7 Home. I get an error message from the printer telling me to close the scanner cover. I can print without problem of my computer running Windows 7 Enterprise.

    Hello

    (1) is your computer connected to a network?

    (2) did you of recent changes to the computer before the show?

    (3) what is the exact error message?

    You can run the troubleshooter printer on the computer that faces the question and check if it solves.

    Open the printer Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    You can also consult the following articles and check if it helps to solve the problem.

    Printer in Windows problems: http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Install a printer: http://Windows.Microsoft.com/en-us/Windows7/install-a-printer

    For any further assistance, I'd contact Epson printer manufacture support.

    Here is the link: http://www.Epson.com/cgi-bin/store/support/supDetail.jsp?BV_UseBVCookie=Yes&OID=184583&infoType=overview

  • All of a sudden my 5.7 LR on win10 64-bit start fails with the error message something like "error reading from the cache of the preview... Please restart." reboot, repair, reinstall, or rename SLCache helps to repair.

    All of a sudden my 5.7 LR on win10 64-bit start fails with the error message something like "error reading from the cache of the preview... Please restart." reboot, repair, reinstall, or rename SLCache helps to repair.

    Unbenannt.PNG

    Hello

    Greetings!

    Close to Lightroom.
    Navigate to the location where the catalog is present (default value is within the pictures folder lightroom file)

    And delete the file previews.lrdata.

    Note: do not delete the catalog with the extension .lrcat file.

    Concerning

    Jitendra

Maybe you are looking for