Causing a crash on latest Canary during start-up
Closed this issue · 1 comments
randomzigzag commented
When loaded during start-up, better-status-indicators
is causing a crash; but not when disabled during start-up, and enabled afterwards.
Offending line seems to be line 476, in index.js:
const { container } = getModule([ 'container', 'usernameContainer' ], false);
const Account = getOwnerInstance(await waitFor(`.${container}:not(#powercord-spotify-modal)`));
if (this.promises.cancelled) {
return;
}
this.inject('bsi-account-avatar-status', Account.__proto__, 'render', (_, res) => {
const AvatarWithPopout = findInReactTree(res, n => n.type?.displayName === 'Popout');
if (AvatarWithPopout) {
AvatarWithPopout.props.children = (oldMethod => (args) => {
let res = oldMethod(args);
if (res?.props?.children) {
res.props.children.type = ConnectedMobileAvatar;
}
return res;
})(AvatarWithPopout.props.children);
}
return res;
});
Account.forceUpdate(); // this one causes the crash according to the stack trace
GriefMoDz commented
This should've been resolved as of version 1.13.23 (ad6057). Let me know if it otherwise isn't and I shall preform some further diagnostics. Cheers!