google / google/EarlGrey

Failed to load module 'Helper Bundle' after running some test cases in EarlGrey2

Open
#1,852 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Hello,
My Application crashed at the GREYHostApplicationDistantObject extension after running some test cases and got "Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ff80d9f4ac8)". When I try to print "Bundle(for: (typeof:self))", I got

> warning: Swift error in scratch context: error: failed to load module 'Here is my Helper Bundle'
.
Shared Swift state for BizX Mobile has developed fatal errors and is being discarded.
REPL definitions and persistent names/types will be lost.
error: expression failed to parse:
unknown error

This crash repeats whenever I calls a instance method of a swift class which is inherited from a base class in another framework.

Thanks.

Contributor guide

Open the contributing guide

Research direction

Review the GREYHostApplicationDistantObject extension and the Bundle(for: (typeof:self)) call while reproducing the EarlGrey2 test crash involving a Swift class inherited from another framework. Done means the helper module loads and calling the instance method no longer causes EXC_BAD_ACCESS; no test file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c, swift
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.