Authmereloaded: Error on forceLogin with FastLogin

Created on 28 Mar 2017  路  6Comments  路  Source: AuthMe/AuthMeReloaded

Exception on login with premium account using FastLogin, it used to work on ealier builds, it's already reported to the manager of FastLogin and he confirmd that the bug it's on AuthMe side.

Environment description

Waterfall / TacoSpigot 1.8.8 + Some V2 Timings cherypick, also tested with PaperSpigot 1 .8.8

AuthMe build number:

Build 1634

Error Log:

https://hastebin.com/tuqexuheti.sql

bug

Most helpful comment

All 6 comments

@games647 May I ask you for an initial analysis? What's weird is from the stacktrace it seems to me that we restore "allow flight" in sync mode, so I'm surprised at the error. The last AuthMe code lines:
LimboService#restoreData
AllowFlightRestoreType#restoreAllowFlight

Then it's my bad. Previously the API executed the async task instead of sync one.

EDIT:
@ljacqu FastLogin calls the NewAPI async where it calls the AsynchronousLogin. This is what I expected, but then it jumps into a sync task and executes it in a async context.

I think scheduleSyncTaskFromOptionallyAsyncTask doesn't work as expected.

@games647, thank you!

I understand the issue now. FastLogin calls our NewAPI#forceLogin in async mode, and because @hsombini has set async to false in AuthMe, scheduleSyncTaskFromOptionallyAsyncTask won't create a sync task (because it assumes it can't be coming from an async source).

I'll only be able to look at this into detail in two or three days and I'm not quite sure how this should be fixed right now. Do you have a suggestion?

@games647 Nice fix, i didn't know bukkit had such method.

@games647 Excellent, that looks really nice! Thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yannicnoller picture yannicnoller  路  4Comments

Ahryzth picture Ahryzth  路  8Comments

RoinujNosde picture RoinujNosde  路  4Comments

rogerxavier93 picture rogerxavier93  路  4Comments

prefislt picture prefislt  路  6Comments