User Tag List

Results 1 to 7 of 7

Thread: [BUG REPORT] Crashed my Android app

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    May 2020
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation [BUG REPORT] Crashed my Android app

    Hello, for some reason after a little changes my android game immediately crashes whenever i make jump event to another frame. I really don't know why is it happening but same events has almost every frame, but some frames crashes whenever i do jump
    Screenshot_2022-06-30-21-32-26-217_com.miui.bugreport.jpg

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    May 2020
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I fixed crashes by adding the same values to all objects that were in the same group as well. So if you have the same problem, so just make sure that all your objects in your groups has same number of values

  3. #3
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    477
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    @Fernando

    in Values.CRVal, line 102:

    Code:
        public CValue getValue(int n)
        {
    		if (rvValues[n]==null)
    		{
                rvValues[n]=new CValue();
    		}
    		return rvValues[n];
        }
    line 104 will throw exception when n is greater than 26 while using 'unlimited alterable values' before setting it, as android only read value numbers in cob, defined in edittime.

    A quick fix is adding check before retrieving, and copy old values to re-allocated one, just like realloc in Cpp:

    Code:
        public CValue getValue(int n) {
    		if(n >= rvValues.length){
    			// int oldLength = rvValues.length;
    			// CValue[] oldValues = rvValues;
    
    			// rvValues = new CValue[n];
    
    			// // Copy old values, equals to realloc
    			// System.arraycopy(oldValues, 0, rvValues, 0, oldLength);
    
    			// or...
    	            extendValues(n);
    		}
    
    //		if (rvValues[n]==null)
    //		{
    //		    rvValues[n]=new CValue();
    //		}
    
    		return rvValues[n];
        }
    the same fix is also need in getString, etc.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,368
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Thanks for the info, i will check asap
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,368
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by defisym View Post
    @Fernando

    in Values.CRVal, line 102:

    Code:
        public CValue getValue(int n)
        {
            if (rvValues[n]==null)
            {
                rvValues[n]=new CValue();
            }
            return rvValues[n];
        }
    line 104 will throw exception when n is greater than 26 while using 'unlimited alterable values' before setting it, as android only read value numbers in cob, defined in edittime.

    A quick fix is adding check before retrieving, and copy old values to re-allocated one, just like realloc in Cpp:

    Code:
        public CValue getValue(int n) {
            if(n >= rvValues.length){
                // int oldLength = rvValues.length;
                // CValue[] oldValues = rvValues;
    
                // rvValues = new CValue[n];
    
                // // Copy old values, equals to realloc
                // System.arraycopy(oldValues, 0, rvValues, 0, oldLength);
    
                // or...
                    extendValues(n);
            }
    
    //        if (rvValues[n]==null)
    //        {
    //            rvValues[n]=new CValue();
    //        }
    
            return rvValues[n];
        }
    the same fix is also need in getString, etc.

    I don't get any crash by adding in values outside the index range. what version is this?, please post a small example.

    i tested by doing

    * User clicks with left button on Active
    Active : Add 1 to Alterable Value(50)
    objectvalue : Set Counter to AltValN( "Active", 50 )
    Special : Add 4 to Global Value(60)
    global : Set Counter to Global Value(60)
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  6. #6
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    477
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    I don't get any crash by adding in values outside the index range. what version is this?, please post a small example.

    i tested by doing

    * User clicks with left button on Active
    Active : Add 1 to Alterable Value(50)
    objectvalue : Set Counter to AltValN( "Active", 50 )
    Special : Add 4 to Global Value(60)
    global : Set Counter to Global Value(60)
    his screenshot shows that exception throws from EXP_EXTVAR.java, line 42 didn't extend array before getting values, unlike other classes.
    (I don't know exactly what this is in event editor so I cannot post a mfa, maybe @LordBredit can share more info)

    CND_CHOOSEVALUE.java line 56 & CND_CHOOSEVALUE_Old.java line 57 didn't extend also, which may cause the crash.

  7. #7
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,368
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Thanks @defisym, please @LordBredit need you to post a small mfa to check this.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. Android crash report in new build
    By mhkc in forum Android Export Module 2.5
    Replies: 9
    Last Post: 3rd December 2021, 06:35 PM
  2. App crashed - report
    By xcompanygames in forum Android Export Module 2.5
    Replies: 2
    Last Post: 24th July 2019, 07:44 PM
  3. Crash report for Oneplus One (Android 4.4)
    By Nemeean_lion in forum Android Export Module 2.5
    Replies: 0
    Last Post: 23rd February 2015, 09:29 PM
  4. New android app released, can you test it as I got a report of a crash
    By gballa in forum Android Export Module 2.5
    Replies: 0
    Last Post: 10th March 2014, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •