페이지 충돌로 인한 세션 삭제 오류
소개
ChromeDriver 사용자는 수수께끼 같은 문제를 겪었습니다. Selenium 및 Cron 작업을 활용하는 동안 오류 메시지가 나타납니다. 오류는 "알 수 없는 오류: 알 수 없는 오류로 인한 페이지 충돌로 인해 세션이 삭제되었습니다. 탭이 충돌하여 로드 상태를 확인할 수 없습니다."로 나타납니다. 이 문서에서는 이 오류의 원인을 조사하고 가능한 해결 방법을 제공합니다.
오류 분석
중요한 오류 메시지는 다음과 같습니다.
selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed
오류 메시지와 코드 조각은 '탭에서'라는 문제와의 상관관계를 보여줍니다. crashed".
솔루션
여러 솔루션이 제안되었습니다.
- Chrome 옵션에 --no-sandbox를 추가하세요.
- /dev/shm을 더 큰 크기로 마운트하거나 -v를 사용하여 호스트와 공유합니다. /dev/shm:/dev/shm.
- 개발자 SHM 사용 비활성화: chrome_options.add_argument('--disable-dev-shm-usage').
"탭에서 충돌" 수정
"탭에서" 충돌" 문제는 시스템이 실행 불가능한 메모리에 /dev/shm을 사용하려고 시도한 Linux 문제에서 발생했습니다. 후속 Chrome 버전에서는 수정 사항이 구현되었습니다.
참조
- [Linux: Chrome/Chromium SIGBUS/Aw, Snap! 작은 /dev/shm](https://bugs.chromium.org/p/chromium/issues/detail?id=736452)
- [org.openqa.selenium.SessionNotCreatedException: 세션이 생성되지 않았습니다. Jenkins CI에서 실행할 때 탭 충돌 오류가 발생했습니다. 서버](https://github.com/SeleniumHQ/selenium/issues/4542)
위 내용은 내 Selenium 스크립트에서 \'페이지 충돌로 인해 삭제된 세션\' 오류가 발생하는 이유는 무엇입니까?의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

forhandlinglargedatasetsinpython, usenumpyarraysforbetterperformance.1) numpyarraysarememory-effic andfasterfornumericaloperations.2) leveragevectorization foredtimecomplexity.4) managemoryusage withorfications data

inpython, listsusedyammoryAllocation과 함께 할당하고, whilempyarraysallocatefixedMemory.1) listsAllocatemememorythanneedInitiality.

Inpython, youcansspecthedatatypeyfelemeremodelerernspant.1) usenpynernrump.1) usenpynerp.dloatp.ploatm64, 포모 선례 전분자.

numpyissentialfornumericalcomputinginpythonduetoitsspeed, memory-efficiency 및 comperniveMathematicaticaltions

contiguousUousUousUlorAllocationScrucialForraysbecauseItAllowsOfficationAndFastElementAccess.1) ItenableSconstantTimeAccess, o (1), DuetodirectAddressCalculation.2) Itimprovesceeffiency theMultipleementFetchespercacheline.3) Itsimplififiesmomorym

slicepaythonlistisdoneusingthesyntaxlist [start : step : step] .here'showitworks : 1) startistheindexofthefirstelementtoinclude.2) stopistheindexofthefirstelemement.3) stepisincrementbetwetweentractionsoftortionsoflists

NumpyAllowsForVariousOperationsOnArrays : 1) BasicArithmeticLikeadDition, Subtraction, A 및 Division; 2) AdvancedOperationsSuchasmatrixmultiplication; 3) extrayintondsfordatamanipulation; 5) Ag

Arraysinpython, 특히 Stroughnumpyandpandas, areestentialfordataanalysis, setingspeedandefficiency


핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

Video Face Swap
완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

인기 기사

뜨거운 도구

Eclipse용 SAP NetWeaver 서버 어댑터
Eclipse를 SAP NetWeaver 애플리케이션 서버와 통합합니다.

Atom Editor Mac 버전 다운로드
가장 인기 있는 오픈 소스 편집기

맨티스BT
Mantis는 제품 결함 추적을 돕기 위해 설계된 배포하기 쉬운 웹 기반 결함 추적 도구입니다. PHP, MySQL 및 웹 서버가 필요합니다. 데모 및 호스팅 서비스를 확인해 보세요.

SublimeText3 Linux 새 버전
SublimeText3 Linux 최신 버전

ZendStudio 13.5.1 맥
강력한 PHP 통합 개발 환경