Skip to content
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

EXC_BAD_ACCESS Error (on iOS) when using Stream #665

Open
pranshuagrawal opened this issue Jun 22, 2018 · 1 comment
Open

EXC_BAD_ACCESS Error (on iOS) when using Stream #665

pranshuagrawal opened this issue Jun 22, 2018 · 1 comment

Comments

@pranshuagrawal
Copy link

I am using stream in my weex project, the apps crash everytime I try to run it on iOS simulator. It works fine on android though.

If I comment out the stream code (viz commenting the code where I am using stream and import is still uncommented) the application works fine on both the platform.

Considering that stream code is working fine on android concludes that there is nothing wrong with my Vue code (maybe I am not doing some iOS specific thingy).

Here is the code:

       stream.fetch({
            method: 'GET',
            type: 'json',
            url: 'https://example.com/someUrl.json'
        }, res => {
            if(res.ok){
                this.isLoading = false;
                this.isError = false;
                
                this.number = res.data.number;
                this.name = res.data.name;
            }else{
                this.isLoading = false;
                this.isError = true;
            }      
        });

The error which I get is on the following line:

        callbackRsp setObject:@{ @"OPENED": @1 } forKey:@"readyState"];
        progressCallback(callbackRsp, TRUE);

The error is:

        Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)

Occuring on progressCallback line.

What I can think of is that it could be because of some package which I need to install or maybe version number of something is messed up because on playground it is working absolutely fine.

Any help would greatly appreciated.

@ghost
Copy link

ghost commented Jul 28, 2018

Ejecta supports XmlHttpRequest out of the box. Have you tried that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant