Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: XF5U causes game to crash when destroyed?  (Read 217 times)

0 Members and 1 Guest are viewing this topic.

cammando205

  • member
  • Offline Offline
  • Posts: 7
XF5U causes game to crash when destroyed?
« on: October 06, 2019, 09:34:00 PM »

Very strange issue I'm having here.  As implied by the title, whenever an XF5U, whether it be mine or an AI piloted one is destroyed, the game crashes without an error message.  They can take damage, it's as soon as one of them is "destroyed" that the crash occurs. 
Logged

P51vsFw190

  • Flying Ass Clown #5/#7
  • member
  • Offline Offline
  • Posts: 1755
  • Connoisseur of strange aircraft
Re: XF5U causes game to crash when destroyed?
« Reply #1 on: October 06, 2019, 09:36:35 PM »

Can we see your log file?
Logged
“Undefeated” champion of the Quest!

cammando205

  • member
  • Offline Offline
  • Posts: 7
Re: XF5U causes game to crash when destroyed?
« Reply #2 on: October 06, 2019, 10:10:57 PM »

Code: [Select]
[2019-10-07 04:04:54.215] dT:  157 java.lang.StackOverflowError
[2019-10-07 04:04:54.215] dT:    0 at com.maddox.il2.objects.air.XF5U1.xf5uHitProp(XF5U1.java:762)
[2019-10-07 04:04:54.215] dT:    0 at com.maddox.il2.objects.air.XF5U1.hitProp(XF5U1.java:158)

I couldn't post the entire log because character limits, but the rest is just those last two lines over and over again.
Logged

western0221

  • Modder
  • member
  • Online Online
  • Posts: 6630
  • Live in Japan
    • IL-2 itaki blog
Re: XF5U causes game to crash when destroyed?
« Reply #3 on: October 06, 2019, 10:13:04 PM »

I agree.

My 3.7.2 WAW's error log in crashing XF5U is here.

Code: [Select]
[2019-10-07 04:07:00.807] dT:    0 *** Loading: [fpForestPlaneEdges]
[2019-10-07 04:07:00.809] dT:    0 *** Loading: [fpForestPlaneEdgesNoise]
[2019-10-07 04:07:02.103] dT:    0 Load bridges
[2019-10-07 04:07:02.757] dT:    0 Load static objects
[2019-10-07 04:07:02.925] dT:    0 ##### House without collision (3do/Buildings/Port/BaseSmallSegment/live.sim)
[2019-10-07 04:07:02.941] dT:    0 ##### House without collision (3do/Buildings/Port/BaseSegment/live.sim)
[2019-10-07 04:07:04.570] dT:    0 ##### House without collision (3do/Buildings/Port/Floor/live.sim)
[2019-10-07 04:07:08.124] dT:    0 INTERNAL ERROR: Str2FloatClamp() - Clamped 5 -> 2 (delta = -3) to Range 0..2
[2019-10-07 04:07:08.174] dT:    0 INTERNAL ERROR: Str2FloatClamp() - Clamped 2e+006 -> 1e+006 (delta = -1e+006) to Range 0..1e+006
[2019-10-07 04:07:09.140] dT:    0 *DiffFM "flightmodels/r2000_xf5u.emd" being loaded from: "xf5u_fm"...
[2019-10-07 04:07:16.805] dT:    0 ERROR file: File users/doe/Icons not found
[2019-10-07 04:07:16.817] dT:    0 Mission: QuickQMBPro/BAT_Crimea_W/BAT_Crimea_WRedArmor00.mis is Playing
[2019-10-07 04:07:17.673] dT:   28 warning: no files : music/inflight
[2019-10-07 04:08:38.667] dT: 2700 java.lang.StackOverflowError
[2019-10-07 04:08:38.667] dT:    0 at com.maddox.il2.objects.air.XF5U1.cut(XF5U1.java:570)
[2019-10-07 04:08:38.667] dT:    0 at com.maddox.il2.objects.air.XF5U1.xf5uCut(XF5U1.java:916)
[2019-10-07 04:08:38.667] dT:    0 at com.maddox.il2.objects.air.XF5U1.cut(XF5U1.java:570)
[2019-10-07 04:08:38.667] dT:    0 at com.maddox.il2.objects.air.XF5U1.xf5uCut(XF5U1.java:916)
[2019-10-07 04:08:38.667] dT:    0 at com.maddox.il2.objects.air.XF5U1.cut(XF5U1.java:570)
[2019-10-07 04:08:38.668] dT:    0 at com.maddox.il2.objects.air.XF5U1.xf5uCut(XF5U1.java:916)
[2019-10-07 04:08:38.668] dT:    0 at com.maddox.il2.objects.air.XF5U1.cut(XF5U1.java:570)
[2019-10-07 04:08:38.668] dT:    0 at com.maddox.il2.objects.air.XF5U1.xf5uCut(XF5U1.java:916)
Logged

western0221

  • Modder
  • member
  • Online Online
  • Posts: 6630
  • Live in Japan
    • IL-2 itaki blog
Re: XF5U causes game to crash when destroyed?
« Reply #4 on: October 06, 2019, 10:30:36 PM »

XF5U1.class java source codes look like changed against its first plan.

Original codes of xf5uCut(String s) method has to be here.
Code: [Select]
    public boolean xf5uCut(String partName) {
        if (!partName.equalsIgnoreCase("WingLIn") && !partName.equalsIgnoreCase("WingLIn")) {
            return super.cut(partName);
        }
        System.out.println("" + partName + " goes off..");

"super." is important !

But current 3.7.2 --- Classes-ObjectsAir --- XF5U1.class (dated 14th/Feb./2019) looks this.
Code: [Select]
    public boolean xf5uCut(String s)
    {
        if(!s.equalsIgnoreCase("WingLIn") && !s.equalsIgnoreCase("WingLIn"))
            return cut(s);
        System.out.println("" + s + " goes off..");

Eternal method calling cut() - xf5uCut() - cut() - xf5uCut() - .... - stack overflow.
Logged

SAS~vampire_pilot

  • SAS Team
  • member
  • Online Online
  • Posts: 4492
  • The man of a million fixes
Re: XF5U causes game to crash when destroyed?
« Reply #5 on: October 07, 2019, 07:57:42 AM »

must have happened at the java break fixing action, I guess.

Do you have a fixed classfile?
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 18315
  • Failure is not an option.
    • What goes around comes around, you'll see
Re: XF5U causes game to crash when destroyed?
« Reply #6 on: October 07, 2019, 08:28:01 AM »

Almost certainly it happened at that step.
I've seen it happening on the latest Ultrapack 3.3 as well, but saw it in time to fix it before release.
Simple fix, just add that super to the method call where it's missing, that's all.

]cheers[
Mike
Logged
You've got no one to follow, and no one will follow you. Ain't that a relief?

western0221

  • Modder
  • member
  • Online Online
  • Posts: 6630
  • Live in Japan
    • IL-2 itaki blog
Re: XF5U causes game to crash when destroyed?
« Reply #7 on: October 07, 2019, 08:28:42 AM »

I referred SAS Assembla tree to get original one.

SAS_Assembla\ trunk\ Storebror\ XF5U-1\
src\com\maddox\il2\objects\air\


But I don't know what purpose who did how changes.
Logged

SAS~vampire_pilot

  • SAS Team
  • member
  • Online Online
  • Posts: 4492
  • The man of a million fixes
Re: XF5U causes game to crash when destroyed?
« Reply #8 on: October 07, 2019, 08:51:49 AM »

can you share the fixed class for everyone?
Logged
Pages: [1]   Go Up
 

Page created in 0.012 seconds with 27 queries.