Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

[BUG] Exception reported: Invalid data pack type (got 3 / expected 1). #98

Closed
justaFluffypanda opened this issue Nov 21, 2019 · 18 comments
Assignees
Labels
testing need testing

Comments

@justaFluffypanda
Copy link

L 11/21/2019 - 13:46:04: [SM] Exception reported: Invalid data pack type (got 3 / expected 1).
L 11/21/2019 - 13:46:04: [SM] Blaming: SurfTimer.smx
L 11/21/2019 - 13:46:04: [SM] Call stack trace:
L 11/21/2019 - 13:46:04: [SM] [0] ReadPackCell
L 11/21/2019 - 13:46:04: [SM] [1] Line 2063, surftimer/sql.sp::sql_selectTopSurfersCallback

SM 1.10 build 6455

@justaFluffypanda justaFluffypanda added the bug Something isn't working label Nov 21, 2019
@13ace37
Copy link
Member

13ace37 commented Nov 21, 2019

Try to remove or change all empty names in the ck_playerrank and ck_playertimes tables.

UPDATE `surftimer`.`ck_playertimes` SET `name` = 'N/A' WHERE `name` = '';
UPDATE `surftimer`.`ck_playerrank` SET `name` = 'N/A' WHERE `name` = ''

And how is your timer even working? In the current state of the master the timer won't even load with SM 1.10 🤔

@justaFluffypanda
Copy link
Author

I'm not sure, it's definitely working though. I updated from fluffys branch earlier this week after the shattered web update and at the same time updated to SM 1.10 (6455). The only things I've changed for the surftimer plugin is the formatting in misc.sp to remove HUD color as per this comment, the database character set in sql.sp to utf8mb4, and the sql_selectMapRecord query in queries.sp.

@justaFluffypanda
Copy link
Author

Also, will make database changes as suggested and report back...

@13ace37
Copy link
Member

13ace37 commented Nov 21, 2019

I see. For me, it wasn't working using 1.10 - it just crashed the server if someone joined it.
And btw you could use the 280pre release or if you want to want to compile it your self https://github.com/totles/z4lab-surftimer/tree/dev .

@justaFluffypanda
Copy link
Author

Hmm sourcemod dev build required, I do like living on the edge

@13ace37
Copy link
Member

13ace37 commented Nov 21, 2019

If the current one is working for you, it's probably working with 1.10 too.

@justaFluffypanda
Copy link
Author

Cool, I'll build it tomorrow for one of my servers and see.

@13ace37
Copy link
Member

13ace37 commented Nov 21, 2019

It's working for me at 1.10 too. LinuxGSM still used 1.9 :)

@Marfimm
Copy link

Marfimm commented Nov 26, 2019

I have the same problem, I tried to do what @13ace37 suggested, but it didn't work, !mtop is broken 😕

@justaFluffypanda
Copy link
Author

@Marfimm Can confirm, I applied the suggestion from @13ace37 but still have these in my error logs

L 11/25/2019 - 23:52:24: [SM] Exception reported: Client 12 is not connected
L 11/25/2019 - 23:52:24: [SM] Blaming: SurfTimer.smx
L 11/25/2019 - 23:52:24: [SM] Call stack trace:
L 11/25/2019 - 23:52:24: [SM] [0] GetClientName
L 11/25/2019 - 23:52:24: [SM] [1] Line 5999, surftimer/sql.sp::SQL_UpdateWrcpRecordCallback2

L 11/25/2019 - 22:39:11: [SM] Exception reported: Invalid data pack type (got 3 / expected 1).
L 11/25/2019 - 22:39:11: [SM] Blaming: SurfTimer.smx
L 11/25/2019 - 22:39:11: [SM] Call stack trace:
L 11/25/2019 - 22:39:11: [SM] [0] ReadPackCell
L 11/25/2019 - 22:39:11: [SM] [1] Line 2063, surftimer/sql.sp::sql_selectTopSurfersCallback

@13ace37
Copy link
Member

13ace37 commented Dec 17, 2019

L 11/25/2019 - 23:52:24: [SM] Exception reported: Client 12 is not connected
L 11/25/2019 - 23:52:24: [SM] Blaming: SurfTimer.smx
L 11/25/2019 - 23:52:24: [SM] Call stack trace:
L 11/25/2019 - 23:52:24: [SM] [0] GetClientName
L 11/25/2019 - 23:52:24: [SM] [1] Line 5999, surftimer/sql.sp::SQL_UpdateWrcpRecordCallback2

That's something else. If this one appears in your logs again, please open a new issue.

L 11/25/2019 - 22:39:11: [SM] Exception reported: Invalid data pack type (got 3 / expected 1).
L 11/25/2019 - 22:39:11: [SM] Blaming: SurfTimer.smx
L 11/25/2019 - 22:39:11: [SM] Call stack trace:
L 11/25/2019 - 22:39:11: [SM] [0] ReadPackCell
L 11/25/2019 - 22:39:11: [SM] [1] Line 2063, surftimer/sql.sp::sql_selectTopSurfersCallback

And this one happens if either no client name is provided into the database (non-supported names like invisible steam names etc. 𐂃𐂃,  , ) or the client had/has a non-unicode/utf8 name like c̴̡͈̹͈̥̗͆̐̅̐̑̃̊̈́̔̚ḻ̷̨̢̧͊͋͂́̓̊̽i̵̞͕͈̟͚̘͐͋̏̎̆̋́è̸̯̩̳͕̪͕̼̓́́͗̊̔́́ͅn̷̝̖̫̜͓̓̈́̀̑͑͌̈̒̈́ͅt̴͎̪̫̩͈͝͠ ̸͚͔̦͖̖̟̈͌̄̔̽n̷͙̖̱̩̙̲͇̖̩̝̉̀͋̀̀a̶͖̜̮͎͓͎̮̱͐̋m̵̫̖̄̇̿͊̂̚é̸͕̥̫̤̘̰̳̜̺͛̏̇, ƈʅιҽɳƚ ɳαɱҽ, ᑕᒪIEᑎT ᑎᗩᗰE

I'm pretty sure I've seen a plugin for this one. I'll comment bellow if I'm able to find it.

@13ace37
Copy link
Member

13ace37 commented Jan 6, 2020

Small Update:
This should be fixed with 6754f79 but I'm not 100% sure about it.

After changing the client name charsets from utf8 to utf8m4 all not supported chars should be replaced with an ?. 6754f79#diff-4da42d77731162deed43af9163811bdeR43-R44

It works for our servers so far. I won't close this until I can confirm it 100%.

I'll not release this since the next (281) update.

@13ace37 13ace37 pinned this issue Jan 6, 2020
@13ace37 13ace37 added testing need testing and removed bug Something isn't working labels Jan 6, 2020
@13ace37
Copy link
Member

13ace37 commented Jan 31, 2020

Working fine for me now. Open another issue if the error shows up again.

@13ace37 13ace37 closed this as completed Jan 31, 2020
@13ace37 13ace37 unpinned this issue Feb 16, 2020
@Z-RAY-Z
Copy link

Z-RAY-Z commented Feb 26, 2020

L 02/26/2020 - 18:19:11: [SM] Exception reported: Invalid data pack type (got 3 / expected 1).
L 02/26/2020 - 18:19:11: [SM] Blaming: surftimer_z4lab_280pre.smx
L 02/26/2020 - 18:19:11: [SM] Call stack trace:
L 02/26/2020 - 18:19:11: [SM] [0] ReadPackCell
L 02/26/2020 - 18:19:11: [SM] [1] Line 2061, surftimer/sql.sp::sql_selectTopSurfersCallback

SourceMod (1.10.0.6472) and stock SurfTimer (280)

@13ace37
Copy link
Member

13ace37 commented Feb 26, 2020

self compile the dev branch

@13ace37 13ace37 reopened this Apr 6, 2020
@13ace37 13ace37 pinned this issue Apr 6, 2020
@olokos olokos closed this as completed in dadd609 Apr 6, 2020
@13ace37 13ace37 reopened this Apr 6, 2020
@olokos
Copy link

olokos commented Apr 6, 2020

The issue was closed by an accident.
Oddly enough even if the table has no names that are empty this bug still occurs.
Will investigate.

@olokos
Copy link

olokos commented Apr 6, 2020

@13ace37 has introduced a workaround for this bug
b1780ae

olokos added a commit that referenced this issue Apr 7, 2020
Could help with #98
@olokos
Copy link

olokos commented Apr 7, 2020

Workaround confirmed working.

@13ace37 13ace37 closed this as completed Apr 9, 2020
@13ace37 13ace37 unpinned this issue Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testing need testing
Projects
None yet
Development

No branches or pull requests

5 participants