How to load two complex window?
-
@small_bird what do you mean by "blocked"?
You downloaded my project, openned it, pressed run, and... then what happenned? Did you get any error message? I actually run it under win10, but today I will try on win7 (unsure if it actually matters). -
@RaubTieR said in How to load two complex window?:
I mean that one window plays video fluently, another can not play video fluently. -
Tested on win7, and it goes fluently on all 3 windows. So it is most probably a performance issue for your machine.
Returning to the initial problem, did you manage to make it better? And what does actually happen there: no picture at all, or it becomes slow as it was with a video? I wonder if you have fixed those console errors yet...
-
@RaubTieR There are still pictures. The movies can not play fluently. The console errors have been fixed.
-
@small_bird Did you test it on any other machines? What are your computer specs?
Your CPU seems to struggle handling so much data. May be the video is to tough, or may be you didn't limit the fps of your 3D scene. Though it doesn't explain how you have freezes with my example above. Try running it on different computers.
-
@RaubTieR OK, I will try that!
-
@RaubTieR It runs well on other machine. It seems like my machine is too old, thanks a lot. Your cats are pretty cute!!!
-
@RaubTieR Your example is all right, however, mine still freezes. My code structure is as following:
Window{ Video{ ... } Window{ Scene3D{ ... } } }
The error output is as following:
Starting C:\Users\Small_Bird\Desktop\gunHouse\debug\gunHouse.exe... QML debugging is enabled. Only use this in a safe environment. QThread::start: Failed to create thread () This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. QThread::start: Failed to create thread () QThread::start: Failed to create thread () QThread::start: Failed to create thread () Qt Concurrent has caught an exception thrown from a worker thread. This is not supported, exceptions thrown in worker threads must be caught before control returns to Qt Concurrent. terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
-
@small_bird Did I correctly understand that as sooun as you comment the "Video" section all the rest is working and the error "std::bad_alloc" goes away? Also are you sure that your machine has enough memory for your process (look at the task manager)? May be it first eats up all of it and then bails.
-
@RaubTieR No, it seems that the thread of Scene3D and that of Video mixes up with each other!