"stops suddenly" sounds really not precisely... Just stops with not any message thrown? Like when finished placement? Or hangs up?
Probably you have tried with "reset all placement" before placement running...
Thank you
Hi Jason,
Following problems with new soft:
- checkboxes "placed" are not set if you choose "check fiducials". Placed parts' fields are going into green properly.
If fiducials are set off - checkboxes "placed" is set properly after placement.
- when run the panel containing 6 boards with ~50 parts/board - soft "not responding" after fiducials checking. CPU usage by Java increases from standby openPNP 75% to 99-100%. Note that I have A8-3.7GHz processor with 8GB of RAM, so machine is rather good. Using your Java not installed separately.
If I limit this panel to 2-3 boards it goes after fiducials checking normally, but after when head has finished the placement of picked parts, soft freezes at next>place>plan for 3-10sec (it's not constant time, seems as less parts left to place the pause becomes shorter).
If I run this panel with all 6 boards but with only one part on each - this pause doesn't occur and everything perfect.
So as more parts to do then appears cpu problem and pauses.
The previous soft from Oct.22 doesn't have this problem with "not responding" and uses 10% of CPU less. "Dependency" placed-checkboxes to fiducials-checkboxes identical wrong like in last version. You can easy reproduce it.
BR
Marek
About freezing and cpu usage (+plus RAM consumption 5Gb instead of 2.5) just have found it's somehow related with my machine.xml. Taken older one from an update before and it works ok with newest version. I'll compare them tonight.
So Thang - maybe you should try the same if you have older machine.
Some idea why after fids checking my cpu goes to 100% and ram from 2.5 to over 5? I know already it's because of machine but where...
Ok Cri, it's moreless clear about fids that need to be tested/updated yet.
Some idea why after fids checking my cpu goes to 100% and ram from 2.5 to over 5? I know already it's because of machine but where...
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/232ddf94-3f10-43c2-94db-e2eb59e069c5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CAJGcfUgELXK5thzD1LbZADkkR-gOGPYRe8u50DjYk3MH0aCyrg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CA%2BQw0jwZes6cSJ-Gbj2EYj6JLgBRRKstN_TjtgarHf%3DidG4_OQ%40mail.gmail.com.
Hey Niels,In brief, for every placement cycle we calculate the cartesian product of placements + 1 and nozzles + 1. This is then sorted and filtered to produce the planned job placement that will be used for that cycle. In general, I would not expect this to be overly taxing for any modern computer, but I have not had a chance to really jump in and see what is happening.One thing worth checking would be if there are any logger lines that are outputting the results. That would be incredibly slow. I feel like maybe there might be one when TRACE is turned on.
The code to look at is ReferencePnpJobProcessor#doPlan().My suggestion would be to load up a profiler, create a job with 50 placements and 6+ boards and run a placement. YourKit profiler is free to try and is very good - it's what I use.
This is because of the Cartesian product used in planning. Larger jobs eat up a ton of cpu and memory because of this. I think an issue was filed but I can’t check right now. The fix is to simplify the planner, or cache the result. For the time being, if you place less boards at once it should stop happening.
If someone wants to look at this I’d appreciate it. I am swamped at the moment and would not be able to check it for at least a week.
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/eb2230ea-a617-48da-b6dc-60e53a7e6436%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/60f57161-e96b-46a6-8aa6-dbc73a8b4e3b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/540ce338-a609-4f87-bafd-62709dd116c3%40googlegroups.com.
Hi Marek,This is not likely to be fixed by the end of the week. One thing to consider is that if you just disabled some boards from the job, this decreases the workload. You can just uncheck some of the boards, process the job, then uncheck the ones that are done and check the ones that are not and run it again.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/f40553da-26a2-4e39-9e7a-456f3650aa00%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/6c27a8cc-6cd9-4d63-bf40-7433ce3ee46e%40googlegroups.com.
Compiled Version if you want test it, including decompiled code (to
fit the rule of one command per line)
for the planning solution.
https://drive.google.com/drive/folders/1XCrBtyfLhMWVJtuYYONrMfMEn4tPLOQu?usp=sharing
In short. if full-calc is set, it checks all parts, otherwise just the
first pleacable part is used.
If middle is negative, both things accessible from job menu, then
instead of height
order for big parts, the placement distance from zero machine is used.
I have removed unsafe boolean, as it is nearly the same as setting
middle to a high value.
2017-11-30 11:30 GMT+01:00, Cri S <phon...@gmail.com>:
> I have a algorithm working with @Vonnieda "on the fly calculation" .
> Because this on the fly calculation, the hirarchy dependence that is
> based on height
> and distance cannot be performed because it is relative time
> intensitive and not suitable
> for on the fly calculation.
> Instead two parameters are set, "unsafe" (boolean) and middle (height, mm)
> that
> influence the placing process. Currently i don`t have wizard code
> written for it, it is just
> accessible by scriping in case of tweaking needs.
> The code is approx 100 lines ( approx 400 line with single line statement )
> The algorithm is this:
> it groups the placement in 3 category based on the height.
> small middle big. Big are mounted on height basis (current sorting order).
> The other two are sorted in some way based on distance.
> Actually for the big assembly list supplied in this thread,
> it need 89ms for the calc, and after having placed 300 parts, the
> average is 18ms.
> Based on this timing, it should find the nearest part instead of just
> the first. This is actually
> not implemented.
> unsafe is that it can place big parts, if no small or middle parts are
> found for placing on this
> nozzle. Small and middle always have precedence to big.
> Without unsafe, it places the smaller parts, and then places the
> bigger parts above the
> middle height setting. If middle is 0 or <=3mm, middle code is deactivated.
> Maybe this could be changed to allow place parts with >0.6 or 1.0 mm
> into middle queue.
> Precedence is small, middle, big for safe processing and unless all
> small parts are placed,
> no big parts can be processed. Middle and big is ok.
> For unsafe operation, the precedence is just small, middle, big.
> There are always two queue,
> small - middle - big for current NozzleTip and then
> small - middle - big needing Nozzle change and precedence always are
> in this two levels.
>
> I don|t know if this type of algorithm is wanted, and it need some
> thinking for the (un)safe
> placing and selecting threshold for middle height.
> I`m using similar code, but with hirarchical dependency in order that
> the safe/unsafe is
> automatic handled and better automatic optimizing possibility, both
> this needs preprocessing of planning queue and implies that the
> placements cannot be changed after
> starting the job.
>>>>>>>>> <https://groups.google.com/d/msgid/openpnp/540ce338-a609-4f87-bafd-62709dd116c3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>> .
>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "OpenPnP" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send
>>>>>>
>>>>>> an email to openpnp+u...@googlegroups.com.
>>>>>> To post to this group, send email to ope...@googlegroups.com.
>>>>>>
>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/openpnp/f40553da-26a2-4e39-9e7a-456f3650aa00%40googlegroups.com
>>>>>>
>>>>>> <https://groups.google.com/d/msgid/openpnp/f40553da-26a2-4e39-9e7a-456f3650aa00%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups
>>>>
>>>> "OpenPnP" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an
>>>>
>>>> email to openpnp+u...@googlegroups.com <javascript:>.
>>>> To post to this group, send email to ope...@googlegroups.com
>>>> <javascript:>.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/openpnp/6c27a8cc-6cd9-4d63-bf40-7433ce3ee46e%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/openpnp/6c27a8cc-6cd9-4d63-bf40-7433ce3ee46e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenPnP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to openpnp+u...@googlegroups.com.
>> To post to this group, send email to ope...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/openpnp/464f28cb-f3e9-4098-9227-0f6680b5405e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/04697283-3d9a-4da9-872c-bd7380fd8bb1%40googlegroups.com.