#Egg Automation Testing

224 messages · Page 1 of 1 (latest)

rancid latch
#

Im currently running the Egg automation, and will be probably for like the next 6 hours, so ill let you know if anything happens and how it works out.

#

Also gotta say i l9ve the log overlay feature

slate path
#

Great post! Everyone should discuss egg testing here please and thanks

keen pine
#

Will also leave it running for next 8 hours or so, it's been running for about 1 and doing fine so far :-)

nocturne wolf
#

I keep getting Y-Comm not found

nocturne wolf
#

Hashtag unsupported platform

hollow jasper
#

Post a screenshot of your overworld with the Y-COMM icon visible and wait for Gin. lul

nocturne wolf
#

haha, will do as soon as I get it back.

#

The worst part is, I could see the inference box sitting there.

#

Hopefully it's not my OpenCV implementation from brew.

hollow jasper
#

The Y-COMM icon detector broke on one of my cap-cards are well. So this isn't new.

nocturne wolf
#

:phew:

hollow jasper
#

We're not using OpenCV for this. lul

keen pine
#

12 and a half hours and 4 shinies later, seems to all still be working well

#

I think I ended up with a handful of extra eggs (5) the next box over, but it didn't crash or anything

nocturne wolf
#

@split scroll screenshot from computer

#

Screenshot from the program

split scroll
nocturne wolf
#

Always happy to recompile if you need me to test anything.

split scroll
#

I pushed the fix. Your Y-Comm icon is slightly higher than the pixel area ratio threshold yaybulba

nocturne wolf
#

git pull and recompile?

#

ka chonk ka chonk

#

Ooo and it has the json fix in there, too

split scroll
#

Yes

nocturne wolf
#

cool, I'll give that a shot the next time I can get the Switch

#

Disney Dreamlight Valley is my competitor now.

nocturne wolf
#

there we go, hatching

#

It'll be interesting to see if the set of "grab an egg every 2 laps" is good enough or not for yamper

#

I see why the Y-Comm is so important, since it has to fly all the time

#

Ohhh, all those inference boxes on the menu screen are to figure out where the cursor is. Lovely.

split scroll
#

Y comm is used to decide when an egg is hatched

#

Very important

split scroll
kindred plume
#

ive been running it for about 24 hours already couple of crashes at the start but working flawlessly since then already got 5 more shinys for my shiny living dex

coarse folio
#

time to go shopping .... sadge

split scroll
nocturne wolf
#

I definitely love how well it tolerates the nursery lady not having an egg. Yamper hatches so fast that it doesn't make sense to fetch every 2 loops, but she doesn't always have an egg after only one loop.

keen pine
kindred plume
hollow jasper
#

Is there anything in the ErrorDumps/ folder?

hollow jasper
#

thx

#

Looks like your computer ran out of memory. What's the specs of your computer?

kindred plume
#

3700x and 16 gb ram

#

ram is always at like 30-50 %

hollow jasper
#

The second crash is on a null pointer in the video stack. Another possible symptom of running out of memory.

#

hmm Thonk

kindred plume
#

i do know i need more ram but i need a job to pay for it

hollow jasper
#

Is your CPU by any chance pegged at or near 100% CPU while the program is running?

#

If the program is CPU starved, it can also run out of memory.

kindred plume
#

20-30 currently

hollow jasper
#

hmm

kindred plume
#

i was playing a game but it never caused an issue in the past

hollow jasper
#

Anyway, keep an eye on the memory usage. If it ever goes above like 500MB something is wrong.

#

Oh you were playing a game?

kindred plume
#

yeah

#

and im runing 2 instances

#

never caused me issues in the past even with more ram hungry games

hollow jasper
#

The other possibility is that the game is starving the program of CPU. If the program's video processing gets starved and cannot keep up with the capture card, all those frames will start clogging up memory until it either gets enough CPU to catch up, or it runs out of memory and crashes.

kindred plume
#

maybe but i don't think that's it probably just ram as the cpu rarely goes over 70 with the lighter games

charred gyro
#

What is your current total RAM?

kindred plume
#

16 gb

#

i want to bump to 32 or higher but dont got the money for it yet

charred gyro
#

That should be plenty even when running most games alongside automation, assuming you don't have other background stuff going on

kindred plume
#

plex server is the only other major thing i have going and ocasonal recording during a zoom class but i never had issues in the past and ive been doing it for over 8 months now

#

hoping i can move plex to a separate linux server in the future and hopefuly i can run the programs there too

nocturne wolf
#

Commence overnight testing, looking for shiny yampers and yampers with perfect IVs

nocturne wolf
#

Well, only 130 eggs to get a shiny yamper and test shiny detection. That wasn't long.

rancid latch
#

Everything seems to be going fine with the egg automation. Been running it for amost 30 hours in the last 2 days and have gotten 6 shinies. Now there has been a few times were it has had to recover its self because it couldnt see thr rotom phone for some reason but it was able to recover from that everytime

split scroll
#

Can you send the logs related to those errors?

rancid latch
#

Is it alright if i just send the whole file?

#

And is it the serialprograms.log file ?

#

Therez another one tht also say cannot detect flying taxi animation

#

Later tonight, ima start the home box sorter or the cramamatic. I want to spend about 2 days on each to test everything that way it can have things done and ready for SV stuff

rancid latch
#

I restarted the program just before i left my house and gottennthe same error twice in 25 mins

split scroll
#

Thanks for testing! I will fix it later uwu

keen pine
#

Update: Haven't gotten any other extra eggs, so I'm fairly sure I was mistaken and those were the result of me running it wrong the first time (i.e. without an already-full party of eggs)

royal tree
#

I have been running it since last night, three shinies and no crashes. It was rough to get started because I have an elgato and I had to adjust the colors a lot for it to see the Y-Comm, but once it was dialed in it was off to the races. I do notice there's a discrepancy of a few eggs between "Fetch Success" and "Eggs Hatched" - I have 838 hatched, and as it gets to "Found egg 5/5" I am at 835 "Fetch Success". So somehow it's hatched 3 more than it's found lol. Coincidentially that's the same number of shinies found.

Overall really stable and something I absolutely LOVE and appreciate having 🙂 Thanks mucho!

agile iris
#

first success sandsup no issues so far for me, using the build that was updated this morning

hollow jasper
royal tree
#

I can share that this was the tweak I made to the "Game Capture HD60 S" source properties in OBS:

#

Which honestly makes the colors look dumb... But it works

hollow jasper
#

At minimum we want things to work on all default settings. And have room for some of the more common distortions.

royal tree
#

I will reset it to default after this loop and stop the program

#

Default settings

hollow jasper
#

And default fails on the latest beta?

royal tree
#

considering you released an update 40 minutes after I upgraded last night I'm not on the latest lol

#

I'll hit go on it and see if it fails now... If it does I will update to the one from last night

hollow jasper
#

@split scroll want me to take a look at this later this week? lul

split scroll
#

Sure please halp KEKW

split scroll
royal tree
#

hey, it's working on last night's beta

#

it's GORGEOUS. STUNNING.

#

Pinnacle of human achievement. All of my thanks 🙂

hollow jasper
#

Oh it does work on the latest? I thought that error message was already on the latest. lul

royal tree
#

nah that was confirming it was still broke on default video settings on the previous beta. My bad

#

To be clear, it is currently running perfectly on default elgato settings on last night's release

split scroll
#

The new code is on Github

rancid latch
#

Thanks ill test it out

royal tree
#

oh my god I love this so much more than bdsp egg auto. why the hell is that game so slow lmao

I did have one error/crash today, but it recovered and then promptly found a shiny a few cycles later. 😄

#

is there a log I can look at to see what happened?

split scroll
#

There is SerialPrograms.log.

#

You can find the part where it has the error and upload here. Warning: it will be a very long log

celest depot
#

i've hatched >2000 eggs with no hiccups so far (v0.18.9)

keen pine
#

I'm about 4k in with the same lack of issues :-)

river swift
#

The first 5 shinies I hatched I only had 2 errors or so, with 1075 eggs hatched. I've recently started breeding for shiny Clobbopus, and there seems to be more frequent errors, with 6 errors and 279 eggs hatched. Could it be due to Clobbopus having a higher step count to hatch -6425 - 6681 steps- compared to the previous pokes which were only 5140 - 5396 steps?

#

Specifically, it's the Rotom phone error

celest depot
#

On my computer the inference happens really fast. The only time I saw rotom error was when I was using too much CPU for other things and PA started to lag 🤷

royal tree
#

I've only experienced errors after switching to 1 bike loop per fetch, if that means anything. didn't have any errors before changing from 2 loops to 1. here's the lines from the log on this one (maybe my 4th or 5th error in a few days, but all recovered perfectly)

2022-10-27 22:37:50.558644 - [Console 0]: Sending: pbf_press_button() - seqnum = 23640, button = 2( BUTTON_B ), hold_ticks = 10, release_ticks = 240
2022-10-27 22:37:50.718613 - [Console 0]: Sending: pbf_press_button() - seqnum = 23641, button = 2( BUTTON_B ), hold_ticks = 10, release_ticks = 240
2022-10-27 22:37:55.597349 - [Program]: Fly to reset position
2022-10-27 22:37:55.608564 - [Console 0]: ConvertFrame: Count = 5, Mean = 9.098ms, Stddev = 1.19416ms, Min = 7.921ms, Max = 11.078ms
2022-10-27 22:37:55.612187 - [Console 0]: OperationFailedException: Cannot detect Rotom phone menu.
2022-10-27 22:37:55.624674 - [Console 0]: Saving failed inference image to: ErrorDumps/20221027-223755624657-EggAutonomous.png
2022-10-27 22:37:55.828712 - [Program]: EventNotification(Program Error (Recoverable)): Sending notification.

hollow jasper
#

I think Gin made some fixes. Will be a new build hopefully in a day or so. Just need to validate some changes I made to the way config options work.

keen pine
#

Nearly 6k in, no issues yet. That said, all the mons I've been trying with have been 5140 - 5396 steps, I can investigate later with higher step counts

weak trench
#

I'll read the code in a few to check what happened ^^

weak trench
#

hmmm okay, well a lot of files from command line tests had the wrong name, I fixed that locally

#

but is it dead code ?

graceful moat
#

hi, just started testing egg autonomous on sw/sh,

let me know if you need extra hands for testing something specific

split scroll
split scroll
#

The reason for this change is to allow negative numbers and pokemon name slugs uses in filenames

weak trench
#

okay, I'll do that and hope to repro soon 😄

#

oh, then i fixed them in the PR 😄

royal tree
#

Got the rotom phone error again on last night's build.

river swift
#

I haven't encountered any errors as of yet myself with the latest build, but I'm currently only hunting eggs with less than 5k steps required

weak trench
#

or maybe it was the wrong screen ?

weak trench
#

(I'm stupid, I forgot to deposit a pokemon in the daycare pepeCLOWN )

kindred plume
#

I've seen no major issues regarding the autonomous eggs other than an authentication of the digital game on a secondary system which is no fault of the program happy to say i have added gen 8 shiny living dex to my collection in the last 2 weeks thanks to this software

charred gyro
#

only 8? you need to automate more!!!

kindred plume
#

oh i have 1 2 3 and 4 already

#

working on 6 as its the smallest hoping to be done before scarlet violet (at least what is available)

graceful moat
#

For me on linux it's unable to detect stats, then it says unable to detect pokemon menu in storage box, tries to restart and then it's failing to detect Home screen and stops, I will try on Windows 11 now

#

On windows everything is detected nicely so far

hollow jasper
#

Can you post this image? ErrorDumps/20221107-203047064455-NoPokemonMenuInStorage.png

#

Not being able to read stats probably means Tesseract isn't working. Or you didn't select the language?

graceful moat
#

I didn't select a language indeed, but no specific stats either, trying again

hollow jasper
#

Oh it's trying to release the mon, but maybe it dropped a press and thus the arrow that appears when you press A doesn't show up.

graceful moat
#

Yep I selected language now it's detecting the stats but crashes the same way and fails to detect the home screen

hollow jasper
#

Can you post a screenshot of your Switch home?

graceful moat
#

yep sec

hollow jasper
#

Indeed it fails the detector. Seems like your background it quite a bit brighter than most.

I'll push a fix in a sec. But this makes me wonder about the other related detectors.

Are you able to bring up the Switch or game update window? Or are you already fully updated on everything?

graceful moat
#

I just updated yesterday :/

hollow jasper
#

damn lul

#

Fix pushed for the Home detector. Will need to look further at why it's breaking in the box.

graceful moat
#

Ok it will need some time to build again I will let you know if it's fixed

hollow jasper
#

For the box issues, we might need a video with the log visible.

graceful moat
#

I can do that in a bit

graceful moat
hollow jasper
#

What if you replace:
pbf_press_button(context, BUTTON_A, 20, 200);
with
mash_A(context, 220)?

mash_A() is in PokemonSwSh_Commands_Misc.h

split scroll
#

I thought SwSh don't drop buttons KEKW

#

I will take a look later

split scroll
#

Took a look at the video. The problem is that somehow the button press to clear the last black dialog box after releasing one pokemon is not pressed. So the black dialog box is still there when the program thinks it is OK to press A to show the pokemon menu

#

mash_A() cannot be used here because it will open the pokemon menu of the next pokemon

#

We can have a video detection on the black dialog box, and as long as this box is there, we press A to clear it

#

Oh wait, we already have that black dialog box visual detection...

hollow jasper
graceful moat
#

Yep it didn't stop where it usually does now I can leave it overnight for a bigger test 🙂 thank you so much guys

#

did it drop another button press here?

split scroll
#

What did u mean?

graceful moat
#

some times it restarts with error NoRotomPhoneMenu at the above image, I wonder if it similarly fails to press A and go to the egg hatch screen

#

happened 4 times in ~130 eggs

split scroll
#

Interesting, can you give a recording of this (including the log)?

#

The code detects egg hatching by:

  • checking if Y-comm icon in the lower left corner of the screen disappears.
  • If yes, an egg is about to hatch, keep pressing A until the Y-comm icon appears again
#

So it should not miss button A to go though egg hatching dialogs

#

One possible explanation is that it counts an additional "fake"/phantom hatching event. So when the program thinks it hatches all five, it actually only hatches four, and therefore it tries to open Rotom Phone menu when the last egg is about to hatch, in this screenshot

graceful moat
#

I can try to get a video, it's a bit more difficult as it doesn't happen all the time and the video gets to big

#

my assumption from looking at it is that is trying to fly back to the nursery but the eggs are still hatching, as I saw those yellow squares that show up when it gets into the menu, so the phantom hatching event sounds very possible to me

#

even with the errors it worked overnight and I got the shiny

graceful moat
#

didn't have any errors on a few hours run with a new pokemon, maybe the hatch time matters?

graceful moat
#

I noticed one of my cpu cores going 100% CPU usage when using Egg Automation and I can't do much more with my computer while using it

#

is anyone else having similar issue? I still can't figure out if the program got too heavy for my pc or if there is anything wrong on my pc or the code

#

i5 8600K with 16gb ram and 2060rtx

hollow jasper
#

How much is the program itself using?

graceful moat
#

I will go home in about an hour and let u know

graceful moat
#

~25% cpu usage

#

almost 9gb memory, maybe that's something as well

hollow jasper
#

That doesn't sound right.

graceful moat
#

I am using 85% of memory with only Serialprograms running

hollow jasper
#

What if you stop the program and set the camera to (none)? Does the memory usage go back down?

#

Or even better, switch to a settings tab so you don't have any program that has an active video.

graceful moat
#

I made some tries yesterday without very consistent results but when I switch to settings or another program the cpu usage drops significantly

#

also switching back to Autonomous eggs without camera and not started, went to 100% usage again

#

but let me hatch this batch and try again

hollow jasper
#

So the program is using 100% CPU with no active video?

graceful moat
#

let me confirm that again

#

I was too sleepy to trust me

#

there is a bug on linux where it crashes when i change the camera 🤙🏼 let me find a workaround

hollow jasper
#

You sure it's a bug in Linux and not in our code? Where does it crash?

#

Granted, our stuff works on Windows and Mac, but that doesn't exclude a program bug.

graceful moat
#

I mean in the code but it only happens on linux

#

hmm, putting the camera to none doesn't change anything but putting the serial port to none drops the usage to almost 0

hollow jasper
#

So serial is spinning? Can you do a gdb break and bt?

#

Curious to see where it's spinning.

#

Both Mac and Linux use the same POSIX serial stack. But I don't think @split scroll has observed any 100% CPU from the serial?

graceful moat
#

I should build it in debug mode to use gdb right?

hollow jasper
#

Debug mode isn't necessary, but you do need symbols.

graceful moat
#

I had similar issue on win 11, I will make more tests and come back to you

#

(No debugging symbols found in ./SerialPrograms) what do I have to do to have symbols?

hollow jasper
#

Probably need to add a flag -g? to the compile options? /cc @weak trench

weak trench
#

what is -g ? 😄

#

I can add that though lul

hollow jasper
#

Make sure it actually does what we want before blindly adding flags. lul

graceful moat
#

built it with BUILD_TYPE:STRING=Debug, I had symbols but I couldn't start the program
segmentation fault (core dumped)

#

a bit out of my comfort zone with gdb sorry 🙂

hollow jasper
weak trench
#

it sure add -g to the build and that's what we want evil_lul

#

debugging with visual studio is easier 😄

graceful moat
#

I got into gdb by using this argument instead -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo but now I am like

graceful moat
#

not sure if that's worth anything, tried to get some more information using perf so dropping it anyway

#

I'm sorry if it's useless info 🙂

hollow jasper
#

Wayland is UI stuff in the Linux.

#

Looks like the Qt video stack is using all the CPU.