jeremy-wischusen / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

Null object at Buffer.as line 101 #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. no steps needed
2.
3.

What is the expected output? What do you see instead?
Expected: no buffer error. After a while I get a null object which points
to line 101 of Buffer.as inside the core package.
I've read a few posts here that state that analytics needs to be bound to a
displayobject which has been added to the displaylist, this has been done
and checked several times through

What version of the product are you using? On what operating system?
latest of repository

Please provide any additional information below.

Original issue reported on code.google.com by funkysoulzh on 12 Apr 2010 at 9:58

GoogleCodeExporter commented 9 years ago
help us help you

could you provide us the source code creating the problem ?

Original comment by zwetan on 16 Apr 2010 at 4:41

GoogleCodeExporter commented 9 years ago
the problem comes from the Buffer.as class that is inside the core package of
gaforflash, there is no extra code needed other then the one available in here.

Original comment by funkysoulzh on 17 Apr 2010 at 8:59

GoogleCodeExporter commented 9 years ago
yeah euh let me explain a little thing about software development

if you come to some developers and tell them "you're code is broken"
and continue with "I'm telling you to fix it"

this not gonna move things forwards

As far as I know nobody else reported such problem with the Buffer class,
so unless you are willing to give some sample code that can demonstrate the 
problem
and allow us to replicate it, this issue you're reporting gonna end up as 
"invalid".

No code is perfect, bugs occurs and that's normal in a project life,
but if you want some help from our side you gonna have to come up with
something a little better than "you're code is broken, fix it",
and that's mean yeah you have to give us some code example so we can replicate 
the problem.

This project is maintained by independent people on their free time,
we prefer to use this time to work on confirmed and accepted bugs.

So far nothing that you indicate can confirm the bug you are reporting,
the bad thing is that you don't even provide a stack trace error, code sample 
etc.
so we can not even have an idea of WHERE or WHAT could create the problem.

Original comment by zwetan on 17 Apr 2010 at 3:10

GoogleCodeExporter commented 9 years ago

Original comment by zwetan on 17 Apr 2010 at 3:11

GoogleCodeExporter commented 9 years ago
Right, this code is working for me so it must be an issue from within your 
environment or how you are 
initializing this object.

Please post a full stack track and steps to reproduce the problem so we can 
find an appropriate solution.

see the line in question here: 
http://code.google.com/p/gaforflash/source/browse/trunk/src/com/google/analytics
/core/Buffer.as#101

SO is our persistent storage object and for some reason we don's have access to 
it. Could it be you do not have 
the ability to set persistent objects on your local machine?

Original comment by Nicksk...@gmail.com on 17 Apr 2010 at 6:18

GoogleCodeExporter commented 9 years ago
Hi Nick

The code also works for me most of the times. it is not that is not working at 
all,
it just happens after a while about 15-20mins.. 

I will try to give you an example file for you to test.

Original comment by funkysoulzh on 18 Apr 2010 at 3:22

GoogleCodeExporter commented 9 years ago
I had this problem occur as well.
Steps to reproduce:
1. set _SO.data = null
2. Start an app with a tracker, but don't do any tracking.
3. When the session expires you'll get a null pointer at line 101 of Buffer.as
                _SO.data.utmb = null;

This is because _SO.data is null and doesn't have the utmb property.

Here's my application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" 
xmlns:components="com.google.analytics.components.*" 
xmlns:v4="com.google.analytics.v4.*">
    <fx:Declarations>
        <v4:Configuration
            id="config"
            sessionTimeout="1"
            />
        <components:FlexTracker account="UA-123456-1" config="{config}" />
    </fx:Declarations>

</s:Application>

Original comment by lcollure...@gmail.com on 28 Apr 2010 at 3:59