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
Tab which contains map view causes app to crash #4821
Comments
I get the same after upgrading to 3.2.0 when navigating back to the TabView that contains a ListView. I cant seem to find a way to recreate the problem in a simple demo app otherwise I would create a sample project. |
@3rror404 do you have any map view in your application tabs? |
Yes I do. The first tab is a list view, the second is a map using nativescript-google-maps-sdk. |
Exactly! Check out these 2 links |
The |
@3rror404 The error message I get also has |
@3rror404 |
That plugin has been discontinued. Until there is a fix, you can always downgrade core-modules (http://fluentreports.com/blog/?p=303). I'm using 2.5.3. |
downgrade just the core-modules and not nativescript? my current setup: |
I'm using 3.1.1 actually not 2.5.3 (looking at the wrong project!). This config works for me...
|
Thanks for the info, I'll give it a try |
@3rror404 |
Hey @3rror404, @shiv19 this is known bug logged and discussed here. In the linked issue our developers have made an investigation and suggested solution here which needs to be implemented in the plugin. Closing this issue as duplicate to #3960 (comment) |
@NickIliev Can we have this issue re opened? |
@3rror404 @NickIliev Luckily, I came up with a workaround, I'm sharing it here so that it'll be useful for someone someday, [ PS. if you want to continue reading this on my blog, then go here The following instructions assume that you have installed nativescript-google-maps-sdk, Step 1: install nativescript-accordion Step 2: In the xml file where you are using the map make sure these 2 xml namespaces are present
Step 3: Enclose your map element inside a accordion
Step 4: In your code behind, import
Step 5: In the loaded event of your page, set the binding context of your accordionLayout to the view-model that we created in the previous step
Note: We are setting the selectedIndex, so that it opens the accordion by default, and we have not created any header template, so the accordion won't have a header. Step 6: Sample onMapReady function
And that's about it, with that you should have pretty much the same result that you had before, |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I get this uncaught exception, randomly on my tab view layout.
There are 3 tabs, the first and the last one have a list view in it. The middle one is a flexbox layout.
I'm not able to understand what is causing this.
Update: Found a way to recreate it. This is happening if I minimize my app, reopen it and try to switch tabs.
Update 2: This crash is occuring because of nativescript-google-maps-sdk plugin, I have a map view in my 2nd tab
The text was updated successfully, but these errors were encountered: