-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Occasional Blank left-side drawer controller #30
Comments
Can you provide any more context that may help this? Panning? Toggling? Any custom drawer animations? |
I think that it happened when toggled. The app doesn't use an custom drawer animations. It rarely happens. If it does happen, just hide the side drawer controller and show it again. It will start to work again. If I have more information that can help fixe the bug, I will post it here. |
I've beat on this pretty hard, and can't seem to figure out how to reproduce it. I'll close this for now. If you can encounter it again or provide some repo steps, feel free to open it back up. |
Hey guys, is this still happening in the latest Release ? Shiyunhe, did you manage to find more info on this behaviour? |
It is still happening using the latest release. I used the following method to open/close left side drawer from MMDrawerController:
I just switch to using more specific methods to open or close and will let you know whether if these method helps:
If the code are analyzed by xcode, you can find the following issues: I am wondering whether the these issues can cause the left blank drawer. |
I don't think that would cause the problem. Those warnings are coming up because line 35 is never initialized, and there is a case where that value is never touched (if Is it only happening with the slideAndScale animation? |
me too,the same appearance。it‘s only happening with the toggleDrawerSide method。 -(void)toggleDrawerSide:(MMDrawerSide)drawerSide animated:(BOOL)animated completion:(void(^)(BOOL finished))completion; |
I can confirm that MMDrawerSideNone happens alot. Especially when only one of the side ViewController are used. Maybe add something like:
that should work right? |
Can we summarize if this is happening for a specific drawer animation, or all drawer animations? I still haven't been able to repro this... |
I think we have this fixed. If anyone see its again, feel free to reopen the issue. |
The issue still happens on iOS 7 using the latest update. |
This is still happens for me on iOS6. |
It happens quite frequently on iOS simulator and device. Closing and reopening left drawer will fix the issue. It is still unclear to me why this happens. I guess that it is related to iOS memory warning:
|
Still seeing this as well on 0.5.1 (definitely on iOS 7, not sure about other versions). Can we reopen the issue? Love the project, btw 👍 |
I'll reopen the issue, but haven't seen it myself yet. Please file any and all related information in this issue to help debug. |
@kcharwood I found a way to reproduce this issue. I haven't found a way to persist the disappearance, but I can get the drawer to flash and disappear (which is most definitely related). Steps to reproduce: It seems like the issue is that begin and end animation calls are happening in different methods, and there are some edge cases where it gets the drawer in a strange state where it looks like it disappeared. Let me know if this helps at all. |
I investigated this problem in a project a few weeks ago, and I found part of the reason for the bug. It's due to The commit below contains a dirty quickix, but it doesn't attack the actual origin, so some further research as to why this happen is needed. This should give a step in the right direction. |
@antonholmquist Thanks for the info. We'll try that and see if we stop seeing the bug. |
This fix works?? |
@EvgeniyGT It seems to. Haven't seen the persistent disappearing drawer since then. |
mutualmobile#30 For some reason self.centerContainerView.frame.origin.x is sometimes being set to 0.5 at the end of close animation. This causes drawerFullyCovered to be incorrectly set to false. Note: This is just a quickfix. The actual reason of why origin.x is being set to 0.5 in the first place should be investigated and corrected in a future version.
Since this seemed to fix the issue for me and @ayanonagon, I created a pull request with a quickfix of the issue. Since it may help some people and likely doesn't break anything I guess it would make sense to merge until the cause of the problem is found. |
And left drawer goes black! |
@nspavlo Your steps have been very helpful. I've reproduced that behavior, and also was able to dig deeper to understand root cause. Should have a patch up in the next day or so. Cheers! |
@jupanubv92 Could you create a separate issue with your information. I think those might be different. Also, let me know if you can reproduce that with the example app. |
I have pushed up #211 @antonholmquist your PR was very helpful, and helped me trackdown what i think was the root cause of the issue - Accepting new gestures while an animation was in progress. I'm going to close this out again, and hopefully we've got it for real this time. |
Which version is this supposed to be fixed in? I have a blank left drawer on every orientation change on iPad. I'm using MMDrawerController 0.5.7. On orientation change, I open/close the drawer programmatically. I can confirm that setting Rotate to landscape:
I hope that helps. |
it must happen after session invalid (30 minute enter background), and TouchID check success 2 times login then black left side vc. |
Occasionally, the left side drawer controller can be blank.
The text was updated successfully, but these errors were encountered: